Skip to content

Commit

Permalink
Merge pull request #63 from skoba/to_catch_up_rails6_ruby3
Browse files Browse the repository at this point in the history
To catch up rails6 ruby3
  • Loading branch information
alexrothenberg authored Feb 22, 2021
2 parents fcd176d + 64cb615 commit 585ca1d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.5.8
13 changes: 6 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ language: ruby
sudo: false

rvm:
- 2.3.0
- 2.2
- 2.1.2
- 2.0.0
- 2.6
- 2.7
- 3.0
- ruby-head
- jruby-9.1.2.0
- jruby-9.2.14

env:
- RSPEC_VERSION=master
- RSPEC_VERSION='~> 3.0'
- RSPEC_VERSION='~> 3.10'

bundler_args: "--retry=3 --jobs=3"

Expand All @@ -20,4 +19,4 @@ script: "bundle exec rake ci --trace"
matrix:
allow_failures:
- rvm: ruby-head
- rvm: jruby-9.1.2.0
- rvm: jruby-9.2.14.0
10 changes: 5 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def create_gem(gem_name)
sh "mkdir -p tmp/#{gem_name}/spec"
sh "cp '#{template_folder}/spec/spec_helper.rb' tmp/#{gem_name}/spec"
Dir.chdir("./tmp/#{gem_name}") do
Bundler.clean_system 'bundle install'
Bundler.unbundled_system 'bundle install'
end
end

Expand All @@ -45,10 +45,10 @@ namespace :generate do
sh "bundle exec rails new ./tmp/example_app -m 'features/templates/generate_example_app.rb' --skip-test-unit"
sh "cp 'features/templates/rspec.rake' ./tmp/example_app/lib/tasks"
Dir.chdir("./tmp/example_app/") do
Bundler.clean_system 'bundle install'
Bundler.clean_system 'rake db:migrate'
Bundler.clean_system 'rails g rspec:install'
Bundler.clean_system 'spring stop'
Bundler.unbundled_system 'bundle install'
Bundler.unbundled_system 'rake db:migrate'
Bundler.unbundled_system 'rails g rspec:install'
Bundler.unbundled_system 'spring stop'
end
end

Expand Down
2 changes: 2 additions & 0 deletions ammeter.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Gem::Specification.new do |s|
s.add_runtime_dependency 'activesupport', '>= 3.0'
s.add_runtime_dependency 'rspec-rails', '>= 2.2'

s.add_runtime_dependency 'bootsnap'

s.add_development_dependency 'rspec', '>= 2.2'
s.add_development_dependency 'rails', '>= 3.1'
s.add_development_dependency 'uglifier', '>= 1.2.4'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
require 'ostruct'

begin
view = ActionView::Template::Handlers::ERB.call(OpenStruct.new(:source => code))
view = ActionView::Template::Handlers::ERB.call(OpenStruct.new({:source => code}), code)
eval('__crash_me__; ' + view)
rescue SyntaxError
false
Expand Down

0 comments on commit 585ca1d

Please sign in to comment.