bumper_pusher 0.1.10 → 0.1.11

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: 12a13b59038f4a088b15c85b75537149fea4b5e7
4
- data.tar.gz: 03117dcda2b1ad04006817e7765bb7c6bcebf8da
3
+ metadata.gz: d604ffda651fdf4b254167ca393b4a05e08bf02a
4
+ data.tar.gz: 2fd824b6778fe5e2f07a33b0b46a21c44508525c
5
5
  SHA512:
6
- metadata.gz: 7824d7e43e23b2d39c45aa4343e4d9e0527a0b6fc3a065f3c6390deb31e8dce422fccecfc22bb0defca71419553801d94c48f3194788fad55fd75903084f9ba2
7
- data.tar.gz: 49a47baa7109ecc58c6eb70f99257fc59d686330f434d3fbd9984ed05efff0fe1d88550e76db1f3a8412c65418803398ffce1cc5923902c9f47285e8ca489c04
6
+ metadata.gz: 6072a8c2ed42e94326e2d7951b97d42b24eeb7aca6573d6fd2ab924b48a00f04fcc37a06fe714da9a86d5276fd8e3b66b95b8dcb3cfefeab9baf3a514169391d
7
+ data.tar.gz: 940aa235c8f12e0b13f1231474b320a0939bc376aec7327c570ef2b775602c52da8dbdddb7070aa4121bb4fdaaf35dfa7d068f3f45b368ecbec3762f6fa8aa29
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.10] (https://github.com/skywinder/bumper_pusher/tree/0.1.10)
4
+ #### 11/12/14
5
+ - *Closed issue:* Push after update changelog [\#10](https://github.com/skywinder/bumper_pusher/issues/10)
6
+
3
7
  ## [0.1.9] (https://github.com/skywinder/bumper_pusher/tree/0.1.9)
4
8
  #### 10/12/14
5
9
  ## [0.1.8] (https://github.com/skywinder/bumper_pusher/tree/0.1.8)
@@ -199,16 +199,20 @@ module BumperPusher
199
199
  output
200
200
  end
201
201
 
202
- def execute_line_if_not_dry_run(line)
202
+ def execute_line_if_not_dry_run(line, check_exit = true)
203
203
  if @options[:dry_run]
204
204
  puts "Dry run: #{line}"
205
205
  nil
206
206
  else
207
207
  puts line
208
208
  value = %x[#{line}]
209
- puts value
210
- check_exit_status(value)
211
- value
209
+ if check_exit
210
+ puts value
211
+ check_exit_status(value)
212
+ value
213
+ else
214
+ $?.exitstatus
215
+ end
212
216
  end
213
217
  end
214
218
 
@@ -269,7 +273,7 @@ module BumperPusher
269
273
  bumped_version = bump_version(versions_array)
270
274
 
271
275
  if is_gitflow_installed && !@options[:beta]
272
- execute_line_if_not_dry_run("git flow release start #{bumped_version}")
276
+ execute_line_if_not_dry_run("git flow release start #{bumped_version}", check_exit = false)
273
277
  end
274
278
 
275
279
  if @options[:bump]
@@ -281,10 +285,14 @@ module BumperPusher
281
285
  execute_line_if_not_dry_run("git commit --all -m \"Update #{@spec_mode} to version #{bumped_version}\"")
282
286
 
283
287
  if is_gitflow_installed
284
- execute_line_if_not_dry_run("git flow release finish -n #{bumped_version}")
285
- execute_line_if_not_dry_run('git checkout master')
286
- execute_line_if_not_dry_run("git tag #{bumped_version}")
287
- execute_line_if_not_dry_run('git checkout develop')
288
+
289
+ if execute_line_if_not_dry_run("git flow release finish -n #{bumped_version}", check_exit = false) == 0
290
+ execute_line_if_not_dry_run('git checkout master')
291
+ execute_line_if_not_dry_run("git tag #{bumped_version}")
292
+ execute_line_if_not_dry_run('git checkout develop')
293
+ else
294
+ execute_line_if_not_dry_run("git tag #{bumped_version}")
295
+ end
288
296
  else
289
297
  execute_line_if_not_dry_run("git tag #{bumped_version}")
290
298
  end
@@ -334,14 +342,19 @@ module BumperPusher
334
342
  else
335
343
 
336
344
  if is_gitflow_installed
337
- execute_line_if_not_dry_run("git flow hotfix start update-changelog")
345
+ execute_line_if_not_dry_run("git flow hotfix start update-changelog", check_exit = false)
338
346
  end
339
347
  execute_line_if_not_dry_run('github_changelog_generator')
340
348
  execute_line_if_not_dry_run("git commit CHANGELOG.md -m \"Update changelog for version #{bumped_version}\"")
341
349
  if is_gitflow_installed
342
- execute_line_if_not_dry_run("git flow hotfix finish -n update-changelog")
343
- current_branch = get_current_branch
344
- execute_line_if_not_dry_run("git push && git checkout master && git push && git checkout #{current_branch}")
350
+
351
+ if execute_line_if_not_dry_run("git flow hotfix finish -n update-changelog", check_exit = false) == 0
352
+ current_branch = get_current_branch
353
+ execute_line_if_not_dry_run("git push && git checkout master && git push && git checkout #{current_branch}")
354
+ else
355
+ execute_line_if_not_dry_run('git push')
356
+ end
357
+
345
358
  else
346
359
  execute_line_if_not_dry_run('git push')
347
360
  end
@@ -382,7 +395,7 @@ module BumperPusher
382
395
  end
383
396
 
384
397
  def is_gitflow_installed()
385
- system("git flow version")? true : false
398
+ system("git flow version") ? true : false
386
399
  end
387
400
  end
388
401
 
@@ -1,3 +1,3 @@
1
1
  module BumperPusher
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bumper_pusher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petr Korolev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-11 00:00:00.000000000 Z
11
+ date: 2015-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler