bumper_pusher 0.2.0 → 0.2.2
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bumper_pusher/bumper.rb +7 -8
- 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: 4ec9dfb97bff8aab22084c7988fcedcc06e24d8f
|
|
4
|
+
data.tar.gz: b6ba8b26c63497e18eed91f1b2998be58e200ad9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b641f17535b07b1ff874e28d07a41dd81796a1dd5502dbf6dbfa68c95ae2981bb779b052cc1663a8bea99d8475f21b03b9b6bc3ea0fc5dc9e3193f68e1769d1
|
|
7
|
+
data.tar.gz: 1134400788c1dad9ba6bd261b725dd943a04585216830585643e8c8d688cc9734580828e2a06cd9f910213cd7696501965ac4ef5052e4499a0735ff4bd7cf11c
|
data/Gemfile.lock
CHANGED
data/lib/bumper_pusher/bumper.rb
CHANGED
|
@@ -111,7 +111,7 @@ module BumperPusher
|
|
|
111
111
|
|
|
112
112
|
case arr.count
|
|
113
113
|
when 0
|
|
114
|
-
return "
|
|
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
|
-
|
|
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}/\" #{
|
|
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}/\" #{
|
|
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
|
|
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
|