bumper_pusher 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e583e0512a8968f2bf1b31b5fa1dc5e8a184d65
4
- data.tar.gz: 6b9be7b84f751f9a51dd0ee06f095d25919e014c
3
+ metadata.gz: 9a68437a52a9be3fea575126686205ec9a4af70d
4
+ data.tar.gz: 146b40de6c483f628632745aa5f10dbb84168207
5
5
  SHA512:
6
- metadata.gz: d7dd8e3d28a66faf8ba05763765fa647a7650a6e204442dd5976a19581b869685d90156561003edd1da12f3907cb724e0621bf6b69a9eb7fcf122cb4b69d9322
7
- data.tar.gz: 317511f49a1c1f2cdf286ae6666a42188674349a7d4c00771cc261d475458dc5d7fa1917ae5721e2a9997c7138c31d3e5543d698f466a56c54503c0e9e9f9131
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)
@@ -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}", check_exit = false)
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
- puts 'Automatic merge failed, please open new terminal, resolve conflicts, then press Y. Or press N to terminate'
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
- if execute_line_if_not_dry_run("git flow release finish -n #{bumped_version}", check_exit = false) == 0
324
- execute_line_if_not_dry_run('git checkout master')
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("git flow hotfix start update-changelog", check_exit = false)
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
- if execute_line_if_not_dry_run("git flow hotfix finish -n update-changelog", check_exit = false) == 0
382
- current_branch = get_current_branch
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")
@@ -1,3 +1,3 @@
1
1
  module BumperPusher
2
- VERSION = "0.1.16"
2
+ VERSION = "0.1.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bumper_pusher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petr Korolev