podspecpush 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b01b18270358735f8328808221b22d32a2b4eee8
4
- data.tar.gz: eaf525a969c2be61ad6f5c324365c38100152cb4
3
+ metadata.gz: da3b6230866470c6561bc16b460e6eb7496e8cbc
4
+ data.tar.gz: 14b8c2880969fa0b61367ef169925477865e787e
5
5
  SHA512:
6
- metadata.gz: 16d4b7ff81aab31d637276fc57758f61b25130b5ceb3171985537a240a51698f6565232dac0fa1ba4bb0f65b725254703070f5bec0f90b905a82448d5472290e
7
- data.tar.gz: 394a99996926cef1caf011abd59a4c264325fd1641bc63afcc93cd185d1861b1be940ec8d8fa861a3b06d6dd52097ea5dc00dcaef99e8a7587401b8c77ca909f
6
+ metadata.gz: 33ceed358aee2228eb8ed58c808ef68557f7fe290f68d46e733781666d8df86048e59275708113609374f6458b07954fa1907b860bcf1544d39fd34b3bbb43ea
7
+ data.tar.gz: 68b3f78ff15759fe76a668e530ca4a61527ce7c0a1829a2000f846ffbf647791f8ed3396f895301caadbd855f5f4d28989e89411c5641497c1b4d27add0abd30
data/lib/podspecpush.rb CHANGED
@@ -7,11 +7,13 @@ module Podspecpush
7
7
  opts = Trollop::options do
8
8
  opt :repo, "Repo name", :type => :string
9
9
  opt :force, "Pod verify & push with warnings"
10
+ opt :privateRepo, "If set, assume repo is private and skip public checks"
10
11
  end
11
12
  Trollop::die :repo, "Repo must be provided" if opts[:repo] == nil
12
13
 
13
14
  force = opts[:force]
14
15
  repoName = opts[:repo]
16
+ privateRepo = opts[:privateRepo]
15
17
 
16
18
  podspecName = `ls | grep .podspec`.strip
17
19
 
@@ -44,14 +46,14 @@ module Podspecpush
44
46
 
45
47
  File.open(podspecName, 'w') { |file| file.write(newFile) }
46
48
 
47
- lintCmd = "pod spec lint #{podspecName}" + (force == true ? ' --allow-warnings' : '')
49
+ lintCmd = "pod spec lint #{podspecName}" + (force == true ? ' --allow-warnings' : '') + (privateRepo == true ? ' --private' : '')
48
50
  lint = system(lintCmd)
49
51
 
50
52
  if lint == false
51
53
  puts "Linting failed, try again by allowing warnings? [Y/n]"
52
54
  decision = gets.chomp.downcase
53
55
  if decision == "y"
54
- tryAgainCmd = "pod spec lint #{podspecName} --allow-warnings"
56
+ tryAgainCmd = "pod spec lint #{podspecName} --allow-warnings" + (privateRepo == true ? ' --private' : '')
55
57
  tryAgain = system(tryAgainCmd)
56
58
 
57
59
  if tryAgain == false
@@ -1,3 +1,3 @@
1
1
  module Podspecpush
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: podspecpush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Carroll
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-19 00:00:00.000000000 Z
11
+ date: 2017-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop