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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 24a5ad9d70519459e9a419e38aac65e60216c5a9
4
- data.tar.gz: e6e3af2a6f6b3220be1823025a56c8e337e3796e
3
+ metadata.gz: fc7fc09eab106321ca1b52cc1500b2d108cf38dc
4
+ data.tar.gz: 62a64013e198ab097c8d40a1f00d4b9aca495116
5
5
  SHA512:
6
- metadata.gz: 0ad03ddcf95b9d97ea1d941f2b5482fb3a961daebfd87295b4653ef5dfa719c21013adfde11b1e4b50bbd9120ad2536df6cb1e386913f565eec35a3d8e72467c
7
- data.tar.gz: 5b37da514e05a141bae4c09a32d54accec6633f49e62bf47390413034e982f2c6c073caacd24cb52f1450376b21c26f28e71c77b91b8679768ea19d8367be994
6
+ metadata.gz: 529f725cfecf105095a16ba8d624c5e257637dc88d7e13d5f55239b9f70f1f10c966483db7f5048ac9c693420a8f989b84204bdb67f1e2138761328962c0ced0
7
+ data.tar.gz: cb568f521ee91577b8ee81d8ec7a9cb6aa26a8e1b97fbd2f7510949bb5c85bba8f8101c9a1c633b0915bf6c4bd237184ff58b74d2ac6bd36cbb7ab089b3004fe
data/.bmp.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- version: 1.0.0
2
+ version: 1.1.0
3
3
  files:
4
4
  README.md: Bmp v%.%.%
5
5
  lib/bump/version.rb: VERSION = "%.%.%"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bmp (1.0.0)
4
+ bmp (1.1.0)
5
5
  slop (~> 4.2.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Bmp v1.0.0
1
+ # Bmp v1.1.0
2
2
 
3
3
  [![Gem Version](https://img.shields.io/gem/v/bmp.svg)](http://badge.fury.io/rb/bmp)
4
4
  [![Build Status](https://img.shields.io/travis/kt3k/bmp.svg)](https://travis-ci.org/kt3k/bmp)
@@ -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.string '-s', '--preid', 'set pre release version id (e.g. alpha, beta.1)'
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
@@ -1,4 +1,4 @@
1
1
  module Bump
2
2
  # The version
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
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: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshiya Hinosawa