bmp 0.7.0 → 0.7.1
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 +8 -8
- data/.bmp.yml +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/bump/application.rb +14 -4
- data/lib/bump/version.rb +1 -1
- metadata +1 -2
- data/.version +0 -5
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWFmNWMzMTI5NWIyNmFmMDExNWI1ODQzNGU3MWIzZmU4N2E4MjYxNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzRiOTZjOTQ5YmUzODNkYjE0NzZhNGM0YTFlYzE1OTA5NTcxMjg5OA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmVmZWNmODk2MDNlNGM4ZjAxMDEzZjI5NmY2Y2E4ZmNjNzVjMjU2NmVlOGI1
|
10
|
+
OWU0MTk3ZmYzMzU5ODA3ZjdiYzIwOGQ1NDA5OGQ1YjQ3YWQwZjc5OTRkMTE3
|
11
|
+
ZDFmMWE2OGJiMDI0NDk5ZDI3Y2I3NjQ0MzhlZjc4Y2Y5M2QyOGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWMyZWRiZmMxM2EzMTUzNmQ3ODc5ZGNmZDQ5YjlhZWNmNGIxZDE1MDQzYzEy
|
14
|
+
NTM4NDU3NzM3ZjBjMTNmZDhhYjY5MWUwOGY1MzEwZmE5ODZlYzhlYTk3OGZl
|
15
|
+
ZGZkZDgzYWRkNjc2N2RmNjEyNTU0ZjY3MzhiOGNkZTRiYWFiNTY=
|
data/.bmp.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/bump/application.rb
CHANGED
@@ -27,7 +27,7 @@ module Bump
|
|
27
27
|
return :info
|
28
28
|
end
|
29
29
|
|
30
|
-
if !@options[:major] && !@options[:minor] && !@options[:patch] && !@options[:
|
30
|
+
if !@options[:major] && !@options[:minor] && !@options[:patch] && !@options[:commit]
|
31
31
|
return :help
|
32
32
|
end
|
33
33
|
|
@@ -45,7 +45,12 @@ module Bump
|
|
45
45
|
def actionInfo
|
46
46
|
repo = VersionDescriptorRepository.new @file
|
47
47
|
|
48
|
-
|
48
|
+
begin
|
49
|
+
descriptor = repo.fromFile
|
50
|
+
rescue
|
51
|
+
puts "Error: #{@file} not found."
|
52
|
+
exit 1
|
53
|
+
end
|
49
54
|
|
50
55
|
@logger.log "Current Version:"
|
51
56
|
@logger.log descriptor.beforeVersion
|
@@ -66,7 +71,12 @@ module Bump
|
|
66
71
|
|
67
72
|
repo = VersionDescriptorRepository.new @file
|
68
73
|
|
69
|
-
|
74
|
+
begin
|
75
|
+
srv = repo.fromFile
|
76
|
+
rescue
|
77
|
+
puts "Error: #{@file} not found."
|
78
|
+
exit 1
|
79
|
+
end
|
70
80
|
|
71
81
|
if @options[:patch]
|
72
82
|
srv.patchBump
|
@@ -109,7 +119,7 @@ module Bump
|
|
109
119
|
|
110
120
|
comm = Command.new @logger
|
111
121
|
|
112
|
-
if @options[:
|
122
|
+
if @options[:commit]
|
113
123
|
comm.exec "git add ."
|
114
124
|
comm.exec "git commit -m 'Bump to version v#{srv.afterVersion}'"
|
115
125
|
comm.exec "git tag v#{srv.afterVersion}"
|
data/lib/bump/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bmp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshiya Hinosawa
|
@@ -63,7 +63,6 @@ files:
|
|
63
63
|
- .bmp.yml
|
64
64
|
- .gitignore
|
65
65
|
- .travis.yml
|
66
|
-
- .version
|
67
66
|
- Gemfile
|
68
67
|
- Gemfile.lock
|
69
68
|
- LICENSE.txt
|