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.
- checksums.yaml +4 -4
- data/GEM_VERSION +1 -1
- data/lib/step-up/cli.rb +4 -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: 8ca2f8b88fbfed7bdd1367e83e531dfa1d86bc40
|
4
|
+
data.tar.gz: 7f23435068b4f832995c99188776e4fffd73d879
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f741e40b8d66ea3feb09d79a632cdf909721424b6ea6c1a37871f3808d7048feaaeb56374a524b9324fc74fbf4371119710b9951a551ce65a87b3b2844d8c2d
|
7
|
+
data.tar.gz: 6a394ee970e538a75404adfd7a9e944b976cf1e54692293015f10d9e62cccf02a170218681b204bfcb96ea619278989c1659b222635ecce4a7017f547aea7b27
|
data/GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
v0.9.
|
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
|