cocoapods-deploy 0.0.5 → 0.0.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caac0af8af8f237b9b9beb5272ba6468a95f2c40
|
4
|
+
data.tar.gz: 726d38f4416117734b98f7d96fc652b0f4f925e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 349b5870d177943816a653891df7b81e2becf6f0554230eaa3a8b627eabdc51cb63f53f760fd6b93fc8115f9393918da78abed8337fdb0fd5e651bc070d3f113
|
7
|
+
data.tar.gz: 2ea2b5b8e7a29752e8d72b8407256c0d37053cf7e6f4f564b17bd5714fe37c4537654f47563e1474b842fecee5464325426e3dced79b55b19ffb3a1492d427cd
|
data/cocoapods-deploy.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: cocoapods-deploy 0.0.
|
2
|
+
# stub: cocoapods-deploy 0.0.6 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "cocoapods-deploy"
|
6
|
-
s.version = "0.0.
|
6
|
+
s.version = "0.0.6"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib"]
|
@@ -97,8 +97,9 @@ module Pod
|
|
97
97
|
def install_sources_for_pod(pod)
|
98
98
|
transformer = DeployTransformer.new(config.lockfile, config.sandbox)
|
99
99
|
dep = transformer.transform_dependency_name(pod)
|
100
|
-
|
101
|
-
|
100
|
+
|
101
|
+
downloader = DeployDownloader.new(dep)
|
102
|
+
downloader.download(config)
|
102
103
|
end
|
103
104
|
|
104
105
|
# Triggers the CocoaPods install process
|
@@ -111,6 +112,7 @@ module Pod
|
|
111
112
|
setup_environment
|
112
113
|
verify_environment
|
113
114
|
|
115
|
+
# TODO: BDD Patch
|
114
116
|
apply_resolver_patch
|
115
117
|
|
116
118
|
install_sources_for_lockfile
|
@@ -64,7 +64,7 @@ module Pod
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def podspec_url(pod, version)
|
67
|
-
"
|
67
|
+
"{root-url}/master/Specs/#{pod}/#{version}/#{pod}.podspec.json"
|
68
68
|
end
|
69
69
|
|
70
70
|
def collect_podspec_dependencies(name_or_hash)
|
data/lib/cocoapods_plugin.rb
CHANGED
data/spec/command/deploy_spec.rb
CHANGED
@@ -1,13 +1,5 @@
|
|
1
1
|
require File.expand_path('../../spec_helper', __FILE__)
|
2
2
|
|
3
|
-
class MockExternalSource
|
4
|
-
def initialize
|
5
|
-
end
|
6
|
-
|
7
|
-
def fetch
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
3
|
module Pod
|
12
4
|
describe Command::Deploy do
|
13
5
|
|
@@ -122,30 +114,17 @@ module Pod
|
|
122
114
|
@transformer.stubs(:transform_dependency_name).with("Google/Analytics").returns(@dependency)
|
123
115
|
DeployTransformer.stubs(:new).returns(@transformer)
|
124
116
|
|
125
|
-
@source = MockExternalSource.new
|
126
117
|
@command.stubs(:transform_podfile).returns(@podfile)
|
127
118
|
@command.stubs(:install)
|
128
119
|
end
|
129
120
|
|
130
|
-
it 'should
|
131
|
-
|
132
|
-
|
133
|
-
@command.run
|
134
|
-
end
|
121
|
+
it 'should download source' do
|
122
|
+
downloader = DeployDownloader.new(nil)
|
123
|
+
downloader.expects(:download)
|
135
124
|
|
136
|
-
|
137
|
-
ExternalSources.stubs(:from_dependency).returns(@source)
|
138
|
-
@source.expects(:fetch)
|
125
|
+
DeployDownloader.stubs(:new).returns(downloader)
|
139
126
|
@command.run
|
140
127
|
end
|
141
|
-
|
142
|
-
# TODO: Reducing duplicates
|
143
|
-
|
144
|
-
# TODO: Patches
|
145
|
-
|
146
|
-
# Figure out how to test external source here.
|
147
|
-
|
148
|
-
# Figure out how to handle location
|
149
128
|
end
|
150
129
|
end
|
151
130
|
end
|