tworingtools 1.10.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/release-podspec +6 -14
- 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: a354ee91656ac14cc04b335f792b693f28fe52c34280b45ca6688fefad86817c
|
4
|
+
data.tar.gz: ecea975ce9a07a97af369f0c502aed6838fcd207f83ba9249fd385fa94a1834c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
33
|
-
|
34
|
-
|
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
|
-
|
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]} #
|
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
|