xcodebuilder 0.1.5 → 0.1.6
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/xcode_builder.rb +12 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 429a1bec9d2c370b7308954090e8241d45230b4a
|
4
|
+
data.tar.gz: 83d1b3b2b8752bed01610e089178fd6d51134928
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc22f2eb525399118da258b6c1b60ea787df5a073836511995f470cae0b4df607ac12b873995e3a666c4dda34f55188d2f4a38d0ad655b1be67def2df1c554ce
|
7
|
+
data.tar.gz: 7a870497e18348b1a95c5557c00c55dea239a7a38b50d86d25a5ac18f5fb37d63b666e5f2ff026b0e3955eb43aa28ef26f60f4c0e2baeb459ddff84933e0d158
|
data/lib/xcode_builder.rb
CHANGED
@@ -28,6 +28,7 @@ module XcodeBuilder
|
|
28
28
|
:xcodebuild_extra_args => nil,
|
29
29
|
:xcrun_extra_args => nil,
|
30
30
|
:timestamp_build => nil,
|
31
|
+
:pod_repo_sources => nil
|
31
32
|
)
|
32
33
|
@namespace = namespace
|
33
34
|
yield @configuration if block_given?
|
@@ -47,6 +48,15 @@ module XcodeBuilder
|
|
47
48
|
cmd = cmd.join(" ")
|
48
49
|
system(cmd)
|
49
50
|
end
|
51
|
+
|
52
|
+
def resolved_repos
|
53
|
+
master_repo = ["https://github.com/CocoaPods/Specs.git"]
|
54
|
+
if @configuration.pod_repo_sources == nil then
|
55
|
+
return master_repo
|
56
|
+
end
|
57
|
+
|
58
|
+
return master_repo + Array(@configuration.pod_repo_sources)
|
59
|
+
end
|
50
60
|
|
51
61
|
# desc "Clean the Build"
|
52
62
|
def clean
|
@@ -150,7 +160,8 @@ module XcodeBuilder
|
|
150
160
|
# runs a pod dry run before tagging
|
151
161
|
def pod_dry_run
|
152
162
|
print "Pod dry run..."
|
153
|
-
|
163
|
+
repos = resolved_repos.join ","
|
164
|
+
result = system "pod lib lint #{@configuration.podspec_file} --allow-warnings --sources=#{repos}"
|
154
165
|
raise "** Pod dry run failed **" if !result
|
155
166
|
puts "Done"
|
156
167
|
end
|