tworingtools 1.7.0 → 1.8.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 +8 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cf48d99992b590a7bbebaba3b49f9ee8b36827edf038c381cffc30162541c37
|
4
|
+
data.tar.gz: 8903887fa8597e04bd554d52c380ad290e812df2c607d9998a40c54a53105612
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f173ecee5b35c6222e441fcea659fe4dc4a078f9f7c5bf3c9dbceffb180abebec8e39fbd637d155bc0517aee97787917d45a9567e07828b7b81bbc6697676b5b
|
7
|
+
data.tar.gz: 05743eb8d8681e53a22c095a92e19bb718ff70349c6818cb823bc457be9d3b775a46d9f362e64cc62e5cc26c0335fc109a28752d91b981e0d95f85ceae96ef63
|
data/bin/release-podspec
CHANGED
@@ -19,6 +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
23
|
opts.on('-v', '--verbose', 'Pass \'--verbose\' to \'cocoapods spec lint\'.') do |name| options[:verbose] = true end
|
23
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
|
24
25
|
opts.on('-h', '--help', 'Print this help message.') do
|
@@ -30,7 +31,13 @@ parser.parse!
|
|
30
31
|
|
31
32
|
version_file = "#{podspec}.podspec"
|
32
33
|
version = `vrsn --read --file #{version_file}`
|
33
|
-
|
34
|
+
tag = String.new
|
35
|
+
if options[:podspec_name_in_tag] then
|
36
|
+
tag = "#{podspec}-#{version.strip}"
|
37
|
+
else
|
38
|
+
tag = version.strip
|
39
|
+
end
|
40
|
+
tag_command = "git tag #{tag}"
|
34
41
|
puts tag_command
|
35
42
|
stdout, stderr, status = Open3.capture3 tag_command
|
36
43
|
if status != 0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tworingtools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew McKnight
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github_api
|