tworingtools 4.4.0 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8cca4cac70ac31b6e166b67e143ce3c7b6911d4daed2c48f5577a2311ed21cd
4
- data.tar.gz: '077892190b742f8f6190d6c0bfbd67993b6fff67b3248f7e9febafe7e69d3bb0'
3
+ metadata.gz: f2fe979b414cfe169507152fd96770716705407581cbf9ce214f9b47f57a41a5
4
+ data.tar.gz: 6ec6e1aa51a0148dbf9874cbee97ed919f63aa8401e632408256fd05d5f4c933
5
5
  SHA512:
6
- metadata.gz: 7151e33115005c1dc1811e96a4c429be5cdef1db25431f2f595cb4f2b1ab2e0e6805ec925447659f41efefedb941f3edebe63172d75d8d832587c7029b2b4999
7
- data.tar.gz: '04469831bb66a2f448182ff03328574155dfc99babe0bb29dcc03aa77db63ce7be0a6ffc6109f0ee495f140571cabdb62234e45fdeb6610f8a95427da5798bb9'
6
+ metadata.gz: 7cae7573fa1f433369a3b913934f63f0f4fdfdfc984ec1ea40b016851417c829abf63e1fc2241e7e1e07f3794dc5097a16c6c44b020df2a8d757a634cd583163
7
+ data.tar.gz: 4fff891e96685968e0f7dfcd46c09c7fe2b362362ae5f5d52719553d9a93e3e84691c95b83a55d996ff08bb322d53de09205808fb1e6acd1b58739ee2bfeb43d
data/bin/bumpr CHANGED
@@ -18,6 +18,7 @@ parser = OptionParser.new do |opts|
18
18
 
19
19
  BANNER
20
20
  opts.on('-n', '--no-commit', 'Leave changes in the git working index instead of committing them.') do |no_commit| options[:no_commit] = true end
21
+ opts.on('-cCUSTOM', '--custom=CUSTOM', 'Custom version to use for semantic component (or build number for "build" component).') do |custom| options[:custom] = custom end
21
22
  opts.on('-h', '--help', 'Print this help message.') do
22
23
  puts opts
23
24
  exit
@@ -43,7 +44,11 @@ if argument == nil then
43
44
  exit TwoRingToolError::INVALID_SEMVER_COMPONENT
44
45
  end
45
46
 
46
- command = "vrsn #{argument} --file #{version_file}"
47
+ invocation_options = Array.new
48
+ unless options[:custom] == nil then
49
+ invocation_options += ['--custom', options[:custom]]
50
+ end
51
+ command = "vrsn #{argument} --file #{version_file} #{invocation_options.join(' ')}"
47
52
  puts command
48
53
  stdout, stderr, status = Open3.capture3(command)
49
54
 
@@ -37,7 +37,7 @@ parser = OptionParser.new do |opts|
37
37
  end
38
38
  parser.parse!
39
39
 
40
- git_check unless options[:no_commit]
40
+ git_check
41
41
 
42
42
  # set valid git message comment character
43
43
 
@@ -31,6 +31,7 @@ parser = OptionParser.new do |opts|
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
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
33
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
34
+ opts.on('-q', '--quick', 'Perform quick podspec lint only.') do |quick| options[:quick] = true end
34
35
  opts.on('-h', '--help', 'Print this help message.') do
35
36
  puts opts
36
37
  exit
@@ -81,15 +82,18 @@ end
81
82
 
82
83
  puts "About to lint the podspec. This takes a while... (it is now #{Time.now})"
83
84
  spec_lint_flags = Array.new
84
- if options[:allow_warnings] != nil then
85
+ if options[:allow_warnings] then
85
86
  spec_lint_flags << '--allow-warnings'
86
87
  end
87
- if options[:verbose] != nil then
88
+ if options[:verbose] then
88
89
  spec_lint_flags << '--verbose'
89
90
  end
90
- if options[:skip_tests] != nil then
91
+ if options[:skip_tests] then
91
92
  spec_lint_flags << '--skip-tests'
92
93
  end
94
+ if options[:quick] then
95
+ spec_lint_flags << '--quick'
96
+ end
93
97
  stdout, stderr, status = Open3.capture3 "rbenv exec bundle exec pod spec lint #{version_file} #{spec_lint_flags.join ' '}"
94
98
 
95
99
  puts "stdout: #{stdout}"
@@ -28,7 +28,8 @@ parser = OptionParser.new do |opts|
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
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
- 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
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
+ opts.on('-i', '--skip-import-validation', 'Skip building/testing importability of podspec as part of pushing it to source.') do |skip_import_validation| options[:skip_import_validation] = true end
32
33
  opts.on('-h', '--help', 'Print this help message.') do
33
34
  puts opts
34
35
  exit
@@ -63,15 +64,18 @@ end
63
64
  echo_and_exec 'git push --tags'
64
65
 
65
66
  spec_lint_flags = Array.new
66
- if options[:allow_warnings] != nil then
67
+ if options[:allow_warnings] then
67
68
  spec_lint_flags << '--allow-warnings'
68
69
  end
69
- if options[:verbose] != nil then
70
+ if options[:verbose] then
70
71
  spec_lint_flags << '--verbose'
71
72
  end
72
- if options[:skip_tests] != nil then
73
+ if options[:skip_tests] then
73
74
  spec_lint_flags << '--skip-tests'
74
75
  end
76
+ if options[:skip_import_validation] then
77
+ spec_lint_flags << '--skip-import-validation'
78
+ end
75
79
 
76
80
  command = String.new
77
81
  if options[:repo] != nil then
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.4.0
4
+ version: 4.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew McKnight