tworingtools 4.3.2 → 4.4.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: 4fe07ff31edb8f170c5d7786f26b83b43ae6a22a778a8b3ee28e912c54638776
4
- data.tar.gz: 5ce642e594775ac2447db3d9241e1cb31577b8b6c9e53f70a23fa3417da5fe01
3
+ metadata.gz: d8cca4cac70ac31b6e166b67e143ce3c7b6911d4daed2c48f5577a2311ed21cd
4
+ data.tar.gz: '077892190b742f8f6190d6c0bfbd67993b6fff67b3248f7e9febafe7e69d3bb0'
5
5
  SHA512:
6
- metadata.gz: 944ec25caf172ae3559df4a7d5c630f0b9a7eb5e3905ec67507d5f934cc40bb25200145bdf2e03c9983d8daa596d74cf0ac70fe5c9762d09cd241ccf847d647f
7
- data.tar.gz: 20758e0eed9eb593bbf2defc56f81c341060c10dee376706fe041f7000e7f973af6627c6a3a77ae07cca8df90c3903da2accbc964b00fb3c221dc6288432a486
6
+ metadata.gz: 7151e33115005c1dc1811e96a4c429be5cdef1db25431f2f595cb4f2b1ab2e0e6805ec925447659f41efefedb941f3edebe63172d75d8d832587c7029b2b4999
7
+ data.tar.gz: '04469831bb66a2f448182ff03328574155dfc99babe0bb29dcc03aa77db63ce7be0a6ffc6109f0ee495f140571cabdb62234e45fdeb6610f8a95427da5798bb9'
@@ -27,8 +27,9 @@ parser = OptionParser.new do |opts|
27
27
  opts.on('-s', '--skip-tests', 'Pass \'--skip-tests\' to \'cocoapods spec lint\'.') do |skip_tests| options[:skip_tests] = true end
28
28
  opts.on('-p', '--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
29
29
  opts.on('-n', '--no-branch', 'Make any changes on the current branch instead of creating a temporary new branch.') do |no_branch| options[:no_branch] = true end
30
- opts.on('-cCHANGELOG', '--changelog=CHANGELOG', 'Location of a CHANGELOG document adhering to https://keepachangelog.com/en/1.0.0/ whose version entry should be extracted into an annotated tag for this release candidate.') do |changelog| options[:changelog] = changelog end
30
+ opts.on('-cCHANGELOG', '--changelog=CHANGELOG', 'Location of a CHANGELOG document adhering to https://keepachangelog.com/en/1.0.0/ whose version entry should be extracted into an annotated tag for this release candidate. Ignored if --no-tag is specified.') do |changelog| options[:changelog] = changelog end
31
31
  opts.on('-tTAG', '--tag=TAG', 'Override for the name of the git tag to form. If set, --podspec-name-in-tag is ignored.') do |tag| options[:tag] = tag end
32
+ opts.on('-t', '--no-tag', 'Don\'t create a git tag to push. Usually used if this will be invoked again for another spec that will create and use the same tag.') do |no_tag| options[:no_tag] = true end
32
33
  opts.on('-rRC', '--release-candidate=RC', 'Override for the release candidate number, which is otherwise formulated by counting the previous amount of tags with the same version number and incrementing by one.') do |rc| options[:rc] = rc end
33
34
  opts.on('-h', '--help', 'Print this help message.') do
34
35
  puts opts
@@ -67,14 +68,16 @@ echo_and_exec "sed -i '' \"s/\\(\\.version *= *'\\).*'/\\1\"#{release_candidate_
67
68
  echo_and_exec "git add #{version_file}"
68
69
  echo_and_exec "git commit --message 'chore(#{podspec}): set to release candidate version'"
69
70
 
70
- if options[:changelog] then
71
- echo_and_exec 'git config core.commentchar @'
72
- echo_and_exec "rbenv exec bundle exec changetag --name #{current_version} #{options[:changelog]} #{tag_value}"
73
- echo_and_exec 'git config core.commentchar #'
74
- else
75
- echo_and_exec "git tag #{tag_value}"
71
+ unless options[:no_tag] then
72
+ if options[:changelog] then
73
+ echo_and_exec 'git config core.commentchar @'
74
+ echo_and_exec "rbenv exec bundle exec changetag --name #{current_version} #{options[:changelog]} #{tag_value}"
75
+ echo_and_exec 'git config core.commentchar #'
76
+ else
77
+ echo_and_exec "git tag #{tag_value}"
78
+ end
79
+ echo_and_exec 'git push --tags'
76
80
  end
77
- echo_and_exec 'git push --tags'
78
81
 
79
82
  puts "About to lint the podspec. This takes a while... (it is now #{Time.now})"
80
83
  spec_lint_flags = Array.new
@@ -26,7 +26,7 @@ parser = OptionParser.new do |opts|
26
26
  opts.on('-n', '--no-changelog', 'Skip operations that would normally update a CHANGELOG.md.') do |skip_changelog| options[:skip_changelog] = true end
27
27
  opts.on('-v', '--verbose', 'Pass \'--verbose\' to \'cocoapods spec lint\'.') do |name| options[:verbose] = true end
28
28
  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
29
- 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
29
+ opts.on('-cCHANGELOG_PATH', '--changelog-path=CHANGELOG_PATH', 'Location of a CHANGELOG document adhering to https://keepachangelog.com/en/1.0.0/ whose version entry should be extracted into an annotated tag for this release candidate. 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
30
30
  opts.on('-tTAG', '--tag=TAG', 'Override for the name of the git tag to form. If set, --podspec-name-in-tag is ignored.') do |tag| options[:tag] = tag end
31
31
  opts.on('--e', '--changelog-entry=CHANGELOG_ENTRY', 'The name of the changelog entry, if it differs from the tag name.') do |changelog_entry_name_override| options[:changelog_entry_name_override] = changelog_entry_name_override end
32
32
  opts.on('-h', '--help', 'Print this help message.') do
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: 4.3.2
4
+ version: 4.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew McKnight