Skip to content

Commit e0b90a8

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

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,21 @@ task :release, %i[gem_version dry_run tools_install] do |_t, args|
7575
sh_in_dir(gem_root, "gem release") unless is_dry_run
7676

7777
msg = <<~MSG
78-
Once you have successfully published, run these commands to update the spec apps:
78+
Once you have successfully published, run these commands to update Gemfile.lock locally and in 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+
bundle_install_in(gem_root)
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)