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

build: Build with newer ruby and mongo versions. #426

Merged
merged 6 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
ruby-version: ['3.0.4']
mongodb-version: ['4.2.14']
ruby-version: ['3.0.4', '3.1.4']
mongodb-version: ['4.2.14'] #, '6', '7']
include:
- ruby-version: 3.0.4
- ruby-version: '3.0.4'
gemfile: Gemfile3
allow-failure: false
- ruby-version: '3.1.4'
gemfile: Gemfile
allow-failure: true

env:
SEARCH_SERVER_ES7: http://localhost:9200
MONGOHQ_URL: mongodb://localhost:27017/cs_comments_service_test
Expand Down
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source 'https://rubygems.org'
ruby "2.5.7"
ruby ">= 3.1"

gem 'pry'
gem 'pry-nav'
Expand Down Expand Up @@ -36,7 +36,6 @@ gem 'mongoid_magic_counter_cache'
# function 'handle_threads_query'.
gem 'will_paginate_mongoid', "~>2.0"
gem 'rdiscount'
gem 'nokogiri', "~> 1.8.1"

gem 'elasticsearch', '~> 7.8.0'
gem 'elasticsearch-model', '~> 7.1.0'
Expand Down
139 changes: 68 additions & 71 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,35 @@ GIT
GEM
remote: https://rubygems.org/
specs:
activemodel (6.1.7)
activesupport (= 6.1.7)
activesupport (6.1.7)
activemodel (7.0.8.1)
activesupport (= 7.0.8.1)
activesupport (7.0.8.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.1)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
base64 (0.2.0)
bigdecimal (3.1.6)
bson (4.15.0)
bson_ext (1.5.1)
codecov (0.6.0)
simplecov (>= 0.15, < 0.22)
coderay (1.1.3)
concurrent-ruby (1.1.10)
crack (0.4.5)
concurrent-ruby (1.2.3)
crack (1.0.0)
bigdecimal
rexml
dalli (3.2.0)
dalli (3.2.8)
delayed_job (4.1.11)
activesupport (>= 3.0, < 8.0)
delayed_job_mongoid (3.0.0)
delayed_job (>= 3.0, < 5)
mongoid (>= 5.0)
diff-lcs (1.5.0)
diff-lcs (1.5.1)
docile (1.4.0)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
domain_name (0.6.20240107)
elasticsearch (7.8.1)
elasticsearch-api (= 7.8.1)
elasticsearch-transport (= 7.8.1)
Expand All @@ -56,13 +57,13 @@ GEM
elasticsearch-transport (7.8.1)
faraday (~> 1)
multi_json
enumerize (2.5.0)
enumerize (2.7.0)
activesupport (>= 3.2)
factory_bot (6.2.1)
factory_bot (6.4.6)
activesupport (>= 5.0.0)
faker (2.22.0)
faker (3.2.3)
i18n (>= 1.8.11, < 2)
faraday (1.10.2)
faraday (1.10.3)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
Expand All @@ -85,9 +86,9 @@ GEM
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
ffi (1.15.5)
ffi (1.16.3)
formatador (1.1.0)
guard (2.18.0)
guard (2.18.1)
formatador (>= 0.2.4)
listen (>= 2.7, < 4.0)
lumberjack (>= 1.0.12, < 2.0)
Expand All @@ -98,27 +99,26 @@ GEM
thor (>= 0.18.1)
guard-unicorn (0.2.0)
guard (>= 1.1)
hashdiff (1.0.1)
hashdiff (1.1.0)
hashie (5.0.0)
http-accept (1.7.0)
http-cookie (1.0.5)
domain_name (~> 0.5)
i18n (1.12.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
kgio (2.11.4)
listen (3.7.1)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
lumberjack (1.2.8)
lumberjack (1.2.10)
method_source (1.0.0)
mime-types (3.4.1)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2022.0105)
mini_portile2 (2.3.0)
minitest (5.15.0)
mongo (2.18.1)
mime-types-data (3.2024.0206)
minitest (5.22.2)
mongo (2.19.3)
bson (>= 4.14.1, < 5.0.0)
mongoid (7.5.1)
mongoid (7.5.4)
activemodel (>= 5.1, < 7.1, != 7.0.0)
mongo (>= 2.10.5, < 3.0.0)
ruby2_keywords (~> 0.0.5)
Expand All @@ -128,63 +128,64 @@ GEM
mongoid
rake
multi_json (1.15.0)
multipart-post (2.2.3)
mustermann (2.0.2)
multipart-post (2.4.0)
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)
nenv (0.3.0)
netrc (0.11.0)
newrelic_rpm (8.12.0)
nokogiri (1.8.5)
mini_portile2 (~> 2.3.0)
newrelic_rpm (9.7.1)
notiffany (0.1.3)
nenv (~> 0.1)
shellany (~> 0.0)
protected_attributes_continued (1.8.2)
protected_attributes_continued (1.9.0)
activemodel (>= 5.0)
pry (0.14.1)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry-nav (1.0.0)
pry (>= 0.9.10, < 0.15)
public_suffix (4.0.7)
rack (2.2.4)
rack-protection (2.2.2)
rack
rack-test (2.0.2)
public_suffix (5.0.4)
rack (3.0.9.1)
rack-protection (4.0.0)
base64 (>= 0.1.0)
rack (>= 3.0.0, < 4)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
rack (>= 1.3)
rack-timeout (0.6.3)
raindrops (0.20.0)
rake (13.0.6)
raindrops (0.20.1)
rake (13.1.0)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rdiscount (2.2.7)
rdiscount (2.2.7.3)
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rexml (3.2.5)
rexml (3.2.6)
rs_voteable_mongo (1.3.0)
mongoid (~> 7.0)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-collection_matchers (1.2.0)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-collection_matchers (1.2.1)
rspec-expectations (>= 2.99.0.beta1)
rspec-core (3.12.0)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (~> 3.13.0)
rspec-its (1.3.0)
rspec-core (>= 3.0.0)
rspec-expectations (>= 3.0.0)
rspec-mocks (3.12.0)
rspec-mocks (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.0)
ruby2_keywords (0.0.5)
shellany (0.0.1)
simplecov (0.21.2)
Expand All @@ -193,25 +194,23 @@ GEM
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
sinatra (2.2.2)
mustermann (~> 2.0)
rack (~> 2.2)
rack-protection (= 2.2.2)
sinatra (4.0.0)
mustermann (~> 3.0)
rack (>= 3.0.0, < 4)
rack-protection (= 4.0.0)
rack-session (>= 2.0.0, < 3)
tilt (~> 2.0)
sinatra-param (1.6.0)
sinatra (>= 1.3)
thor (1.2.1)
tilt (2.0.11)
timecop (0.9.5)
tzinfo (2.0.5)
thor (1.3.0)
tilt (2.3.0)
timecop (0.9.8)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.8.2)
unicorn (6.1.0)
kgio (~> 2.6)
raindrops (~> 0.7)
webmock (3.18.1)
webmock (3.22.0)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
Expand All @@ -220,7 +219,6 @@ GEM
mongoid
will_paginate (~> 3.0)
yajl-ruby (1.3.1)
zeitwerk (2.6.4)

PLATFORMS
ruby
Expand All @@ -247,7 +245,6 @@ DEPENDENCIES
mongoid_cleaner (~> 1.2.0)
mongoid_magic_counter_cache
newrelic_rpm
nokogiri (~> 1.8.1)
protected_attributes_continued
pry
pry-nav
Expand All @@ -270,7 +267,7 @@ DEPENDENCIES
yajl-ruby (~> 1.3.1)

RUBY VERSION
ruby 2.5.7p206
ruby 3.1.4p223

BUNDLED WITH
1.16.6
2.3.26
Loading
Loading