vmlib 1.1.0 → 1.1.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 +4 -4
- data/Version +1 -1
- data/bin/vmlib +8 -7
- data/lib/vmlib/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: 774ce8b8287850801ee4defba3896b5046003981
|
|
4
|
+
data.tar.gz: 8aac63b581513f0ddcc2f31514c76da5e41cf717
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7427ce8ce3d896a88998270c4488999f87c2ec70dd86c1e57d7c2ba05fad752bd9a12b0aca0c4d0c06ff003d9b09eb2b59a86fa8b7edc9dd31ab9fb5616064bf
|
|
7
|
+
data.tar.gz: ca0f8aff8c141bad2f2ee8c4469d04c827430ee83fef57f9d4b96b5e95f965fb28bbc562fc46bd9af912d481a24731c7cd3ffd30807c88943433656fc346171c
|
data/Version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
vmlib 1.1.
|
|
1
|
+
vmlib 1.1.1
|
data/bin/vmlib
CHANGED
|
@@ -12,6 +12,7 @@ module VMLib
|
|
|
12
12
|
# Command line interface to VMLib gem
|
|
13
13
|
###########################################################################
|
|
14
14
|
begin
|
|
15
|
+
an = $0.sub(/^.*\//, '')
|
|
15
16
|
command = ARGV.shift || 'format'
|
|
16
17
|
|
|
17
18
|
case command
|
|
@@ -143,11 +144,11 @@ module VMLib
|
|
|
143
144
|
|
|
144
145
|
#if fstr.nil?
|
|
145
146
|
puts <<EOM
|
|
146
|
-
#{
|
|
147
|
+
#{an} is a utility to help manage project versions in accordance with
|
|
147
148
|
the Semantic Versioning specifications v2.0.0. The specifications can
|
|
148
149
|
be found at http://semver.org
|
|
149
150
|
|
|
150
|
-
Usage: #{
|
|
151
|
+
Usage: #{an} <command> [arguments]
|
|
151
152
|
|
|
152
153
|
Supported commands are:
|
|
153
154
|
init Initialize the project. Requires the name of
|
|
@@ -165,8 +166,8 @@ Supported commands are:
|
|
|
165
166
|
|
|
166
167
|
set Sets the pre[release] string or the build
|
|
167
168
|
metadata string. Usage is as follows:
|
|
168
|
-
#{
|
|
169
|
-
#{
|
|
169
|
+
#{an} set pre[release] <string>
|
|
170
|
+
#{an} set build <string>
|
|
170
171
|
The string is required, however, if you want
|
|
171
172
|
to specify an empty string, you need to
|
|
172
173
|
explicitly quote it.
|
|
@@ -200,15 +201,15 @@ EOM
|
|
|
200
201
|
# Handler for errors on the command line
|
|
201
202
|
###########################################################################
|
|
202
203
|
rescue CommandError => e
|
|
203
|
-
puts "#{
|
|
204
|
-
puts "Type #{
|
|
204
|
+
puts "#{an}: #{e.message}"
|
|
205
|
+
puts "Type #{an} help for more info"
|
|
205
206
|
exit 1
|
|
206
207
|
|
|
207
208
|
###########################################################################
|
|
208
209
|
# Handler for errors from the VMLib source
|
|
209
210
|
###########################################################################
|
|
210
211
|
rescue Errors::VMLibError => e
|
|
211
|
-
puts "#{
|
|
212
|
+
puts "#{an}: #{e.message}"
|
|
212
213
|
exit 1
|
|
213
214
|
end
|
|
214
215
|
|
data/lib/vmlib/version.rb
CHANGED