bumper_pusher 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/bumper_pusher/bumper.rb +24 -23
- data/lib/bumper_pusher/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a68437a52a9be3fea575126686205ec9a4af70d
|
4
|
+
data.tar.gz: 146b40de6c483f628632745aa5f10dbb84168207
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ec6e4978ea0bef4201fc1f85971c96a06ccf9fc201cc4b927315751abe5d51a9aaa766067fc0f29baad33788077c2d8d939461070dfcb7d2a83596e11acb37c
|
7
|
+
data.tar.gz: f3933c646785dcba1ae5b770e19fdd25743348f1c9f899c2cd74935beffcd067f71f74897f897b0598ad9a1066155636ae2f76db827380b99c448ebb1200258b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [0.1.16](https://github.com/skywinder/bumper_pusher/tree/0.1.16) (2015-03-03)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/skywinder/bumper_pusher/compare/0.1.15...0.1.16)
|
6
|
+
|
3
7
|
## [0.1.15](https://github.com/skywinder/bumper_pusher/tree/0.1.15) (2015-03-03)
|
4
8
|
|
5
9
|
[Full Changelog](https://github.com/skywinder/bumper_pusher/compare/0.1.14...0.1.15)
|
data/lib/bumper_pusher/bumper.rb
CHANGED
@@ -289,7 +289,7 @@ module BumperPusher
|
|
289
289
|
unless @options[:beta]
|
290
290
|
execute_line_if_not_dry_run('git push --all')
|
291
291
|
if is_git_flow_installed && !is_branch_hotfix?
|
292
|
-
execute_line_if_not_dry_run("git flow release start #{bumped_version}"
|
292
|
+
execute_line_if_not_dry_run("git flow release start #{bumped_version}")
|
293
293
|
end
|
294
294
|
end
|
295
295
|
|
@@ -305,25 +305,16 @@ module BumperPusher
|
|
305
305
|
if is_branch_hotfix?
|
306
306
|
branch_split = get_current_branch.split('/').last
|
307
307
|
unless execute_line_if_not_dry_run("git flow hotfix finish -n #{branch_split}", check_exit = false) == 0
|
308
|
-
|
309
|
-
str = ''
|
310
|
-
while str != 'Y' && str != 'N'
|
311
|
-
str = gets.chomp
|
312
|
-
puts str
|
313
|
-
end
|
314
|
-
if str == 'N'
|
315
|
-
puts '-> exit'
|
316
|
-
exit
|
317
|
-
end
|
308
|
+
ask_to_merge
|
318
309
|
execute_line_if_not_dry_run("git flow hotfix finish -n #{branch_split}")
|
319
310
|
end
|
320
|
-
execute_line_if_not_dry_run('git checkout master')
|
321
|
-
|
322
311
|
else
|
323
|
-
|
324
|
-
|
312
|
+
unless execute_line_if_not_dry_run("git flow release finish -n #{bumped_version}", check_exit = false) == 0
|
313
|
+
ask_to_merge
|
314
|
+
execute_line_if_not_dry_run("git flow release finish -n #{bumped_version}")
|
325
315
|
end
|
326
316
|
end
|
317
|
+
execute_line_if_not_dry_run('git checkout master')
|
327
318
|
end
|
328
319
|
execute_line_if_not_dry_run("git tag #{bumped_version}")
|
329
320
|
end
|
@@ -372,19 +363,16 @@ module BumperPusher
|
|
372
363
|
else
|
373
364
|
|
374
365
|
if is_git_flow_installed
|
375
|
-
execute_line_if_not_dry_run(
|
366
|
+
execute_line_if_not_dry_run('git flow hotfix start update-changelog')
|
376
367
|
end
|
377
368
|
execute_line_if_not_dry_run('github_changelog_generator')
|
378
369
|
execute_line_if_not_dry_run("git commit CHANGELOG.md -m \"Update changelog for version #{bumped_version}\"")
|
379
370
|
if is_git_flow_installed
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
execute_line_if_not_dry_run("git push && git checkout master && git push && git checkout #{current_branch}")
|
384
|
-
else
|
385
|
-
execute_line_if_not_dry_run('git push')
|
371
|
+
unless execute_line_if_not_dry_run('git flow hotfix finish -n update-changelog', check_exit = false) == 0
|
372
|
+
ask_to_merge
|
373
|
+
execute_line_if_not_dry_run('git flow hotfix finish -n update-changelog')
|
386
374
|
end
|
387
|
-
|
375
|
+
execute_line_if_not_dry_run("git push && git checkout master && git push && git checkout #{get_current_branch}")
|
388
376
|
else
|
389
377
|
execute_line_if_not_dry_run('git push')
|
390
378
|
end
|
@@ -394,6 +382,19 @@ module BumperPusher
|
|
394
382
|
|
395
383
|
end
|
396
384
|
|
385
|
+
def ask_to_merge
|
386
|
+
puts 'Automatic merge failed, please open new terminal, resolve conflicts, then press Y. Or press N to terminate'
|
387
|
+
str = ''
|
388
|
+
while str != 'Y' && str != 'N'
|
389
|
+
str = gets.chomp
|
390
|
+
puts str
|
391
|
+
end
|
392
|
+
if str == 'N'
|
393
|
+
puts '-> exit'
|
394
|
+
exit
|
395
|
+
end
|
396
|
+
end
|
397
|
+
|
397
398
|
def find_version_file
|
398
399
|
version_file = nil
|
399
400
|
arr = `find . -name 'version.rb'`.split("\n")
|