diff --git a/.github/workflows/rspec.yml b/.github/workflows/rspec.yml index 9fbca72..93f3b2f 100644 --- a/.github/workflows/rspec.yml +++ b/.github/workflows/rspec.yml @@ -20,6 +20,7 @@ jobs: - "3.0" - "3.1" - "3.2" + - "3.3" - "head" - "jruby-9.3" runs-on: ${{ matrix.os }}-latest diff --git a/gemfiles/rails_6.1.gemfile b/gemfiles/rails_6.1.gemfile index 6214df6..20b98dc 100644 --- a/gemfiles/rails_6.1.gemfile +++ b/gemfiles/rails_6.1.gemfile @@ -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: "../" diff --git a/gemfiles/rails_7.0.gemfile b/gemfiles/rails_7.0.gemfile index 9f381de..0a19ff3 100644 --- a/gemfiles/rails_7.0.gemfile +++ b/gemfiles/rails_7.0.gemfile @@ -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: "../" diff --git a/gemfiles/sequel_5.0.gemfile b/gemfiles/sequel_5.0.gemfile index b101639..ba937c3 100644 --- a/gemfiles/sequel_5.0.gemfile +++ b/gemfiles/sequel_5.0.gemfile @@ -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 diff --git a/lib/amazing_print/core_ext/awesome_method_array.rb b/lib/amazing_print/core_ext/awesome_method_array.rb index 8a6204a..96654ef 100644 --- a/lib/amazing_print/core_ext/awesome_method_array.rb +++ b/lib/amazing_print/core_ext/awesome_method_array.rb @@ -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 diff --git a/spec/ext/nokogiri_spec.rb b/spec/ext/nokogiri_spec.rb index a6de61a..a1fde12 100644 --- a/spec/ext/nokogiri_spec.rb +++ b/spec/ext/nokogiri_spec.rb @@ -6,7 +6,7 @@ it 'colorizes tags' do xml = Nokogiri::XML('
') # FIXME: Due to something strange with Nokogiri and JRuby, we need to remove extra blank lines. - output = xml.ai.gsub(/\n\n/, "\n") + output = xml.ai.gsub("\n\n", "\n") expect(output).to eq <<~EOS \e[1;32m \e[0m<\e[1;36mhtml\e[0m>\e[1;32m @@ -32,7 +32,7 @@ it 'colorizes class and id' do xml = Nokogiri::XML('