bumper_pusher 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6dc5d4fcc685a0acc2de47503b2b698495e597b3
4
- data.tar.gz: f9247122e1c0a2f5f5eb91e786704680ce85f883
3
+ metadata.gz: 4ec9dfb97bff8aab22084c7988fcedcc06e24d8f
4
+ data.tar.gz: b6ba8b26c63497e18eed91f1b2998be58e200ad9
5
5
  SHA512:
6
- metadata.gz: c8893da349684ec06a7fc39299e892416d94d067b59af8f9733b97bbc004beaa3a7e4718d11254e48dfac6561072ff1957df71e4a5535ee0d61946eef9584290
7
- data.tar.gz: ccc1b36afc38b2a3dc87e5c1664d9d38676c83a89512adc6d94c34bcf53e0e6bc88df49c7d44ebe9c3136ebf28be186ae133f0901823f1c394ef7de74f161d6b
6
+ metadata.gz: 4b641f17535b07b1ff874e28d07a41dd81796a1dd5502dbf6dbfa68c95ae2981bb779b052cc1663a8bea99d8475f21b03b9b6bc3ea0fc5dc9e3193f68e1769d1
7
+ data.tar.gz: 1134400788c1dad9ba6bd261b725dd943a04585216830585643e8c8d688cc9734580828e2a06cd9f910213cd7696501965ac4ef5052e4499a0735ff4bd7cf11c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bumper_pusher (0.1.19)
4
+ bumper_pusher (0.2.2)
5
5
  colorize (~> 0.7)
6
6
  github_changelog_generator (>= 1.2, < 5.0)
7
7
 
@@ -111,7 +111,7 @@ module BumperPusher
111
111
 
112
112
  case arr.count
113
113
  when 0
114
- return "test.#{POD_SPEC_TYPE}" if @options[:dry_run]
114
+ return "#{File.basename find_spec_file}-#{find_version_in_file}" if @options[:dry_run]
115
115
  puts "No #{POD_SPEC_TYPE} files found. -> Exit."
116
116
  exit
117
117
  when 1
@@ -131,7 +131,7 @@ module BumperPusher
131
131
  spec_file.sub("./", "")
132
132
  end
133
133
 
134
- def find_version_in_file(podspec)
134
+ def find_version_in_file(podspec=find_version_file)
135
135
  readme = File.read(podspec)
136
136
 
137
137
  # try to find version in format 1.22.333
@@ -267,8 +267,7 @@ module BumperPusher
267
267
  execute_line_if_not_dry_run("git push --all")
268
268
  end
269
269
 
270
- version_file = find_version_file
271
- result, versions_array = find_version_in_file(version_file)
270
+ result, versions_array = find_version_in_file
272
271
  bumped_version = bump_version(versions_array)
273
272
 
274
273
  unless @options[:beta]
@@ -280,11 +279,11 @@ module BumperPusher
280
279
 
281
280
  if @options[:bump]
282
281
  execute_line_if_not_dry_run("sed -i \"\" \"s/#{result}/#{bumped_version}/\" README.md")
283
- execute_line_if_not_dry_run("sed -i \"\" \"s/#{result}/#{bumped_version}/\" #{version_file}")
282
+ execute_line_if_not_dry_run("sed -i \"\" \"s/#{result}/#{bumped_version}/\" #{find_version_file}")
284
283
  end
285
284
 
286
- gem = find_current_gem_file
287
285
  execute_line_if_not_dry_run("gem build #{@spec_file}")
286
+ gem = find_current_gem_file
288
287
  if @options[:install]
289
288
  if @spec_mode == GEM_SPEC_TYPE
290
289
  execute_line_if_not_dry_run("gem install #{gem}")
@@ -337,7 +336,7 @@ module BumperPusher
337
336
  execute_interactive_if_not_dry_run("gem install #{gem}")
338
337
 
339
338
  execute_line_if_not_dry_run("sed -i \"\" \"s/#{bumped_version}/#{result}/\" README.md")
340
- execute_line_if_not_dry_run("sed -i \"\" \"s/#{bumped_version}/#{result}/\" #{version_file}")
339
+ execute_line_if_not_dry_run("sed -i \"\" \"s/#{bumped_version}/#{result}/\" #{find_version_file}")
341
340
  execute_line_if_not_dry_run("rm #{gem}")
342
341
  else
343
342
  fail "Unknown spec type"
@@ -353,7 +352,7 @@ module BumperPusher
353
352
  execute_line_if_not_dry_run("git flow hotfix start update-changelog")
354
353
  end
355
354
  execute_line_if_not_dry_run("github_changelog_generator")
356
- execute_line_if_not_dry_run("git commit CHANGELOG.md -m \"Update changelog for version #{bumped_version}\"")
355
+ execute_line_if_not_dry_run("git commit --all -m \"Update changelog for version #{bumped_version}\"")
357
356
  if is_git_flow_installed
358
357
  unless execute_line_if_not_dry_run("git flow hotfix finish -n update-changelog", check_exit = false) == 0
359
358
  ask_to_merge
@@ -1,3 +1,3 @@
1
1
  module BumperPusher
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.2"
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.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petr Korolev