bmp 1.0.0 → 1.1.0
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/.bmp.yml +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/bump/application.rb +7 -1
- data/lib/bump/cli.rb +3 -2
- data/lib/bump/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: fc7fc09eab106321ca1b52cc1500b2d108cf38dc
|
|
4
|
+
data.tar.gz: 62a64013e198ab097c8d40a1f00d4b9aca495116
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 529f725cfecf105095a16ba8d624c5e257637dc88d7e13d5f55239b9f70f1f10c966483db7f5048ac9c693420a8f989b84204bdb67f1e2138761328962c0ced0
|
|
7
|
+
data.tar.gz: cb568f521ee91577b8ee81d8ec7a9cb6aa26a8e1b97fbd2f7510949bb5c85bba8f8101c9a1c633b0915bf6c4bd237184ff58b74d2ac6bd36cbb7ab089b3004fe
|
data/.bmp.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/bump/application.rb
CHANGED
|
@@ -36,7 +36,7 @@ module Bump
|
|
|
36
36
|
return :info
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
if @options[:major] || @options[:minor] || @options[:patch] || @options[:commit] || @options[:preid]
|
|
39
|
+
if @options[:major] || @options[:minor] || @options[:patch] || @options[:commit] || @options[:preid] || @options[:release]
|
|
40
40
|
return :bump
|
|
41
41
|
end
|
|
42
42
|
|
|
@@ -184,6 +184,12 @@ module Bump
|
|
|
184
184
|
log_green " #{bumpInfo.beforeVersion} => #{bumpInfo.afterVersion}"
|
|
185
185
|
end
|
|
186
186
|
|
|
187
|
+
if @options[:release]
|
|
188
|
+
bumpInfo.setPreid nil
|
|
189
|
+
log "Remove pre-release version id"
|
|
190
|
+
log_green " #{bumpInfo.beforeVersion} => #{bumpInfo.afterVersion}"
|
|
191
|
+
end
|
|
192
|
+
|
|
187
193
|
log
|
|
188
194
|
|
|
189
195
|
checkBumpInfo bumpInfo
|
data/lib/bump/cli.rb
CHANGED
|
@@ -28,8 +28,9 @@ module Bump
|
|
|
28
28
|
o.bool '-j', '--major', 'bump major (1.0.0) level'
|
|
29
29
|
o.bool '-c', '--commit', 'commit bump changes (git required)'
|
|
30
30
|
o.bool '-h', '--help', 'show this help and exit'
|
|
31
|
-
o.bool '-v', '--version', 'show version and exit'
|
|
32
|
-
o.
|
|
31
|
+
o.bool '-v', '--version', 'show the version of this command and exit'
|
|
32
|
+
o.bool '-r', '--release', 'remove the pre-release version id'
|
|
33
|
+
o.string '-s', '--preid', 'set the pre-release version id (e.g. alpha, beta.1)'
|
|
33
34
|
end
|
|
34
35
|
|
|
35
36
|
app = Application.new opts.to_hash, opts.to_s, "#{CLI_NAME} v#{Bump::VERSION}", VERSION_FILE, Logger.new
|
data/lib/bump/version.rb
CHANGED