bumper_pusher 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.travis.yml +1 -2
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +52 -0
- data/README.md +1 -1
- data/Rakefile +3 -1
- data/lib/bumper_pusher/bumper.rb +15 -10
- data/lib/bumper_pusher/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db11e6a29e876edb2993cd2dc02b4d61f9c6a6ee
|
4
|
+
data.tar.gz: 5d5d9cd2e17fe9e25c5d3e7bd85c19518e2fa56d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 674717d68802e8451a1fd7904ec892b89882086a8e3efdf002377173d4784de63bc3152ea10c4d79c1b41a9bea8950c9bebe4c485e1c1d22310f7f62c79e5de5
|
7
|
+
data.tar.gz: d7b83f5db75b22db226b1992469f8fbba5fa5f2d859ec9f1bba0978aa3984f4d2278612f70b7078631a42f678b62a6f9666671e105161c88fa3650d182d33dea
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [0.1.17](https://github.com/skywinder/bumper_pusher/tree/0.1.17) (2015-03-03)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/skywinder/bumper_pusher/compare/0.1.16...0.1.17)
|
6
|
+
|
3
7
|
## [0.1.16](https://github.com/skywinder/bumper_pusher/tree/0.1.16) (2015-03-03)
|
4
8
|
|
5
9
|
[Full Changelog](https://github.com/skywinder/bumper_pusher/compare/0.1.15...0.1.16)
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
bumper_pusher (0.1.17)
|
5
|
+
colorize (~> 0.7)
|
6
|
+
github_changelog_generator (>= 1.2, < 5.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
addressable (2.3.8)
|
12
|
+
colorize (0.7.5)
|
13
|
+
descendants_tracker (0.0.4)
|
14
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
15
|
+
faraday (0.9.1)
|
16
|
+
multipart-post (>= 1.2, < 3)
|
17
|
+
github_api (0.12.3)
|
18
|
+
addressable (~> 2.3)
|
19
|
+
descendants_tracker (~> 0.0.4)
|
20
|
+
faraday (~> 0.8, < 0.10)
|
21
|
+
hashie (>= 3.3)
|
22
|
+
multi_json (>= 1.7.5, < 2.0)
|
23
|
+
nokogiri (~> 1.6.3)
|
24
|
+
oauth2
|
25
|
+
github_changelog_generator (1.3.11)
|
26
|
+
colorize (~> 0.7)
|
27
|
+
github_api (~> 0.12)
|
28
|
+
hashie (3.4.1)
|
29
|
+
jwt (1.4.1)
|
30
|
+
mini_portile (0.6.2)
|
31
|
+
multi_json (1.11.0)
|
32
|
+
multi_xml (0.5.5)
|
33
|
+
multipart-post (2.0.0)
|
34
|
+
nokogiri (1.6.6.2)
|
35
|
+
mini_portile (~> 0.6.0)
|
36
|
+
oauth2 (1.0.0)
|
37
|
+
faraday (>= 0.8, < 0.10)
|
38
|
+
jwt (~> 1.0)
|
39
|
+
multi_json (~> 1.3)
|
40
|
+
multi_xml (~> 0.5)
|
41
|
+
rack (~> 1.2)
|
42
|
+
rack (1.6.0)
|
43
|
+
rake (10.4.2)
|
44
|
+
thread_safe (0.3.5)
|
45
|
+
|
46
|
+
PLATFORMS
|
47
|
+
ruby
|
48
|
+
|
49
|
+
DEPENDENCIES
|
50
|
+
bumper_pusher!
|
51
|
+
bundler (~> 1.7)
|
52
|
+
rake (~> 10.0)
|
data/README.md
CHANGED
@@ -47,7 +47,7 @@ This gem make bumping and pushing your ruby gems easy and fast!
|
|
47
47
|
- **Very easy to use**: just print `bumper_pusher` in your repo folder.
|
48
48
|
- Support version storage directly in `gemspec` file and in `version.rb`
|
49
49
|
- Check that you're bumping from `master`. (otherwise print warning with confirmation)
|
50
|
-
- Check that your `git status`
|
50
|
+
- Check that your `git status` is clean
|
51
51
|
- Ability to build test gem easily `bumper_pusher -b`
|
52
52
|
- Ability to generate changelog for new version by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)
|
53
53
|
- Support both `gemspec` and `podspec` files
|
data/Rakefile
CHANGED
data/lib/bumper_pusher/bumper.rb
CHANGED
@@ -41,13 +41,13 @@ module BumperPusher
|
|
41
41
|
# supposed, that with git flow you should release from develop branch
|
42
42
|
if current_branch != 'develop' && !is_branch_hotfix?
|
43
43
|
puts "Warning: You're in branch (#{current_branch})!".yellow
|
44
|
-
|
44
|
+
ask_sure_y
|
45
45
|
end
|
46
46
|
else
|
47
47
|
# supposed, that w/o git flow you should release from master or release branch
|
48
48
|
if current_branch != 'master' || !/release/.match(current_branch)[0].nil?
|
49
49
|
puts "Warning: You're in branch (#{current_branch})!".yellow
|
50
|
-
|
50
|
+
ask_sure_y
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
@@ -61,8 +61,8 @@ module BumperPusher
|
|
61
61
|
|
62
62
|
def find_spec_file
|
63
63
|
|
64
|
-
pod_arr = execute_line("find . -name '*.#{POD_SPEC_TYPE}'").split("\n")
|
65
|
-
gem_arr = execute_line("find . -name '*.#{GEM_SPEC_TYPE}'").split("\n")
|
64
|
+
pod_arr = execute_line("find . -name '*.#{POD_SPEC_TYPE}' -maxdepth 1").split("\n")
|
65
|
+
gem_arr = execute_line("find . -name '*.#{GEM_SPEC_TYPE}' -maxdepth 1").split("\n")
|
66
66
|
if gem_arr.any? && pod_arr.any?
|
67
67
|
puts 'Warning: both podspec and gemspec found!'.yellow
|
68
68
|
end
|
@@ -113,7 +113,7 @@ module BumperPusher
|
|
113
113
|
end
|
114
114
|
|
115
115
|
def find_current_gem_file
|
116
|
-
list_of_specs = execute_line("find . -name '*.gem'")
|
116
|
+
list_of_specs = execute_line("find . -name '*.gem' -maxdepth 1")
|
117
117
|
arr = list_of_specs.split("\n")
|
118
118
|
|
119
119
|
spec_file = ''
|
@@ -186,13 +186,13 @@ module BumperPusher
|
|
186
186
|
puts "Bump version: #{versions_array.join('.')} -> #{bumped_version}"
|
187
187
|
|
188
188
|
unless @options[:dry_run] || @options[:beta]
|
189
|
-
|
189
|
+
ask_sure_y
|
190
190
|
end
|
191
191
|
|
192
192
|
bumped_version
|
193
193
|
end
|
194
194
|
|
195
|
-
def
|
195
|
+
def ask_sure_y
|
196
196
|
unless @options[:dry_run]
|
197
197
|
puts 'Are you sure? Press Y to continue:'
|
198
198
|
str = gets.chomp
|
@@ -210,6 +210,8 @@ module BumperPusher
|
|
210
210
|
output
|
211
211
|
end
|
212
212
|
|
213
|
+
# @param [Object] line
|
214
|
+
# @param [Object] check_exit
|
213
215
|
def execute_line_if_not_dry_run(line, check_exit = true)
|
214
216
|
if @options[:dry_run]
|
215
217
|
puts "Dry run: #{line}"
|
@@ -279,6 +281,7 @@ module BumperPusher
|
|
279
281
|
end
|
280
282
|
current_branch = get_current_branch
|
281
283
|
execute_line_if_not_dry_run("git checkout master && git pull && git checkout #{current_branch}")
|
284
|
+
execute_line_if_not_dry_run('git push --all')
|
282
285
|
end
|
283
286
|
|
284
287
|
version_file = find_version_file
|
@@ -316,6 +319,7 @@ module BumperPusher
|
|
316
319
|
end
|
317
320
|
execute_line_if_not_dry_run('git checkout master')
|
318
321
|
end
|
322
|
+
execute_line_if_not_dry_run('git push --all')
|
319
323
|
execute_line_if_not_dry_run("git tag #{bumped_version}")
|
320
324
|
end
|
321
325
|
|
@@ -397,11 +401,12 @@ module BumperPusher
|
|
397
401
|
|
398
402
|
def find_version_file
|
399
403
|
version_file = nil
|
400
|
-
arr = `find . -name 'version.rb'`.split("\n")
|
404
|
+
arr = `find . -name 'version.rb' -maxdepth 4`.split("\n")
|
401
405
|
case arr.count
|
402
406
|
when 0
|
403
|
-
puts "version.rb file found
|
407
|
+
puts "version.rb file not found"
|
404
408
|
when 1
|
409
|
+
puts "version.rb file found (#{arr[0]}) -> bump this file"
|
405
410
|
version_file = arr[0]
|
406
411
|
else
|
407
412
|
puts 'More than 1 version.rb file found. -> skip'
|
@@ -426,7 +431,7 @@ module BumperPusher
|
|
426
431
|
end
|
427
432
|
|
428
433
|
def is_git_flow_installed
|
429
|
-
system(
|
434
|
+
system('git flow version') ? true : false
|
430
435
|
end
|
431
436
|
|
432
437
|
def is_branch_hotfix?
|
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.
|
4
|
+
version: 0.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Petr Korolev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -84,6 +84,7 @@ files:
|
|
84
84
|
- ".travis.yml"
|
85
85
|
- CHANGELOG.md
|
86
86
|
- Gemfile
|
87
|
+
- Gemfile.lock
|
87
88
|
- LICENSE.txt
|
88
89
|
- README.md
|
89
90
|
- Rakefile
|
@@ -118,3 +119,4 @@ signing_key:
|
|
118
119
|
specification_version: 4
|
119
120
|
summary: Easiest way to bump your specs
|
120
121
|
test_files: []
|
122
|
+
has_rdoc:
|