podspecpush 0.3.0 → 0.4.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 +4 -4
- data/lib/podspecpush/version.rb +1 -1
- data/lib/podspecpush.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b20d74ec8bf7ddadb76f07072286895a8441d44
|
4
|
+
data.tar.gz: b9f86df68e5d4aab8b86ae8fd4a7c3b9bd5795a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef3369cd43994a300880ccf87a15c49eb0675413c3a6f46dc890df2213924923e2e6c0c24813f2f1d8b873ca5bf56cd261a08e726cbbf0358b4d4af22e9e0243
|
7
|
+
data.tar.gz: 943496a551621a41406894d41136ef65735537795da3f7acad9ebc6f0fd5100d42cdd1c82ebb952ec59d53bca7cde7fc7847bc4a74371abe352193af367a7929
|
data/lib/podspecpush/version.rb
CHANGED
data/lib/podspecpush.rb
CHANGED
@@ -6,6 +6,7 @@ module Podspecpush
|
|
6
6
|
def push
|
7
7
|
opts = Trollop::options do
|
8
8
|
opt :repo, "Repo name", :type => :string
|
9
|
+
opt :sources, "List of private repo sources to consider when linting private repo", :type => :string
|
9
10
|
opt :force, "Pod verify & push with warnings"
|
10
11
|
opt :privateRepo, "If set, assume repo is private and skip public checks"
|
11
12
|
end
|
@@ -14,6 +15,7 @@ module Podspecpush
|
|
14
15
|
force = opts[:force]
|
15
16
|
repoName = opts[:repo]
|
16
17
|
privateRepo = opts[:privateRepo]
|
18
|
+
sources = opts[:sources]
|
17
19
|
|
18
20
|
podspecName = `ls | grep .podspec`.strip
|
19
21
|
|
@@ -46,14 +48,14 @@ module Podspecpush
|
|
46
48
|
|
47
49
|
File.open(podspecName, 'w') { |file| file.write(newFile) }
|
48
50
|
|
49
|
-
lintCmd = "pod spec lint #{podspecName}" + (force == true ? ' --allow-warnings' : '') + (privateRepo == true ? ' --private' : '')
|
51
|
+
lintCmd = "pod spec lint #{podspecName}" + (force == true ? ' --allow-warnings' : '') + (privateRepo == true ? ' --private' : '') + (sources == nil ? '' : " --sources=#{sources}")
|
50
52
|
lint = system(lintCmd)
|
51
53
|
|
52
54
|
if lint == false
|
53
55
|
puts "Linting failed, try again by allowing warnings? [Y/n]"
|
54
56
|
decision = gets.chomp.downcase
|
55
57
|
if decision == "y"
|
56
|
-
tryAgainCmd = "pod spec lint #{podspecName} --allow-warnings" + (privateRepo == true ? ' --private' : '')
|
58
|
+
tryAgainCmd = "pod spec lint #{podspecName} --allow-warnings" + (privateRepo == true ? ' --private' : '') + (sources == nil ? '' : " --sources=#{sources}")
|
57
59
|
tryAgain = system(tryAgainCmd)
|
58
60
|
|
59
61
|
if tryAgain == false
|
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.
|
4
|
+
version: 0.4.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-
|
11
|
+
date: 2017-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trollop
|