Skip to content

Commit 81a2b39

Browse files
committed
Make the release script update Gemfile.lock
1 parent 72e1c2f commit 81a2b39

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
react_on_rails (14.2.0)
4+
react_on_rails (15.0.0.alpha.2)
55
addressable
66
connection_pool
77
execjs (~> 2.5)

rakelib/release.rake

+5-3
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,19 @@ task :release, %i[gem_version dry_run tools_install] do |_t, args|
7777
msg = <<~MSG
7878
Once you have successfully published, run these commands to update the spec apps:
7979
80+
bundle install
8081
cd #{dummy_app_dir}; bundle update react_on_rails
81-
cd #{gem_root}#{' '}
82-
git commit -a -m 'Update Gemfile.lock for spec app'
82+
cd #{gem_root}
83+
git commit -a -m 'Update Gemfile.lock'
8384
git push
8485
MSG
8586
puts msg
8687
end
8788
# rubocop:enable Metrics/BlockLength
8889

8990
task :test do
91+
sh_in_dir(gem_root, "bundle install")
9092
unbundled_sh_in_dir(gem_root, "cd #{dummy_app_dir}; bundle update react_on_rails")
91-
sh_in_dir(gem_root, "git commit -a -m 'Update Gemfile.lock for spec app'")
93+
sh_in_dir(gem_root, "git commit -a -m 'Update Gemfile.lock'")
9294
sh_in_dir(gem_root, "git push")
9395
end

0 commit comments

Comments
 (0)