tworingtools 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/prerelease-podspec +7 -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: c8bc4d66ed425f70865ff455a17d5f0cc03af48003f7e994d7cad3d7a4708a4b
|
4
|
+
data.tar.gz: 2f030b6eb9d7fc50105fb91af19ca1d6abf226e896d035665497f2b497e223bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55a216baf1583ebab6759bc0a425079841f1f5ad92fa50301623f7997b2a2ef537e3cca6e956f77e5aacaf2809168f4b0e342c3c28478d6f6a5c253a0ffad5cc
|
7
|
+
data.tar.gz: 468218eb24849365f2482d50fdafe29eafdafcd7fc45e004f5e2a92719b834e8ec2ea2087bbf5b1a753cbec311914f7aebadcef94d0d43d7b47e9a15ac968ae6
|
data/bin/prerelease-podspec
CHANGED
@@ -29,6 +29,7 @@ parser = OptionParser.new do |opts|
|
|
29
29
|
opts.on('-n', '--no-branch', 'Make any changes on the current branch instead of creating a temporary new branch.') do |no_branch| options[:no_branch] = true end
|
30
30
|
opts.on('-cCHANGELOG', '--changelog=CHANGELOG', 'Location of a CHANGELOG document adhering to https://keepachangelog.com/en/1.0.0/ whose version entry should be extracted into an annotated tag for this release candidate.') do |changelog| options[:changelog] = changelog end
|
31
31
|
opts.on('-tTAG', '--tag=TAG', 'Override for the name of the git tag to form. If set, --podspec-name-in-tag is ignored.') do |tag| options[:tag] = tag end
|
32
|
+
opts.on('-rRC', '--release-candidate=RC', 'Override for the release candidate number, which is otherwise formulated by counting the previous amount of tags with the same version number and incrementing by one.') do |rc| options[:rc] = rc end
|
32
33
|
opts.on('-h', '--help', 'Print this help message.') do
|
33
34
|
puts opts
|
34
35
|
exit
|
@@ -45,7 +46,12 @@ unless options[:no_branch] then
|
|
45
46
|
end
|
46
47
|
|
47
48
|
version_root = "#{current_version}-RC"
|
48
|
-
release_candidate_number =
|
49
|
+
release_candidate_number = String.new
|
50
|
+
if options[:rc] then
|
51
|
+
release_candidate_number = options[:rc]
|
52
|
+
else
|
53
|
+
release_candidate_number = `git tag --list | grep #{version_root} | wc -l`.strip.to_i + 1
|
54
|
+
end
|
49
55
|
release_candidate_version = "#{version_root}#{release_candidate_number}"
|
50
56
|
|
51
57
|
tag_value = String.new
|