tworingtools 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/release-podspec +1 -1
- data/bin/revert-failed-release-tag +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: 209db093178899b03ddd878d0664822e632390f46f6c74a8d7a638c76a8adb93
|
4
|
+
data.tar.gz: d95f15d594582c9f1df00195ce808cfffc56f68d4a03618185b0f06e50ea6d15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ea1a5425b2b5fdb91bbf683751fab34ec0901b60392a9b314221c065c2225477406db65670421d3e48bfd81424d4b0e7f61f2aa9e840b6da433c929df66bcf7
|
7
|
+
data.tar.gz: 1ccad3d0d67c097199408356330bec6841fe6d8eb1490d3539a0b1616c1c545f51ca4ed6fbbc8001f9224b45d084af1697580adfdcabe7db40869f0b62f01620
|
data/bin/release-podspec
CHANGED
@@ -19,7 +19,7 @@ parser = OptionParser.new do |opts|
|
|
19
19
|
BANNER
|
20
20
|
opts.on('-w', '--allow-warnings', 'Pass \'--allow-warnings\' to \'cocoapods spec lint\'.') do |force| options[:allow_warnings] = true end
|
21
21
|
opts.on('-s', '--skip-tests', 'Pass \'--skip-tests\' to \'cocoapods spec lint\'.') do |skip_tests| options[:skip_tests] = true end
|
22
|
-
opts.on('-n', '--podspec-name-in-tag', 'When forming the tag name for a release candidate, prefix the podspec‘s name to the version string. Helps when you have multiple podspecs in a repository and tag versions for each.') do |podspec_name_in_tag| options[:podspec_name_in_tag] = true end
|
22
|
+
opts.on('-n', '--podspec-name-in-tag', 'When forming the tag name for a release candidate, prefix the podspec‘s name to the version string. Helps when you have multiple podspecs in a repository and tag versions for each.') do |podspec_name_in_tag| options[:podspec_name_in_tag] = true end
|
23
23
|
opts.on('-v', '--verbose', 'Pass \'--verbose\' to \'cocoapods spec lint\'.') do |name| options[:verbose] = true end
|
24
24
|
opts.on('-rREPO', '--repo=REPO', 'By default, release-podspec pushes the podspec to CocoaPods trunk. By supplying this argument, instead of \`pod trunk push\`, \`pod repo push\` is used instead.') do |repo| options[:repo] = repo end
|
25
25
|
opts.on('-h', '--help', 'Print this help message.') do
|
@@ -16,6 +16,7 @@ parser = OptionParser.new do |opts|
|
|
16
16
|
Options:
|
17
17
|
|
18
18
|
BANNER
|
19
|
+
opts.on('-n', '--podspec-name-in-tag', 'When forming the tag name for a release candidate, prefix the podspec‘s name to the version string. Helps when you have multiple podspecs in a repository and tag versions for each.') do |podspec_name_in_tag| options[:podspec_name_in_tag] = true end
|
19
20
|
opts.on('-h', '--help', 'Print this help message.') do
|
20
21
|
puts opts
|
21
22
|
exit
|
@@ -25,6 +26,11 @@ parser.parse!
|
|
25
26
|
|
26
27
|
version_file = "#{podspec}.podspec"
|
27
28
|
version = `vrsn --read --file #{version_file}`.strip
|
28
|
-
tag =
|
29
|
+
tag = String.new
|
30
|
+
if options[:podspec_name_in_tag] then
|
31
|
+
tag = "#{podspec}-#{version}"
|
32
|
+
else
|
33
|
+
tag = version
|
34
|
+
end
|
29
35
|
echo_and_exec "git tag --delete #{tag}"
|
30
36
|
echo_and_exec "git push --delete origin #{tag}"
|