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.
@@ -1,4 +1,14 @@
1
- ## Master
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
 
@@ -13,7 +13,7 @@ unless Gem::Version::Requirement.new('>= 1.4.0').satisfied_by?(Gem::Version.new(
13
13
  end
14
14
 
15
15
  module Pod
16
- VERSION = '0.14.0.rc1'
16
+ VERSION = '0.14.0.rc2'
17
17
 
18
18
  class PlainInformative < StandardError
19
19
  end
@@ -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
- name = pod.top_specification.name
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
- if subspec_name = pod.top_specification.preferred_dependency
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
- LocalPod::LocalSourcedPod.new(spec, sandbox, target_definition.platform)
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
@@ -1,3 +1,5 @@
1
+ require 'digest'
2
+
1
3
  module Pod
2
4
  class Lockfile
3
5
 
@@ -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]
@@ -458,7 +458,8 @@ module Pod
458
458
  end
459
459
 
460
460
  def to_s
461
- "#{name} (#{version})"
461
+ display_name = preferred_dependency.nil? ? name : "#{name}/#{preferred_dependency}"
462
+ "#{display_name} (#{version})"
462
463
  end
463
464
 
464
465
  def inspect
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.rc1
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-28 00:00:00.000000000 Z
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: 202149505213323645
256
+ hash: 3928809809918317926
257
257
  required_rubygems_version: !ruby/object:Gem::Requirement
258
258
  none: false
259
259
  requirements: