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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Version +1 -1
  3. data/bin/vmlib +8 -7
  4. data/lib/vmlib/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1234c2c56688c3796a8099567295462c049abea
4
- data.tar.gz: e3fe4d2e0dfff686ecd8d461afff583b2dab1641
3
+ metadata.gz: 774ce8b8287850801ee4defba3896b5046003981
4
+ data.tar.gz: 8aac63b581513f0ddcc2f31514c76da5e41cf717
5
5
  SHA512:
6
- metadata.gz: 92e567aed02872b0000f97049a4dae7f10b94d8556eab8ee9ebd47c88661a42199351da72677b936c172e25c8cf747efd1f3cc4712c2f86cd5998066e674037a
7
- data.tar.gz: 7296242755d93a2cd46f69fa092a8883d548e86258384b7fea0d21b3cdc2162e5f38868ecda3d178ae57260eec2d2b1f4228b6baeb15bd045fabecca7b080bf9
6
+ metadata.gz: 7427ce8ce3d896a88998270c4488999f87c2ec70dd86c1e57d7c2ba05fad752bd9a12b0aca0c4d0c06ff003d9b09eb2b59a86fa8b7edc9dd31ab9fb5616064bf
7
+ data.tar.gz: ca0f8aff8c141bad2f2ee8c4469d04c827430ee83fef57f9d4b96b5e95f965fb28bbc562fc46bd9af912d481a24731c7cd3ffd30807c88943433656fc346171c
data/Version CHANGED
@@ -1 +1 @@
1
- vmlib 1.1.0
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
- #{$0} is a utility to help manage project versions in accordance with
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: #{$0} <command> [arguments]
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
- #{$0} set pre[release] <string>
169
- #{$0} set build <string>
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 "#{$0}: #{e.message}"
204
- puts "Type #{$0} help for more info"
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 "#{$0}: #{e.message}"
212
+ puts "#{an}: #{e.message}"
212
213
  exit 1
213
214
  end
214
215
 
data/lib/vmlib/version.rb CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  module VMLib
9
9
 
10
- VERSION = "1.1.0" #:nodoc:
10
+ VERSION = "1.1.1" #:nodoc:
11
11
 
12
12
  # This function is used by the gemspec file to generate a
13
13
  # gem version number that corresponds to %M.%m.%p format
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nirenjan Krishnan