Skip to content

Commit

Permalink
Drop the support of Ruby 2.2
Browse files Browse the repository at this point in the history
Since github flow fails to install bundler in Ruby 2.2.

The error message:
 Bundler 2 requires Ruby 2.3+, using Bundler 1 on Ruby <= 2.2
  /opt/hostedtoolcache/Ruby/2.2.10/x64/bin/gem install bundler -v ~> 1.0
  ERROR:  While executing gem ... (RuntimeError)
      Marshal.load reentered at marshal_load
  Took   0.42 seconds
Error: The process '/opt/hostedtoolcache/Ruby/2.2.10/x64/bin/gem' failed with exit code 1
  • Loading branch information
khiav reoy committed Jul 30, 2023
1 parent bc2b9d1 commit ec68b37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- ACTIVE_RECORD
- MONGOID
ruby:
- 2.2
- 2.3
- 2.6
- 2.7
- 3.0
Expand Down Expand Up @@ -78,15 +78,15 @@ jobs:
- gemfile: active_record_52.gemfile
orm: MONGOID
- gemfile: active_record_60.gemfile
ruby: 2.2
ruby: 2.3
- gemfile: active_record_60.gemfile
orm: MONGOID
- gemfile: active_record_61.gemfile
ruby: 2.2
ruby: 2.3
- gemfile: active_record_61.gemfile
orm: MONGOID
- gemfile: active_record_70.gemfile
ruby: 2.2
ruby: 2.3
- gemfile: active_record_70.gemfile
ruby: 2.6
- gemfile: active_record_70.gemfile
Expand All @@ -97,8 +97,6 @@ jobs:
ruby: 3.0
- gemfile: mongoid_54.gemfile
ruby: 3.1
- gemfile: mongoid_73.gemfile
ruby: 2.2
- gemfile: mongoid_54.gemfile
orm: ACTIVE_RECORD
- gemfile: mongoid_64.gemfile
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ If you have a Rails 3 project, and want to pluck not only one column,
feel free to use this gem and no need to worry about upgrading to Rails 4, 5, 6 in the future will break this.

## Supports
- Ruby 2.2 ~ 2.7, 3.0 ~ 3.1
- Ruby 2.3 ~ 2.7, 3.0 ~ 3.1
- Rails 3.2, 4.2, 5.0, 5.1, 5.2, 6.0, 6.1, 7.0

## Installation
Expand Down

1 comment on commit ec68b37

@khiav223577
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.