tworingtools 4.4.1 → 4.7.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: 385ea4238321cf778b1412ed2a9e6eaa5550be15b7c5aeaad86e2f6aaef1a9ab
4
- data.tar.gz: 03bbbb6a58db914009a96ea709624480aee3c1c6c9f71d0c8caf30e57e0ab1b6
3
+ metadata.gz: ab98c6a76083beb69e5321318a516f318c978c52fae24bf2cb1a7c4ff0f0da56
4
+ data.tar.gz: 3e4b33808f476411d426dcc5c01f5cb43769384128f7631b295e0713eccb6626
5
5
  SHA512:
6
- metadata.gz: bf1fc845bb26f6873fb3046a73d91bee3c9c0936a23fe15875672245d476efb2f6ce384b3eb1e21a5179afe4b377bfeb9711532ec994f55fb7886398ca4a6ee6
7
- data.tar.gz: 633394bd194098ef47e88b7cca40a708fa3a30828dc19f29c9fc988aebc480c72cc9a997d8e28bcc5446533d1b66aa92fcb8b67f4f112dad19ff46e7e49ddb6d
6
+ metadata.gz: c88c9a7ff566bdef41e3201b0871466a760fff3f9faf48c1133fda4a136ba1758bb87cbfa0a955380b4e9c90bc3b8fad2a5c95570c774146436fce7d5885bdcb
7
+ data.tar.gz: ccec1349aa05d908361c0d35d64b1546748f3d089529a191348c8424facd1e25180adf826bbabfa86d959a377e907e126d692d8c5a0a17dfdd37fceaad4985c8
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
 
@@ -13,7 +13,8 @@ parser = OptionParser.new do |opts|
13
13
  Move any contents in Unreleased under a new heading for the specified version with current date.
14
14
 
15
15
  BANNER
16
- opts.on('-h', '--help', 'Print this help message.') do
16
+ opts.on('-n', '--no-commit', 'Leave changes in the git working index instead of committing them.') do |no_commit| options[:no_commit] = true end
17
+ opts.on('-h', '--help', 'Print this help message.') do
17
18
  puts opts
18
19
  exit
19
20
  end
@@ -39,5 +40,7 @@ File.open(changelog_path, 'w+') do |writable_changelog|
39
40
  writable_changelog << changelog_contents.join('')
40
41
  end
41
42
 
42
- `git add #{changelog_path}`
43
- `git commit --message "chore(changelog): moved Unreleased entries to #{version}"`
43
+ unless options[:no_commit] then
44
+ `git add #{changelog_path}`
45
+ `git commit --message "chore(changelog): moved Unreleased entries to #{version}"`
46
+ end
@@ -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
@@ -64,7 +65,7 @@ else
64
65
  tag_value = "#{release_candidate_version}"
65
66
  end
66
67
 
67
- echo_and_exec "sed -i '' \"s/\\(\\.version *= *'\\).*'/\\1\"#{tag_value}\"\\'/g\" #{version_file}"
68
+ echo_and_exec "sed -i '' \"s/\\(\\.version *= *'\\).*'/\\1\"#{release_candidate_version}\"\\'/g\" #{version_file}"
68
69
  echo_and_exec "git add #{version_file}"
69
70
  echo_and_exec "git commit --message 'chore(#{podspec}): set to release candidate version'"
70
71
 
@@ -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.1
4
+ version: 4.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew McKnight