Skip to content

Commit

Permalink
Merge pull request #105 from amazing-print/ruby-3.3
Browse files Browse the repository at this point in the history
Add support for Ruby 3.3
  • Loading branch information
paddor authored Jan 9, 2024
2 parents 25b01d1 + b4eecbb commit 0bf2a7f
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- "3.0"
- "3.1"
- "3.2"
- "3.3"
- "head"
- "jruby-9.3"
runs-on: ${{ matrix.os }}-latest
Expand Down
7 changes: 7 additions & 0 deletions gemfiles/rails_6.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
source "https://rubygems.org"

gem "activerecord-jdbcsqlite3-adapter", "~> 61.0", platform: :jruby
gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git", branch: :main
gem "fakefs", "~> 1.2"
gem "nokogiri", "~> 1.10"
gem "pry"
gem "rails", "~> 6.1.0"
gem "rspec", "~> 3.9"
gem "rubocop", "~> 1.20"
gem "rubocop-rspec", "~> 2.4"
gem "sqlite3", platform: :mri

gemspec path: "../"
7 changes: 7 additions & 0 deletions gemfiles/rails_7.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
source "https://rubygems.org"

gem "activerecord-jdbcsqlite3-adapter", "~> 70.0", platform: :jruby
gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git", branch: :main
gem "fakefs", "~> 1.2"
gem "nokogiri", "~> 1.10"
gem "pry"
gem "rails", "~> 7.0.0"
gem "rspec", "~> 3.9"
gem "rubocop", "~> 1.20"
gem "rubocop-rspec", "~> 2.4"
gem "sqlite3", platform: :mri

gemspec path: "../"
7 changes: 7 additions & 0 deletions gemfiles/sequel_5.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

source "https://rubygems.org"

gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git", branch: :main
gem "fakefs", "~> 1.2"
gem "jdbc-sqlite3", platform: :jruby
gem "nokogiri", "~> 1.10"
gem "pry"
gem "rspec", "~> 3.9"
gem "rubocop", "~> 1.20"
gem "rubocop-rspec", "~> 2.4"
gem "sequel", "~> 5.0"
gem "sqlite3", platform: :mri

Expand Down
2 changes: 1 addition & 1 deletion lib/amazing_print/core_ext/awesome_method_array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def grep(pattern, &blk)
super(pattern)
end
arr.instance_variable_set(:@__awesome_methods__, instance_variable_get(:@__awesome_methods__))
arr.select! { |item| (item.is_a?(Symbol) || item.is_a?(String)) } # grep block might return crap.
arr.select! { |item| item.is_a?(Symbol) || item.is_a?(String) } # grep block might return crap.
arr
end
end

0 comments on commit 0bf2a7f

Please sign in to comment.