tworingtools 4.4.2 → 4.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/bumpr +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c53b0fa06130b5f11b2e688a6857abe68f1f28b49c2752899f34e052693f764c
|
4
|
+
data.tar.gz: dd9f84545c8e68e375379e203b357aedb0cdb7b50f6126057dd921804ecb4702
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fbf9378305e000180ff7238c4b4b44d757d9e75f137e27e96a5148c70e63d5e230f4c95934b74a071bc46285817478d364f21b52f91c531156a5fee42202b5b
|
7
|
+
data.tar.gz: 9e30706e07c4f0321a97d752fd302f07e2f2e6531e1b01c9ab9f117b2075eb52eba82cb9d0df04c6b8d1f135e50b7c3c9fb4690d609ec3acf0aafef1735df090
|
data/bin/bumpr
CHANGED
@@ -18,6 +18,7 @@ parser = OptionParser.new do |opts|
|
|
18
18
|
|
19
19
|
BANNER
|
20
20
|
opts.on('-n', '--no-commit', 'Leave changes in the git working index instead of committing them.') do |no_commit| options[:no_commit] = true end
|
21
|
+
opts.on('-c', '--custom', 'Custom version to use for semantic component (or build number for "build" component).') do |custom| options[:custom] = custom end
|
21
22
|
opts.on('-h', '--help', 'Print this help message.') do
|
22
23
|
puts opts
|
23
24
|
exit
|
@@ -43,7 +44,11 @@ if argument == nil then
|
|
43
44
|
exit TwoRingToolError::INVALID_SEMVER_COMPONENT
|
44
45
|
end
|
45
46
|
|
46
|
-
|
47
|
+
invocation_options = Array.new
|
48
|
+
unless options[:custom] == nil then
|
49
|
+
invocation_options += ['--custom', options[:custom]]
|
50
|
+
end
|
51
|
+
command = "vrsn #{argument} --file #{version_file} #{invocation_options.join(' ')}"
|
47
52
|
puts command
|
48
53
|
stdout, stderr, status = Open3.capture3(command)
|
49
54
|
|