tworingtools 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/prerelease-podspec +12 -9
- data/bin/release-podspec +1 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 381a332e8ac5cf305379f16beb80f7342c857424d4b2552000197ef2a44a188d
|
4
|
+
data.tar.gz: 4b8cefd3d20942b98dd868693cd3c636bddc91df918fdca46d3ce459d6cc341c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1812fd076ecd5b513d599f5b14a33d0c5679b3dd716de56d3262a6cdcf2d7844101d3cdad33e801b2a30cee9bac976bf5d472beb63b610975f06d95c9dad221
|
7
|
+
data.tar.gz: 9f8c6ed711a989d7003537fc4b08d81683c7a69c019856019255a54663699e156a31be023c19d6016ba734f3f96af1d94f7b0475bba4ab5a726696a9d8b4af98
|
data/bin/prerelease-podspec
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'open3'
|
4
4
|
require 'optparse'
|
5
|
+
require_relative '../lib/echoexec'
|
5
6
|
|
6
7
|
podspec = ARGV[0]
|
7
8
|
|
@@ -32,16 +33,16 @@ version_file = "#{podspec}.podspec"
|
|
32
33
|
|
33
34
|
current_version = `vrsn --read --file #{version_file}`.strip
|
34
35
|
branch = "#{podspec}-#{current_version}-release"
|
35
|
-
|
36
|
+
echo_and_exec "git checkout -b #{branch}"
|
36
37
|
|
37
38
|
tag_root = "#{podspec}-#{current_version}-RC"
|
38
39
|
release_candidate_number = `git tag --list | grep #{tag_root} | wc -l`.strip.to_i + 1
|
39
40
|
release_candidate_tag = "#{tag_root}#{release_candidate_number}"
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
41
|
+
echo_and_exec "sed -i '' \"s/\\(\\.version *= *'\\).*'/\\1\"#{current_version}-RC#{release_candidate_number}\"\\'/g\" #{version_file}"
|
42
|
+
echo_and_exec "git add #{version_file}"
|
43
|
+
echo_and_exec "git commit --message 'TEMP: set podspec version to release candidate version'"
|
44
|
+
echo_and_exec "git tag #{release_candidate_tag}"
|
45
|
+
echo_and_exec 'git push --tags'
|
45
46
|
|
46
47
|
puts "About to lint the podspec. This takes a while... (it is now #{Time.now})"
|
47
48
|
spec_lint_flags = Array.new
|
@@ -53,11 +54,13 @@ if options[:verbose] != nil then
|
|
53
54
|
end
|
54
55
|
stdout, stderr, status = Open3.capture3 "rbenv exec bundle exec pod spec lint #{podspec}.podspec #{spec_lint_flags.join ' '}"
|
55
56
|
|
56
|
-
|
57
|
-
|
57
|
+
puts "stdout: #{stdout}"
|
58
|
+
|
59
|
+
echo_and_exec 'git checkout master'
|
60
|
+
echo_and_exec "git branch -D #{branch}"
|
58
61
|
|
59
62
|
if status != 0 then
|
60
|
-
puts "Podspec failed validation:\
|
63
|
+
puts "Podspec failed validation:\nstderr: #{stderr}"
|
61
64
|
exit PODSPEC_FAILED_VALIDATION
|
62
65
|
else
|
63
66
|
puts "Podspec passed validation!"
|
data/bin/release-podspec
CHANGED
@@ -50,11 +50,4 @@ else
|
|
50
50
|
command = "rbenv exec bundle exec pod trunk push #{podspec}.podspec #{spec_lint_flags.join ' '}"
|
51
51
|
end
|
52
52
|
|
53
|
-
|
54
|
-
stdout, stderr, status = Open3.capture3 command
|
55
|
-
|
56
|
-
unless status == 0 then
|
57
|
-
fail stderr
|
58
|
-
else
|
59
|
-
puts 'Successfully pushed spec!'
|
60
|
-
end
|
53
|
+
echo_and_exec command
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tworingtools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew McKnight
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github_api
|