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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6af08c45396b88d1934326b852314dbb5f82b14e2d4fab645ce20b748b73814e
4
- data.tar.gz: 65ba5360b292fbbe41a239b7543613639ae653aafcc137bda30d6e3db1310e3c
3
+ metadata.gz: 381a332e8ac5cf305379f16beb80f7342c857424d4b2552000197ef2a44a188d
4
+ data.tar.gz: 4b8cefd3d20942b98dd868693cd3c636bddc91df918fdca46d3ce459d6cc341c
5
5
  SHA512:
6
- metadata.gz: dd068730c8e522849dd7946cf4824b1645cd98c6ef831133e12f4ed5bd121c7dc2ca193e8b1b5fe35d2c7a8533eda71c7aaadf642af31a3704828ea458f8fbdf
7
- data.tar.gz: 43637a632b09abbc10d249625875d72f5b787f75d0c0fa24d3c34cd6a95f96462b3558cdffa0067eb9204183a2bf7b37106724bdd2b1ddaef02aa59f031c9dae
6
+ metadata.gz: b1812fd076ecd5b513d599f5b14a33d0c5679b3dd716de56d3262a6cdcf2d7844101d3cdad33e801b2a30cee9bac976bf5d472beb63b610975f06d95c9dad221
7
+ data.tar.gz: 9f8c6ed711a989d7003537fc4b08d81683c7a69c019856019255a54663699e156a31be023c19d6016ba734f3f96af1d94f7b0475bba4ab5a726696a9d8b4af98
@@ -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
- echoexec "git checkout -b #{branch}"
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
- echoexec "sed -i '' \"s/\\(\\.version *= *'\\).*'/\\1\"#{current_version}-RC#{release_candidate_number}\"\\'/g\" #{version_file}"
41
- echoexec "git add #{version_file}"
42
- echoexec "git commit --message 'TEMP: set podspec version to release candidate version'"
43
- echoexec "git tag #{release_candidate_tag}"
44
- echoexec 'git push --tags'
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
- echoexec 'git checkout master'
57
- echoexec "git branch -D #{branch}"
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:\nstdout: #{stdout}\nstderr: #{stderr}"
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
- puts command
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.0
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-04 00:00:00.000000000 Z
11
+ date: 2019-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github_api