Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch to ruby 3.1 #758

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
ruby:
- 2.7
- 3.1
postgres_image:
- postgis/postgis:12-3.3
services:
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
sudo apt-get -y install libgeos-dev
- name: Install gems
run: |
gem install bundler -v 1.17.3
gem install bundler -v 2.3
bundle config path vendor/bundle
bundle config without 'javascript_testing'
bundle config with 'docker'
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ In this case you can simply pull down the version you want, and run `docker-comp
- **Important** Users who use the docker-compose file will need to either:
- dump the database first and then reload because this involves a database version upgrade
- switch the postgres image back to mdillon/postgis:9.5. This is not recommended because postgres v9.5 is no longer supported.

- Using ruby 3.1 as base

## [5.4.1] - 2021-10-10

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.7
FROM ruby:3.1
LABEL maintainer="Max Burnette <[email protected]>, Rob Kooper <[email protected]>"

# arguments that are added at the bottom of BETY
Expand Down Expand Up @@ -35,7 +35,7 @@ RUN apt-get update \
curl \
git \
libgeos-dev \
netcat \
netcat-openbsd \
nodejs \
postgresql-client \
&& rm -rf /var/lib/apt/lists/* \
Expand All @@ -47,7 +47,7 @@ WORKDIR /home/bety

# install gems (allowing for caching)
COPY --chown=bety /Gemfile* /home/bety/
RUN gem install bundler -v 1.17.3 \
RUN gem install bundler -v 2.3 \
&& bundle config path vendor/bundle \
&& bundle config without 'test development production debug javascript_testing' \
&& bundle config with 'docker' \
Expand Down
125 changes: 75 additions & 50 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ GEM
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
apipie-rails (0.5.6)
rails (>= 4.1)
arel (9.0.0)
base64 (0.2.0)
bootstrap-will_paginate (1.0.0)
will_paginate
builder (3.3.0)
Expand All @@ -74,7 +75,6 @@ GEM
capybara-webkit (1.15.1)
capybara (>= 2.3, < 4.0)
json
childprocess (3.0.0)
choice (0.1.6)
coderay (1.1.3)
coffee-rails (5.0.0)
Expand All @@ -88,70 +88,86 @@ GEM
activesupport (>= 4.2.0, < 6.1)
concurrent-ruby (1.3.3)
crass (1.0.6)
database_cleaner (2.0.1)
database_cleaner-active_record (~> 2.0.0)
database_cleaner-active_record (2.0.1)
database_cleaner (2.0.2)
database_cleaner-active_record (>= 2, < 3)
database_cleaner-active_record (2.2.0)
activerecord (>= 5.a)
database_cleaner-core (~> 2.0.0)
database_cleaner-core (2.0.1)
diff-lcs (1.4.4)
dynamic_form (1.1.4)
date (3.3.4)
diff-lcs (1.5.1)
dynamic_form (1.3.1)
actionview (> 5.2.0)
activemodel (> 5.2.0)
erubi (1.13.0)
execjs (2.8.1)
ffi (1.15.4)
globalid (0.5.2)
execjs (2.9.1)
ffi (1.17.0)
globalid (1.1.0)
activesupport (>= 5.0)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
jquery-rails (4.4.0)
jquery-rails (4.6.0)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (7.0.0)
railties (>= 3.2.16)
json (2.5.1)
json-schema (2.8.1)
addressable (>= 2.4)
json (2.7.2)
json-schema (4.3.1)
addressable (>= 2.8)
kgio (2.11.4)
logger (1.6.0)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mail (2.7.1)
mail (2.8.1)
mini_mime (>= 0.1.1)
net-imap
net-pop
net-smtp
marcel (0.3.3)
mimemagic (~> 0.3.2)
memoist (0.16.2)
method_source (1.1.0)
mimemagic (0.3.10)
nokogiri (~> 1)
rake
mini_mime (1.1.1)
mini_portile2 (2.6.1)
mini_mime (1.1.5)
mini_portile2 (2.8.7)
minitest (5.24.1)
multi_json (1.15.0)
mustache (1.1.1)
narray (0.6.0.4)
nio4r (2.5.8)
nokogiri (1.12.5)
mini_portile2 (~> 2.6.1)
net-imap (0.4.14)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.2)
timeout
net-smtp (0.5.0)
net-protocol
nio4r (2.7.3)
nokogiri (1.16.6)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
optimist (3.0.1)
passenger (6.0.11)
optimist (3.1.0)
passenger (6.0.22)
rack
rake (>= 0.8.1)
pg (1.2.3)
protected_attributes_continued (1.8.2)
pg (1.5.6)
protected_attributes_continued (1.9.0)
activemodel (>= 5.0)
pry (0.13.1)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.9.0)
pry-byebug (3.10.1)
byebug (~> 11.0)
pry (~> 0.13.0)
pry-rails (0.3.9)
pry (>= 0.10.4)
public_suffix (4.0.6)
rabl (0.14.5)
pry (>= 0.13, < 0.15)
pry-rails (0.3.11)
pry (>= 0.13.0)
public_suffix (6.0.0)
rabl (0.16.1)
activesupport (>= 2.3.14)
racc (1.8.0)
rack (2.2.9)
Expand Down Expand Up @@ -179,20 +195,23 @@ GEM
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.5.0)
loofah (~> 2.19, >= 2.19.1)
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
rails3-restful-authentication (3.0.1)
railties (5.2.4.6)
actionpack (= 5.2.4.6)
activesupport (= 5.2.4.6)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
raindrops (0.19.2)
raindrops (0.20.1)
rake (13.2.1)
recaptcha (4.8.0)
json
rgeo (2.3.0)
rexml (3.3.1)
strscan
rgeo (3.0.1)
rgeo-activerecord (6.2.2)
activerecord (>= 5.0)
rgeo (>= 1.0.0)
Expand Down Expand Up @@ -236,30 +255,36 @@ GEM
sprockets-rails
tilt
seer (0.10.0)
selenium-webdriver (3.142.7)
childprocess (>= 0.5, < 4.0)
rubyzip (>= 1.2.2)
sprockets (4.0.2)
selenium-webdriver (4.22.0)
base64 (~> 0.2)
logger (~> 1.4)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.2)
actionpack (>= 4.0)
activesupport (>= 4.0)
rack (>= 2.2.4, < 4)
sprockets-rails (3.4.2)
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
strscan (3.1.0)
thor (1.3.1)
thread_safe (0.3.6)
tilt (2.0.10)
tzinfo (1.2.10)
tilt (2.4.0)
timeout (0.4.1)
tzinfo (1.2.11)
thread_safe (~> 0.1)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unicorn (6.0.0)
unicorn (6.1.0)
kgio (~> 2.6)
raindrops (~> 0.7)
websocket-driver (0.7.5)
websocket (1.2.11)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
will_paginate (3.3.1)
will_paginate (4.0.1)
xpath (3.2.0)
nokogiri (~> 1.8)
yajl-ruby (1.4.3)
Expand Down Expand Up @@ -319,4 +344,4 @@ DEPENDENCIES
yard

BUNDLED WITH
1.17.3
2.3.27
Loading