diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c33f2fa..8fdcfe9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,20 +14,20 @@ jobs: # gemfile: "rails_6_1" # - ruby: "2.7" # gemfile: "rails_6_1" - - ruby: "2.6" - gemfile: "rails_6.1" - - ruby: "2.5" - gemfile: "rails_6.1" + - ruby: "3.4" + gemfile: "rails_8.0" + - ruby: "3.3" + gemfile: "rails_8.0" # - ruby: "2.7" # gemfile: "rails_6_0" - - ruby: "2.6" - gemfile: "rails_6.0" - - ruby: "2.5" - gemfile: "rails_6.0" + - ruby: "3.4" + gemfile: "rails_7.2" + - ruby: "3.3" + gemfile: "rails_7.2" - - ruby: "2.5" - gemfile: "rails_5.2" + - ruby: "3.3" + gemfile: "rails_7.1" runs-on: ubuntu-latest diff --git a/Appraisals b/Appraisals index 36b171a..a07920f 100644 --- a/Appraisals +++ b/Appraisals @@ -1,35 +1,35 @@ -appraise 'rails-5.2' do +appraise 'rails-7.0' do %w[ actionview railties ].each do |rails_gem| - gem rails_gem, '~> 5.2.0' + gem rails_gem, '~> 7.0.0' end end -appraise 'rails-6.0' do +appraise 'rails-7.1' do %w[ actionview railties ].each do |rails_gem| - gem rails_gem, '~> 6.0.0' + gem rails_gem, '~> 7.1.0' end end -appraise 'rails-6.1' do +appraise 'rails-7.2' do %w[ actionview railties ].each do |rails_gem| - gem rails_gem, '~> 6.1.0' + gem rails_gem, '~> 7.2.0' end end -appraise 'rails-7.0' do +appraise 'rails-8.0' do %w[ actionview railties ].each do |rails_gem| - gem rails_gem, '~> 7.0.0' + gem rails_gem, '~> 8.0.0' end end diff --git a/Gemfile b/Gemfile index e0810bb..fa75df1 100644 --- a/Gemfile +++ b/Gemfile @@ -1,9 +1,3 @@ source 'https://rubygems.org' -group :test do - gem 'test-unit' - gem 'pry' - gem 'pry-byebug' -end - gemspec diff --git a/deface.gemspec b/deface.gemspec index 72c413f..fa9597c 100644 --- a/deface.gemspec +++ b/deface.gemspec @@ -29,24 +29,30 @@ Gem::Specification.new do |spec| spec.rdoc_options = ["--charset=UTF-8"] spec.extra_rdoc_files = ["README.markdown"] - spec.add_dependency('nokogiri', '>= 1.6') - %w[ actionview railties ].each do |rails_gem| - spec.add_dependency(rails_gem, '>= 5.2') + spec.add_dependency(rails_gem, '>= 7.0') end - spec.add_dependency('rainbow', '>= 2.1.0') + + spec.add_dependency('base64') + spec.add_dependency('bigdecimal') + spec.add_dependency('drb') + spec.add_dependency('mutex_m') + spec.add_dependency('nokogiri', '>= 1.6') spec.add_dependency('polyglot') + spec.add_dependency('rainbow', '>= 2.1.0') spec.add_development_dependency('appraisal') spec.add_development_dependency('erubis') spec.add_development_dependency('gem-release') - spec.add_development_dependency('rspec', '>= 3.1.0') - spec.add_development_dependency('haml', ['>= 4.0', '< 6']) - spec.add_development_dependency('slim', '~> 4.1') - spec.add_development_dependency('simplecov', '>= 0.6.4') spec.add_development_dependency('generator_spec', '~> 0.8') + spec.add_development_dependency('haml', ['>= 4.0', '< 6']) spec.add_development_dependency('pry') + spec.add_development_dependency('pry-byebug') + spec.add_development_dependency('rspec', '>= 3.1.0') + spec.add_development_dependency('simplecov', '>= 0.6.4') + spec.add_development_dependency('slim', '~> 4.1') + spec.add_development_dependency('test-unit') end diff --git a/gemfiles/rails_7.0.gemfile b/gemfiles/rails_7.0.gemfile index 82c9963..e49f880 100644 --- a/gemfiles/rails_7.0.gemfile +++ b/gemfiles/rails_7.0.gemfile @@ -5,10 +5,4 @@ source "https://rubygems.org" gem "actionview", "~> 7.0.0" gem "railties", "~> 7.0.0" -group :test do - gem "test-unit" - gem "pry" - gem "pry-byebug" -end - gemspec path: "../" diff --git a/gemfiles/rails_7.1.gemfile b/gemfiles/rails_7.1.gemfile new file mode 100644 index 0000000..ba79111 --- /dev/null +++ b/gemfiles/rails_7.1.gemfile @@ -0,0 +1,8 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "actionview", "~> 7.1.0" +gem "railties", "~> 7.1.0" + +gemspec path: "../" diff --git a/gemfiles/rails_7.2.gemfile b/gemfiles/rails_7.2.gemfile new file mode 100644 index 0000000..23fb22f --- /dev/null +++ b/gemfiles/rails_7.2.gemfile @@ -0,0 +1,8 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "actionview", "~> 7.2.0" +gem "railties", "~> 7.2.0" + +gemspec path: "../" diff --git a/gemfiles/rails_8.0.gemfile b/gemfiles/rails_8.0.gemfile new file mode 100644 index 0000000..bb5ea2f --- /dev/null +++ b/gemfiles/rails_8.0.gemfile @@ -0,0 +1,8 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "actionview", "~> 8.0.0" +gem "railties", "~> 8.0.0" + +gemspec path: "../" diff --git a/spec/deface/precompiler_spec.rb b/spec/deface/precompiler_spec.rb index d043e0f..1aa0b3e 100644 --- a/spec/deface/precompiler_spec.rb +++ b/spec/deface/precompiler_spec.rb @@ -31,7 +31,7 @@ module Deface filename = 'spec/dummy/app/compiled_views/posts/precompileme.html.erb' - expect(File.exists?(filename)).to be_truthy + expect(File.exist?(filename)).to be_truthy file = File.open(filename, "rb") contents = file.read