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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4cf48d99992b590a7bbebaba3b49f9ee8b36827edf038c381cffc30162541c37
4
- data.tar.gz: 8903887fa8597e04bd554d52c380ad290e812df2c607d9998a40c54a53105612
3
+ metadata.gz: 209db093178899b03ddd878d0664822e632390f46f6c74a8d7a638c76a8adb93
4
+ data.tar.gz: d95f15d594582c9f1df00195ce808cfffc56f68d4a03618185b0f06e50ea6d15
5
5
  SHA512:
6
- metadata.gz: f173ecee5b35c6222e441fcea659fe4dc4a078f9f7c5bf3c9dbceffb180abebec8e39fbd637d155bc0517aee97787917d45a9567e07828b7b81bbc6697676b5b
7
- data.tar.gz: 05743eb8d8681e53a22c095a92e19bb718ff70349c6818cb823bc457be9d3b775a46d9f362e64cc62e5cc26c0335fc109a28752d91b981e0d95f85ceae96ef63
6
+ metadata.gz: 2ea1a5425b2b5fdb91bbf683751fab34ec0901b60392a9b314221c065c2225477406db65670421d3e48bfd81424d4b0e7f61f2aa9e840b6da433c929df66bcf7
7
+ data.tar.gz: 1ccad3d0d67c097199408356330bec6841fe6d8eb1490d3539a0b1616c1c545f51ca4ed6fbbc8001f9224b45d084af1697580adfdcabe7db40869f0b62f01620
@@ -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 = "#{podspec}-#{version}"
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}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tworingtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew McKnight