cocoapods-deploy 0.0.9 → 0.0.10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dbe86929ae196680a65923c36ec60d1eafa2dc7
|
4
|
+
data.tar.gz: 7c52897b500ead9cffbd28113fae2dd22d41ba6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82ff9ce48004050e8e9a86390f2b0eafceb975b7a3a65197e539efc6e4eee647a2678c8473624622382f3488942e629d2209baee7cc080c4c53aa412dad379bf
|
7
|
+
data.tar.gz: e204335bddf89e65f528643b7bfaaf217d815dd6102de9f69b4e0bf7cef94ef8406abeae7dd480f76756ae91e68a114b5b740fd182310e31b7a80c5ba333de6a
|
data/cocoapods-deploy.gemspec
CHANGED
@@ -2,7 +2,7 @@ module Pod
|
|
2
2
|
class Command
|
3
3
|
class Deploy < Command
|
4
4
|
|
5
|
-
include
|
5
|
+
include ProjectDirectory
|
6
6
|
|
7
7
|
self.summary = 'Install project dependencies to Podfile.lock versions without pulling down full podspec repo.'
|
8
8
|
|
@@ -18,14 +18,6 @@ module Pod
|
|
18
18
|
# Disable Cocoapods Stats - Due to
|
19
19
|
# https://github.com/CocoaPods/cocoapods-stats/issues/28
|
20
20
|
ENV['COCOAPODS_DISABLE_STATS'] = "1"
|
21
|
-
|
22
|
-
# Disable updating of the CocoaPods Repo since we are directly
|
23
|
-
# deploying using Podspecs
|
24
|
-
config.skip_repo_update = true
|
25
|
-
|
26
|
-
# Disable cleaning of the source file since we are deploying
|
27
|
-
# and we don't need to keep things clean.
|
28
|
-
config.clean = false
|
29
21
|
end
|
30
22
|
|
31
23
|
# Verify the environment is ready for deployment
|
@@ -85,6 +77,28 @@ module Pod
|
|
85
77
|
end
|
86
78
|
end
|
87
79
|
end
|
80
|
+
|
81
|
+
# Applies patch to external sources to add a no_validate option which
|
82
|
+
# can be used to disable validation of downloaded podspecs. A normal install
|
83
|
+
# doesn't validate the podspecs of non-external pods even though certain
|
84
|
+
# podspecs are not entirely valid (for example an invalid license file type).
|
85
|
+
# This would mean the normal install command can install certain pods that deploy
|
86
|
+
# doesn't because of the validation. This patch makes sure validation doesn't
|
87
|
+
# happen when deploy is being used.
|
88
|
+
#
|
89
|
+
# TODO: BDD
|
90
|
+
def apply_external_sources_patch
|
91
|
+
ExternalSources::AbstractExternalSource.class_eval do
|
92
|
+
attr_accessor :no_validate
|
93
|
+
|
94
|
+
old_validate_podspec = instance_method(:validate_podspec)
|
95
|
+
|
96
|
+
def validate_podspec(podspec)
|
97
|
+
return if no_validate
|
98
|
+
old_validate_podspec(podspec)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
88
102
|
|
89
103
|
# Installs required sources for lockfile - TODO: Simplify code
|
90
104
|
def install_sources_for_lockfile
|
@@ -105,6 +119,15 @@ module Pod
|
|
105
119
|
# Triggers the CocoaPods install process
|
106
120
|
def install(podfile)
|
107
121
|
installer = DeployInstaller.new(config.sandbox, podfile, nil)
|
122
|
+
|
123
|
+
# Disable updating of the CocoaPods Repo since we are directly
|
124
|
+
# deploying using Podspecs
|
125
|
+
installer.repo_update = false
|
126
|
+
|
127
|
+
# Disable cleaning of the source file since we are deploying
|
128
|
+
# and we don't need to keep things clean.
|
129
|
+
installer.installation_options.clean = false
|
130
|
+
|
108
131
|
installer.install!
|
109
132
|
end
|
110
133
|
|
@@ -114,6 +137,7 @@ module Pod
|
|
114
137
|
|
115
138
|
# TODO: BDD Patch
|
116
139
|
apply_resolver_patch
|
140
|
+
apply_external_sources_patch
|
117
141
|
|
118
142
|
install_sources_for_lockfile
|
119
143
|
install(transform_podfile)
|
@@ -23,7 +23,8 @@ module Pod
|
|
23
23
|
def download_podspec(config)
|
24
24
|
dependencies_for_sources(config).each do |dep|
|
25
25
|
source = ExternalSources.from_dependency(dep, config.podfile.defined_in_file)
|
26
|
-
|
26
|
+
source.no_validate = true
|
27
|
+
|
27
28
|
begin
|
28
29
|
return source.fetch(config.sandbox)
|
29
30
|
rescue Exception
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Campbell
|
@@ -89,3 +89,4 @@ summary: Implement's bundler's --deployment functionality in CocoaPods.
|
|
89
89
|
test_files:
|
90
90
|
- spec/command/deploy_spec.rb
|
91
91
|
- spec/spec_helper.rb
|
92
|
+
has_rdoc:
|