cocoapods 0.14.0.rc1 → 0.14.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +11 -1
- data/lib/cocoapods.rb +1 -1
- data/lib/cocoapods/installer.rb +3 -9
- data/lib/cocoapods/lockfile.rb +2 -0
- data/lib/cocoapods/sandbox.rb +10 -0
- data/lib/cocoapods/specification.rb +2 -1
- metadata +3 -3
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,14 @@
|
|
1
|
-
##
|
1
|
+
## 0.14.0.rc2
|
2
|
+
|
3
|
+
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.14.0.rc1...0.14.0.rc2)
|
4
|
+
|
5
|
+
###### Bug fixes
|
6
|
+
|
7
|
+
- Fix incorrect name for Pods from external sources with preferred subspecs.
|
8
|
+
- Prevent duplication of Pod with a local source and mutliple activated specs.
|
9
|
+
- Fixed the `uninitialized constant Pod::Lockfile::Digest` error.
|
10
|
+
|
11
|
+
## 0.14.0.rc1
|
2
12
|
|
3
13
|
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.13.0...0.14.0.rc1) • [Xcodeproj](https://github.com/CocoaPods/Xcodeproj/compare/0.3.1...0.3.2)
|
4
14
|
|
data/lib/cocoapods.rb
CHANGED
data/lib/cocoapods/installer.rb
CHANGED
@@ -48,17 +48,11 @@ module Pod
|
|
48
48
|
#
|
49
49
|
def install_dependencies!
|
50
50
|
pods.sort_by { |pod| pod.top_specification.name.downcase }.each do |pod|
|
51
|
-
|
52
|
-
should_install = @resolver.should_install?(name) || !pod.exists?
|
51
|
+
should_install = @resolver.should_install?(pod.top_specification.name) || !pod.exists?
|
53
52
|
|
54
53
|
unless config.silent?
|
55
54
|
marker = config.verbose ? "\n-> ".green : ''
|
56
|
-
|
57
|
-
name = "#{pod.top_specification.name}/#{subspec_name} (#{pod.top_specification.version})"
|
58
|
-
else
|
59
|
-
name = pod.to_s
|
60
|
-
end
|
61
|
-
puts marker << ( should_install ? "Installing #{name}".green : "Using #{name}" )
|
55
|
+
puts marker << ( should_install ? "Installing #{pod}".green : "Using #{pod}" )
|
62
56
|
end
|
63
57
|
|
64
58
|
if should_install
|
@@ -196,7 +190,7 @@ module Pod
|
|
196
190
|
@pods_by_spec[target_definition.platform] = {}
|
197
191
|
result[target_definition] = specs.map do |spec|
|
198
192
|
if spec.local?
|
199
|
-
|
193
|
+
@sandbox.locally_sourced_pod_for_spec(spec, target_definition.platform)
|
200
194
|
else
|
201
195
|
@sandbox.local_pod_for_spec(spec, target_definition.platform)
|
202
196
|
end
|
data/lib/cocoapods/lockfile.rb
CHANGED
data/lib/cocoapods/sandbox.rb
CHANGED
@@ -14,6 +14,7 @@ module Pod
|
|
14
14
|
@build_headers = HeadersDirectory.new(self, BUILD_HEADERS_DIR)
|
15
15
|
@public_headers = HeadersDirectory.new(self, PUBLIC_HEADERS_DIR)
|
16
16
|
@cached_local_pods = {}
|
17
|
+
@cached_locally_sourced_pods = {}
|
17
18
|
FileUtils.mkdir_p(@root)
|
18
19
|
end
|
19
20
|
|
@@ -37,6 +38,15 @@ module Pod
|
|
37
38
|
end
|
38
39
|
end
|
39
40
|
|
41
|
+
# TODO: refactor the pods from a local source should not be chached by the sandbox
|
42
|
+
#
|
43
|
+
def locally_sourced_pod_for_spec(spec, platform)
|
44
|
+
key = [spec.top_level_parent.name, platform.to_sym]
|
45
|
+
(@cached_locally_sourced_pods[key] ||= LocalPod::LocalSourcedPod.new(spec.top_level_parent, self, platform)).tap do |pod|
|
46
|
+
pod.add_specification(spec)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
40
50
|
def installed_pod_named(name, platform)
|
41
51
|
if spec_path = podspec_for_name(name)
|
42
52
|
key = [name, platform.to_sym]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.0.
|
4
|
+
version: 0.14.0.rc2
|
5
5
|
prerelease: 7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -253,7 +253,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
253
253
|
version: '0'
|
254
254
|
segments:
|
255
255
|
- 0
|
256
|
-
hash:
|
256
|
+
hash: 3928809809918317926
|
257
257
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
258
258
|
none: false
|
259
259
|
requirements:
|