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: b70cac794d9f1c7862a1a4644a649e081c2f1aac
4
- data.tar.gz: 8f211a9467688033e5fa7e1af318eb452f46e532
3
+ metadata.gz: caac0af8af8f237b9b9beb5272ba6468a95f2c40
4
+ data.tar.gz: 726d38f4416117734b98f7d96fc652b0f4f925e8
5
5
  SHA512:
6
- metadata.gz: 7746f4b0a171776a8903db8aff4c1874cb84c59085271ca3bb2f6a1eb012a5ec5eaa42a565f6ce150f74029e66a9d79ff1b25e845a2e1f1becd445555c57c96f
7
- data.tar.gz: 1f9d932936d28309dd668484597a69e95191bd6ce2e374335728732321943e6e83f633d785281500980f2ee33e391f5576778f6bd5c51ca9260ca131211dd701
6
+ metadata.gz: 349b5870d177943816a653891df7b81e2becf6f0554230eaa3a8b627eabdc51cb63f53f760fd6b93fc8115f9393918da78abed8337fdb0fd5e651bc070d3f113
7
+ data.tar.gz: 2ea2b5b8e7a29752e8d72b8407256c0d37053cf7e6f4f564b17bd5714fe37c4537654f47563e1474b842fecee5464325426e3dced79b55b19ffb3a1492d427cd
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: cocoapods-deploy 0.0.5 ruby lib
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.5"
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
- source = ExternalSources.from_dependency(dep, config.podfile.defined_in_file)
101
- source.fetch(config.sandbox)
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
- "https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/#{pod}/#{version}/#{pod}.podspec.json"
67
+ "{root-url}/master/Specs/#{pod}/#{version}/#{pod}.podspec.json"
68
68
  end
69
69
 
70
70
  def collect_podspec_dependencies(name_or_hash)
@@ -1,3 +1,3 @@
1
1
  module CocoapodsDeploy
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  require 'cocoapods-deploy/deploy_analyzer'
2
+ require 'cocoapods-deploy/deploy_downloader'
2
3
  require 'cocoapods-deploy/deploy_installer'
3
4
  require 'cocoapods-deploy/deploy_transformer'
4
5
  require 'cocoapods-deploy/command'
@@ -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 create new external source' do
131
- ExternalSources.expects(:from_dependency).with(@dependency, @podfile.defined_in_file).returns(@source)
132
- @source.stubs(:fetch)
133
- @command.run
134
- end
121
+ it 'should download source' do
122
+ downloader = DeployDownloader.new(nil)
123
+ downloader.expects(:download)
135
124
 
136
- it 'should fetch source' do
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
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.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Campbell