vmlib 1.0.0 → 1.0.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 +55 -1
  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: 59fe12924831b9a814d93ead77137e7ec9ef03ce
4
- data.tar.gz: 89c6f9f26768d373ef1fb8381653e3e92c3b6dc2
3
+ metadata.gz: 2ee5054308d7ff971afe60377aff456feb410ccc
4
+ data.tar.gz: 6abf38e737a186e617337a812ce0b7795fa13af5
5
5
  SHA512:
6
- metadata.gz: a09e8f0656391ed990283f1cc884a203ea9d4b48ef69adc2fc300e902b4a4e5b6a19d3e23a54476b1fcde7e9cb692d814f8a6cb246892c061c24cf10dc3ffc90
7
- data.tar.gz: 2e1f5938fd9cae969f29a62be0b7e36492059318549dcff805e66c9e0ce8c2101b28fa9b1983ab6540229fde0d6616fecebe3a6e6c138d292f45d5dd8edcd06d
6
+ metadata.gz: f323ee88c8b9679e2503338a936e244fca2db1602e001decf1503a2442b1bda784e40cacc22d225ef6e0595bcd991c7edac0a7c65ea4b6a5598b30768b2193a9
7
+ data.tar.gz: 093c81e62e7b55d9e98085957d166eca86dc90654be7cfb8478caefd6634dc86a9648a5fd5723b5e2e731136e9d34a928906ec3c4d4380ac6ba344123e951d94
data/Version CHANGED
@@ -1 +1 @@
1
- vmlib 1.0.0
1
+ vmlib 1.0.1
data/bin/vmlib CHANGED
@@ -120,7 +120,6 @@ module VMLib
120
120
 
121
121
  #########################################################################
122
122
  # Generates a tag version and creates a new Git tag
123
- # For now, it simply prints out the tag string
124
123
  #########################################################################
125
124
  when 'tag'
126
125
  version = File.new.read
@@ -128,6 +127,61 @@ module VMLib
128
127
 
129
128
  system "git tag -a -m '#{version.to_s}' #{version.tag}"
130
129
 
130
+ #########################################################################
131
+ # Prints the help string
132
+ #########################################################################
133
+ when 'help'
134
+ hstr = ARGV.shift
135
+
136
+ #if fstr.nil?
137
+ puts <<EOM
138
+ #{$0} is a utility to help manage project versions in accordance with
139
+ the Semantic Versioning specifications v2.0.0-rc.1. The specifications
140
+ can be found at http://semver.org
141
+
142
+ Usage: #{$0} <command> [arguments]
143
+
144
+ Supported commands are:
145
+ init Initialize the project. Requires the name of
146
+ initialize the project. This will create a Version file
147
+ in the current folder and initialize it to
148
+ "<name> 0.0.0-0" where <name> is the specified
149
+ project name.
150
+
151
+ bump Bumps the specified version field by 1.
152
+ Requires one of the following fields: major,
153
+ minor, patch, pre, type.
154
+ Bumping the type will bump the prerelease
155
+ type to the next type, i.e., development ->
156
+ alpha -> beta -> release candidate -> final
157
+
158
+ set Sets the pre[release] string or the build
159
+ metadata string. Usage is as follows:
160
+ #{$0} set pre[release] <string>
161
+ #{$0} set build <string>
162
+ The string is required, however, if you want
163
+ to specify an empty string, you need to
164
+ explicitly quote it.
165
+
166
+ update Updates source files with the (new) version
167
+ information and also writes the changes to
168
+ the git repository.
169
+
170
+ format Formats the version information as a string.
171
+ You can specify an optional format string
172
+ using the format specifiers %n, %M, %m, %p,
173
+ %r and %b. Alternatively, if you specify the
174
+ format string 'tag', it will generate the tag
175
+ string. If you do not specify a format string
176
+ it will use the default of %n%M.%m.%p%r%b
177
+
178
+ tag Creates an annotated Git tag at the current
179
+ repository HEAD with the version information.
180
+
181
+ EOM
182
+ #end
183
+
184
+
131
185
  else
132
186
  raise CommandError, "invalid command #{command}"
133
187
  end
data/lib/vmlib/version.rb CHANGED
@@ -7,6 +7,6 @@
7
7
 
8
8
  module VMLib
9
9
 
10
- VERSION = "1.0.0" #:nodoc:
10
+ VERSION = "1.0.1" #:nodoc:
11
11
 
12
12
  end
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.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nirenjan Krishnan