cocoapods 0.22.0 → 0.22.1

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: e1f552882d2489715f3154877683645345841303
4
- data.tar.gz: f16fc98973864b454debaa5ed50d8272b075377b
3
+ metadata.gz: a33164a53936d75565f0d57cbf118f7452714030
4
+ data.tar.gz: 5dfa0d590569a5ea0d4bbb89ec74089fdc3b315d
5
5
  SHA512:
6
- metadata.gz: e16713b34307e47f67d139a3e7de88a2e00dd9f72bed30bc2e33535a2940fbd05f321b0a8e9f2cab934b22aea5132cb679d6805e59f42e17dddbc9ed3b0623b9
7
- data.tar.gz: eca230d41a659af15dc15966008a1004b6502398a3a14529463c4c8ba3afca0f83470f8972533873d0efa3cca25e7f449535e521ff0f6d5e49a75dc48b4be817
6
+ metadata.gz: bb19c4f40df1b05c5aa5eef068884e94b5c9ed89433283346829375b21e2e7ee91fd36ee1ee1e6053b396cbb5fae2e332818451da26741cbc6e52633ae6bfda4
7
+ data.tar.gz: be0e7c7f4f883be762aa134ee01e39f425d65d4b57f47c9e5a5f0b7ec7ae57b853a4502c5dc3802ce53252af7bec4fb9cba1278cbdf660f9a94f945f84583a0c
@@ -2,6 +2,16 @@
2
2
 
3
3
  To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides/installing_cocoapods.html).
4
4
 
