tworingtools 4.5.1 → 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/changetag +1 -1
- data/bin/prerelease-podspec +7 -3
- data/bin/release-podspec +8 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2fe979b414cfe169507152fd96770716705407581cbf9ce214f9b47f57a41a5
|
4
|
+
data.tar.gz: 6ec6e1aa51a0148dbf9874cbee97ed919f63aa8401e632408256fd05d5f4c933
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cae7573fa1f433369a3b913934f63f0f4fdfdfc984ec1ea40b016851417c829abf63e1fc2241e7e1e07f3794dc5097a16c6c44b020df2a8d757a634cd583163
|
7
|
+
data.tar.gz: 4fff891e96685968e0f7dfcd46c09c7fe2b362362ae5f5d52719553d9a93e3e84691c95b83a55d996ff08bb322d53de09205808fb1e6acd1b58739ee2bfeb43d
|
data/bin/changetag
CHANGED
data/bin/prerelease-podspec
CHANGED
@@ -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]
|
85
|
+
if options[:allow_warnings] then
|
85
86
|
spec_lint_flags << '--allow-warnings'
|
86
87
|
end
|
87
|
-
if options[:verbose]
|
88
|
+
if options[:verbose] then
|
88
89
|
spec_lint_flags << '--verbose'
|
89
90
|
end
|
90
|
-
if options[:skip_tests]
|
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}"
|
data/bin/release-podspec
CHANGED
@@ -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('
|
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]
|
67
|
+
if options[:allow_warnings] then
|
67
68
|
spec_lint_flags << '--allow-warnings'
|
68
69
|
end
|
69
|
-
if options[:verbose]
|
70
|
+
if options[:verbose] then
|
70
71
|
spec_lint_flags << '--verbose'
|
71
72
|
end
|
72
|
-
if options[:skip_tests]
|
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
|