cocoapods-packing-cubes 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 802698251563bf4aa6878a5f82beff1b4a7761ca5ee8e85bff8bbd25bc056785
4
- data.tar.gz: 54b4fd68ade0c0698c27b1dd2b1d02dd4711bbe0b80ac8aee503aba223d6203c
3
+ metadata.gz: 2049ce9f2aed4ed34fd3bf6038bcc8e280357c603db499f3bb48810d52aba372
4
+ data.tar.gz: d5ab345534507599ea76bc6a6b829338003bd279f711703e78d7ccd7b37e0b4f
5
5
  SHA512:
6
- metadata.gz: 0d70269705da3d907d5c88a245d125f5e9e2149b4c7f6d7fa39735dbf052162f4add1f8448effec74609015e99bd2b0d2e464f1ea5135da679f73c2a292b57df
7
- data.tar.gz: 7e40d165e412123e78b424500c04f69908e8412dc417b58b5fc5f6e0298ca230680efcb80aa3baacb37e2f8545fe08f035763e551fa05981489355336db28b97
6
+ metadata.gz: 68f1b29bc6379809b9d0f77245927cb04effe3b6e039bcd5904901710d790da3ab6e384bd20f3f54d238553cf57ec2ea0c0c3e119677326e8a3db22fa4a5f956
7
+ data.tar.gz: 73c232da76e31a31fca6bf588f76ba2cc3a8eafaaf954b9abf116f36c05e5644fdfb027cedfd9e8869f9692ef5e949e334788d1cdfc74bbe9f9923fe62844e44
@@ -54,7 +54,7 @@ module CocoaPodsPackingCubes
54
54
  host_requires_frameworks? ? :framework : :library
55
55
  end.to_sym
56
56
  linkage = packing_cube.fetch('linkage') do
57
- !host_requires_frameworks? || static_framework? ? :static : :dynamic
57
+ !host_requires_frameworks? || root_spec.static_framework ? :static : :dynamic
58
58
  end.to_sym
59
59
 
60
60
  @type = ::CocoaPodsPackingCubes::Type.new(linkage: linkage, packaging: packaging)
@@ -68,8 +68,8 @@ module CocoaPodsPackingCubes
68
68
  # HACK: needed because CocoaPods, pre-introduction of the `type` type/attr,
69
69
  # would check #requires_frameworks? instead of #host_requires_frameworks?
70
70
  # for finding the PodTarget to set as a dependency of another PodTarget.
71
- if !::CocoaPodsPackingCubes::NATIVE_TYPE_SUPPORT &&
72
- caller_locations(1, 2).any? { |l| l.label == '#filter_dependencies' }
71
+ if !::CocoaPodsPackingCubes::NATIVE_TYPE_SUPPORT && !packing_cube.empty? &&
72
+ caller_locations(1, 2).any? { |l| l.base_label == 'filter_dependencies' }
73
73
 
74
74
  return super
75
75
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-packing-cubes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Giddins