5
+ ## 0.22.1
6
+ [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.22.0...0.22.1)
7
+ • [cocoapods-core](https://github.com/CocoaPods/Core/compare/0.22.0...0.22.1)
8
+
9
+ ###### Bug fixes
10
+
11
+ * Fixed a crash related to target dependencies and subspecs.
12
+ [#1168](https://github.com/CocoaPods/CocoaPods/issues/1168)
13
+
14
+
5
15
  ## 0.22.0
6
16
  [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.21.0...0.22.0)
7
17
  • [cocoapods-core](https://github.com/CocoaPods/Core/compare/0.21.0...0.22.0)
@@ -112,10 +112,10 @@ module Pod
112
112
 
113
113
  # @!group Initialization
114
114
 
115
- def initialize
115
+ def initialize(use_user_settings = true)
116
116
  configure_with(DEFAULTS)
117
117
 
118
- if user_settings_file.exist?
118
+ if use_user_settings && user_settings_file.exist?
119
119
  require 'yaml'
120
120
  user_settings = YAML.load_file(user_settings_file)
121
121
  configure_with(user_settings)
@@ -1,6 +1,6 @@
1
1
  module Pod
2
2
  # The version of the cocoapods command line tool.
3
3
  #
4
- VERSION = '0.22.0' unless defined? Pod::VERSION
4
+ VERSION = '0.22.1' unless defined? Pod::VERSION
5
5
  end
6
6
 
@@ -339,8 +339,14 @@ module Pod
339
339
  add_dependency(aggregate_target, pod_target)
340
340
  pod_target.dependencies.each do |dep|
341
341
 
342
- pod_dependency_target = aggregate_target.pod_targets.find { |target| target.root_spec.name == dep }
343
- add_dependency(pod_target, pod_dependency_target)
342
+ unless dep == pod_target.pod_name
343
+ pod_dependency_target = aggregate_target.pod_targets.find { |target| target.pod_name == dep }
344
+ # TODO remove me
345
+ unless pod_dependency_target
346
+ puts "[BUG] DEP: #{dep}"
347
+ end
348
+ add_dependency(pod_target, pod_dependency_target)
349
+ end
344
350
  end
345
351
  end
346
352
  end
@@ -43,18 +43,24 @@ module Pod
43
43
  specs.map { |spec| spec.consumer(platform) }
44
44
  end
45
45
 
46
- # @return [Specification] the root specification for the target.
46
+ # @return [Specification] The root specification for the target.
47
47
  #
48
48
  def root_spec
49
49
  specs.first.root
50
50
  end
51
51
 
52
+ # @return [String] The name of the Pod that this target refers to.
53
+ #
54
+ def pod_name
55
+ root_spec.name
56
+ end
57
+
52
58
  # @return [Array<String>] The names of the Pods on which this target
53
59
  # depends.
54
60
  #
55
61
  def dependencies
56
62
  specs.map do |spec|
57
- spec.consumer(platform).dependencies.map { |dep| dep.name }
63
+ spec.consumer(platform).dependencies.map { |dep| Specification.root_name(dep.name) }
58
64
  end.flatten
59
65
  end
60
66
 
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.22.0
4
+ version: 0.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 0.22.0
20
+ version: 0.22.1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 0.22.0
27
+ version: 0.22.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: claide
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -237,53 +237,15 @@ post_install_message: |2+
237
237
 
238
238
  CHANGELOG:
239
239
 
240
- ## 0.22.0
241
- [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.21.0...0.22.0)
242
- • [cocoapods-core](https://github.com/CocoaPods/Core/compare/0.21.0...0.22.0)
243
- • [Xcodeproj](https://github.com/CocoaPods/Xcodeproj/compare/0.7.1...0.8.0)
244
-
245
- ###### Enhancements
246
-
247
- * Added the `pod lib create` subcommand which allows to create a new Pod
248
- adhering to the best practices. The template is still a bit primitive
249
- and we encourage users to provide feedback by submitting patches and issues
250
- to https://github.com/CocoaPods/CocoaPods.
251
- [#850](https://github.com/CocoaPods/CocoaPods/issues/850)
252
-
253
- * Added the `pod lib lint` subcommand which allows to lint the Pod stored
254
- in the working directory (a pod spec in the root is needed).
255
- [#850](https://github.com/CocoaPods/CocoaPods/issues/850)
256
-
257
- * The dependencies of the targets of the Pods project are now made explicit.
258
- [#1165](https://github.com/CocoaPods/CocoaPods/issues/1165)
259
-
260
- * The size of the cache used for the git repos is now configurable. For more
261
- details see
262
- https://github.com/CocoaPods/CocoaPods/blob/master/lib/cocoapods/config.rb#L7-L25
263
- [#1159](https://github.com/CocoaPods/CocoaPods/issues/1159)
264
-
265
- * The copy resources shell script now aborts if any error occurs.
266
- [#1098](https://github.com/CocoaPods/CocoaPods/issues/1098)
267
-
268
- * The output of shell script build phases no longer includes environment
269
- variables to reduce noise.
270
- [#1122](https://github.com/CocoaPods/CocoaPods/issues/1122)
271
-
272
- * CocoaPods no longer sets the deprecated `ALWAYS_SEARCH_USER_PATHS` build
273
- setting.
240
+ ## 0.22.1
241
+ [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.22.0...0.22.1)
242
+ • [cocoapods-core](https://github.com/CocoaPods/Core/compare/0.22.0...0.22.1)
274
243
 
275
244
  ###### Bug fixes
276
245
 
277
- * Pods whose head state changes now are correctly detected and reinstalled.
278
- [#1160](https://github.com/CocoaPods/CocoaPods/issues/1160)
279
-
280
- * Fixed the library reppresentation of the hooks which caused issues with the
281
- `#copy_resources_script_path` method.
282
- [#1157](https://github.com/CocoaPods/CocoaPods/issues/1157)
246
+ * Fixed a crash related to target dependencies and subspecs.
247
+ [#1168](https://github.com/CocoaPods/CocoaPods/issues/1168)
283
248
 
284
- * Frameworks symlinks are not properly preserved by the copy resources script.
285
- Thanks to Thomas Dohmke (ashtom) for the fix.
286
- [#1063](https://github.com/CocoaPods/CocoaPods/issues/1063)
287
249
 
288
250
  rdoc_options: []
289
251
  require_paths: