tworingtools 1.10.0 → 1.11.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 +6 -14
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1db507602ab841f2512355d2859672f72346f5af29c07f25fb75666c2ebe6f6
4
- data.tar.gz: b7661a9525fa1b2ec5a5ac226b7ce4ecd101bf81e292118a7569e910aa6d5305
3
+ metadata.gz: a354ee91656ac14cc04b335f792b693f28fe52c34280b45ca6688fefad86817c
4
+ data.tar.gz: ecea975ce9a07a97af369f0c502aed6838fcd207f83ba9249fd385fa94a1834c
5
5
  SHA512:
6
- metadata.gz: c46b0210f04557cf973ebdde133b1249123da58c1cf2ead75d9d4641dbdf202ca3328cd92eb022c5c1581cf1d1ea41068f43b619716200e9cc07845cad18905a
7
- data.tar.gz: df147135124b76e81fc680c4649ecd9b226bcb61623f7abf567bf1a848bc8ab1590a9027fe494600834bc933f14f32171a0cf851be8f39d8c1d78e87359eed2e
6
+ metadata.gz: 91ce5a4d6db4bb5d2222dced0e437a01fbff9a102510617eff7f870444f30917f4ad11e2e10929c8a401cae3381a9e00884620d031bb433fcb5909595da2e735
7
+ data.tar.gz: 4cf2584b4c9380840e7a1248907f6ebd40ac0dc084be59246e24b796230f9de1203473f5e08fa4ea984b929da41ca9e017659cc1954d17e4be8c96877fb7dbc8
data/bin/release-podspec CHANGED
@@ -22,6 +22,7 @@ parser = OptionParser.new do |opts|
22
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
+ opts.on('-cCHANGELOG_PATH', '--changelog-path=CHANGELOG_PATH', 'By default, release-podspec looks for //CHANGELOG.md. You can specify another location with this option.') do |changelog_path| options[:changelog_path] = changelog_path end
25
26
  opts.on('-h', '--help', 'Print this help message.') do
26
27
  puts opts
27
28
  exit
@@ -29,20 +30,11 @@ parser = OptionParser.new do |opts|
29
30
  end
30
31
  parser.parse!
31
32
 
32
- version_file = "#{podspec}.podspec"
33
- version = `vrsn --read --file #{version_file}`
34
- tag = String.new
35
- if options[:podspec_name_in_tag] then
36
- tag = "#{podspec}-#{version.strip}"
37
- else
38
- tag = version.strip
33
+ changelog_path = 'CHANGELOG.md'
34
+ if options[:changelog_path] != nil then
35
+ changelog_path = options[:changelog_path]
39
36
  end
40
- tag_command = "git tag #{tag}"
41
- puts tag_command
42
- stdout, stderr, status = Open3.capture3 tag_command
43
- if status != 0
44
- fail 'Tag already exists.'
45
- end
37
+ echo_and_exec "rbenv exec bundle exec changetag #{changelog_path} `vrsn --read --file tworingtools.gemspec`"
46
38
  echo_and_exec 'git push --tags'
47
39
 
48
40
  spec_lint_flags = Array.new
@@ -58,7 +50,7 @@ end
58
50
 
59
51
  command = String.new
60
52
  if options[:repo] != nil then
61
- command = "rbenv exec bundle exec pod repo push #{options[:repo]} #{podspec}.podspec #{spec_lint_flags.join ' '}"
53
+ command = "rbenv exec bundle exec pod repo push #{options[:repo]} # #{spec_lint_flags.join ' '}"
62
54
  else
63
55
  command = "rbenv exec bundle exec pod trunk push #{podspec}.podspec #{spec_lint_flags.join ' '}"
64
56
  end
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.10.0
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew McKnight