step-up 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/GEM_VERSION +1 -1
  3. data/lib/step-up/cli.rb +4 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18b66f3cb606e91efdfa44298f2c67e501706faa
4
- data.tar.gz: cdb0092f51b4175246f5a566cb0a588645daf266
3
+ metadata.gz: 8ca2f8b88fbfed7bdd1367e83e531dfa1d86bc40
4
+ data.tar.gz: 7f23435068b4f832995c99188776e4fffd73d879
5
5
  SHA512:
6
- metadata.gz: 9b9910e9585e16041d9b1111a723a1609a0cc0c60eb6062f85b4c7bf3e27b2f480c9f2ccccde470b95b0e33574808d1daeeedeec504c09ff285eb8cacb7a7ff7
7
- data.tar.gz: fc6144a4e0d7e77a9c37de1ab8809360035082673a2445151210ca524a972e50c1ca8c7adc6268fb8abfbba9721d1e814cd14ebf29ab353ddec4d8f78ecf0e0a
6
+ metadata.gz: 5f741e40b8d66ea3feb09d79a632cdf909721424b6ea6c1a37871f3808d7048feaaeb56374a524b9324fc74fbf4371119710b9951a551ce65a87b3b2844d8c2d
7
+ data.tar.gz: 6a394ee970e538a75404adfd7a9e944b976cf1e54692293015f10d9e62cccf02a170218681b204bfcb96ea619278989c1659b222635ecce4a7017f547aea7b27
data/GEM_VERSION CHANGED
@@ -1 +1 @@
1
- v0.9.4
1
+ v0.9.5
data/lib/step-up/cli.rb CHANGED
@@ -254,7 +254,7 @@ module StepUp
254
254
  end
255
255
 
256
256
  def version_show
257
- formats = %w[default mvn mvn-snapshot]
257
+ formats = %w[default mvn mvn-snapshot rpm]
258
258
  if options[:levels]
259
259
  puts "Current version levels:"
260
260
  version_levels.each do |level|
@@ -299,6 +299,9 @@ module StepUp
299
299
  elsif format == "mvn"
300
300
  version = version.gsub(/(\d+)\+(\d*)$/){ |c| "#{$1}.rc#{$2}" }
301
301
  end
302
+ elsif format == "rpm"
303
+ version = version.gsub(/^\D+/, '')
304
+ version = version.gsub(/(\d+)(?:\+(\d*))?$/){ |c| "#{$1}-#{$2.to_i}" }
302
305
  end
303
306
  puts version
304
307
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: step-up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Manzan