bump ruby to 2.6.1

pull/7028/head
Jens Ulferts 6 years ago
parent bdc45e5324
commit c164d7f6db
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 2
      .travis.yml
  2. 2
      Dockerfile
  3. 2
      Gemfile
  4. 2
      Gemfile.lock
  5. 20
      docs/development/development-environment-osx.md
  6. 20
      docs/development/development-environment-ubuntu.md
  7. 6
      docs/installation/manual/README.md
  8. 2
      docs/installation/system-requirements.md
  9. 2
      modules/costs/spec/features/work_package_filter_spec.rb

@ -29,7 +29,7 @@
language: ruby
rvm:
- 2.5.1
- 2.6.1
sudo: required
dist: trusty

@ -1,4 +1,4 @@
FROM ruby:2.5-stretch
FROM ruby:2.6-stretch
ENV NODE_VERSION="10.15.0"
ENV BUNDLER_VERSION="2.0.1"

@ -28,7 +28,7 @@
source 'https://rubygems.org'
ruby '~> 2.5.1'
ruby '~> 2.6.1'
gem 'actionpack-xml_parser', '~> 2.0.0'
gem 'activemodel-serializers-xml', '~> 1.0.1'

@ -1038,7 +1038,7 @@ DEPENDENCIES
will_paginate (~> 3.1.0)
RUBY VERSION
ruby 2.5.1p57
ruby 2.6.1p33
BUNDLED WITH
2.0.1

@ -13,9 +13,9 @@ If you find any bugs or you have any recommendations for improving this tutorial
We'll use [homebrew](https://brew.sh/) to install most of our requirements. Please install that first using the guide on their homepage.
## Install Ruby 2.5.
## Install Ruby 2.6.
Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install Ruby 2.5.0.
Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install Ruby 2.6.1.
**Install rbenv and ruby-build**
rbenv is a ruby version manager that lets you quickly switch between ruby versions.
@ -28,23 +28,23 @@ $ brew install rbenv ruby-build
$ rbenv init
```
**Installing ruby-2.5**
**Installing ruby-2.6**
With both installed, we can now install the actual ruby version 2.5. You can check available ruby versions with `rbenv install --list`.
At the time of this writing, the latest stable version is `2.5.0`, which we also require.
With both installed, we can now install the actual ruby version 2.6. You can check available ruby versions with `rbenv install --list`.
At the time of this writing, the latest stable version is `2.6.1`, which we also require.
We suggest you install the version we require in the [Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile). Search for the `ruby '~> X.Y.Z'` line
and install that version.
```bash
# Install the required version as read from the Gemfile
[dev@ubuntu]# rbenv install 2.5.0
[dev@ubuntu]# rbenv install 2.6.1
```
This might take a while depending on whether ruby is built from source. After it is complete, you need to tell rbenv to globally activate this version
```bash
[dev@ubuntu]# rbenv global 2.5.0
[dev@ubuntu]# rbenv global 2.6.1
```
You also need to install [bundler](https://github.com/bundler/bundler/), the ruby gem bundler.
@ -108,13 +108,13 @@ You should now have an active ruby and node installation. Verify that it works w
```bash
$ ruby --version
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin16]
ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-darwin16]
$ bundler --version
Bundler version 1.16.1
Bundler version 2.0.1
$ npm --version
3.10.10
6.7.0
```
# Install OpenProject

@ -20,9 +20,9 @@ We need an active Ruby and Node JS environment to run OpenProject. To this end,
[dev@ubuntu]# sudo apt-get install git curl build-essential zlib1g-dev libyaml-dev libssl-dev libmysqlclient-dev libpq-dev libsqlite3-dev libreadline-dev libffi6
```
## Install Ruby 2.5.
## Install Ruby 2.6.
Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install Ruby 2.5.
Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install Ruby 2.6.
**Install rbenv**
@ -51,23 +51,23 @@ ruby-build is an addon to rbenv that installs ruby versions
[dev@ubuntu]# git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
```
**Installing ruby-2.5**
**Installing ruby-2.6**
With both installed, we can now install the actual ruby version 2.5. You can check available ruby versions with `rbenv install --list`.
At the time of this writing, the latest stable version is `2.5.0`, which we also require.
With both installed, we can now install the actual ruby version 2.6. You can check available ruby versions with `rbenv install --list`.
At the time of this writing, the latest stable version is `2.6.1`, which we also require.
We suggest you install the version we require in the [Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile). Search for the `ruby '~> X.Y.Z'` line
and install that version.
```bash
# Install the required version as read from the Gemfile
[dev@ubuntu]# rbenv install 2.5.1
[dev@ubuntu]# rbenv install 2.6.1
```
This might take a while depending on whether ruby is built from source. After it is complete, you need to tell rbenv to globally activate this version
```bash
[dev@ubuntu]# rbenv global 2.5.1
[dev@ubuntu]# rbenv global 2.6.1
```
You also need to install [bundler](https://github.com/bundler/bundler/), the ruby gem bundler.
@ -144,13 +144,13 @@ You should now have an active ruby and node installation. Verify that it works w
```bash
[dev@ubuntu]# ruby --version
ruby 2.5.1p57 (2017-12-25 revision 61468) [x86_64-darwin16]
ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-darwin16]
[dev@ubuntu]# bundler --version
Bundler version 1.16.1
Bundler version 2.0.1
[dev@ubuntu]# npm --version
6.4.1
6.7.0
```
# Install OpenProject

@ -156,16 +156,16 @@ time to finish.
[openproject@host] source ~/.profile
[openproject@host] git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
[openproject@host] rbenv install 2.5.3
[openproject@host] rbenv install 2.6.1
[openproject@host] rbenv rehash
[openproject@host] rbenv global 2.5.3
[openproject@host] rbenv global 2.6.1
```
To check our Ruby installation we run `ruby --version`. It should output
something very similar to:
```
ruby 2.5.3pXYZ (....) [x86_64-linux]
ruby 2.6.1pXYZ (....) [x86_64-linux]
```
## Installation of Node

@ -25,7 +25,7 @@ provide any official support for them.
### Dependencies
* __Runtime:__ [Ruby](https://www.ruby-lang.org/en/) Version = 2.5.x
* __Runtime:__ [Ruby](https://www.ruby-lang.org/en/) Version = 2.6.x
* __Webserver:__ [Apache](http://httpd.apache.org/)
or [nginx](http://nginx.org/en/docs/)
* __Application server:__ [Phusion Passenger](https://www.phusionpassenger.com/)

@ -73,6 +73,8 @@ describe 'Filter by budget', js: true do
wp_table.save_as('Some query name')
wp_table.expect_and_dismiss_notification message: 'Successful creation.'
filters.remove_filter 'costObject'
wp_table.expect_work_package_listed work_package_with_budget, work_package_without_budget

Loading…
Cancel
Save