tworingtools 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/release-podspec +8 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f148163f729f26925e2bf9f8e1af2df7481069fa0a465e78e46a88bef71cce5e
4
- data.tar.gz: b7035c0068f523eefb50fd8de3ca529aefa5655193f5d6f547e169efa7e22196
3
+ metadata.gz: 4cf48d99992b590a7bbebaba3b49f9ee8b36827edf038c381cffc30162541c37
4
+ data.tar.gz: 8903887fa8597e04bd554d52c380ad290e812df2c607d9998a40c54a53105612
5
5
  SHA512:
6
- metadata.gz: 7fd004a9c0c81b2bd858647f806f6f978e47670283aed074a1fc15280dfcd904e28bafe0f7c60b809453990737fd35287760d1d75d154f827d35fa6e4135ebfc
7
- data.tar.gz: 61bb02fbcde991cc829af25754495131a9541b569c5218edaf46a32c446f30f28b6dd21f685a953e87dfdb3e30e1b619e15e4e0c343c88a47446c8471efe0e83
6
+ metadata.gz: f173ecee5b35c6222e441fcea659fe4dc4a078f9f7c5bf3c9dbceffb180abebec8e39fbd637d155bc0517aee97787917d45a9567e07828b7b81bbc6697676b5b
7
+ data.tar.gz: 05743eb8d8681e53a22c095a92e19bb718ff70349c6818cb823bc457be9d3b775a46d9f362e64cc62e5cc26c0335fc109a28752d91b981e0d95f85ceae96ef63
@@ -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
- tag_command = "git tag #{podspec}-#{version.strip}"
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.7.0
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-04 00:00:00.000000000 Z
11
+ date: 2019-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github_api