Skip to content

Commit

Permalink
Add gem to examples.rake, lock mini_racer version
Browse files Browse the repository at this point in the history
  • Loading branch information
gscarv13 committed Nov 16, 2021
1 parent 5e996b9 commit 1a6bf40
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.development_dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ gem "sdoc", group: :doc
gem "sprockets"

gem "amazing_print"
gem "mini_racer"
gem "mini_racer", "0.4.0"

group :development, :test do
gem "listen"
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/react_on_rails/base_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def copy_webpacker_config
end

def add_base_gems_to_gemfile
gem "mini_racer", platforms: :ruby
gem "mini_racer", "0.4.0", platforms: :ruby
run "bundle"
end

Expand Down
1 change: 1 addition & 0 deletions rakelib/examples.rake
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ namespace :examples do # rubocop:disable Metrics/BlockLength
sh_in_dir(examples_dir, "rails new #{example_type.name} #{example_type.rails_options}")
sh_in_dir(example_type.dir, "touch .gitignore")
copy_generator_webpacker_yml_to(example_type.dir)
sh_in_dir(example_type.dir, "bundle add webpacker --version 6.0.0.rc.6")
sh_in_dir(example_type.dir, "rake webpacker:install")
sh_in_dir(example_type.dir, "bundle binstubs --path=#{example_type.dir}/bin webpacker")
append_to_gemfile(example_type.gemfile, example_type.required_gems)
Expand Down
2 changes: 1 addition & 1 deletion react_on_rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Gem::Specification.new do |s|
s.add_dependency "execjs", "~> 2.5"
s.add_dependency "rails", ">= 3.2"
s.add_dependency "rainbow", "~> 3.0"
s.add_dependency "webpacker", ">= 4.0"
s.add_dependency "webpacker", "6.0.0.rc.6"

s.add_development_dependency "bundler", "~> 2"
s.add_development_dependency "gem-release"
Expand Down

0 comments on commit 1a6bf40

Please sign in to comment.