cocoapods-binary 0.4.2 → 0.4.3

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
- SHA256:
3
- metadata.gz: 7ebe2820b8d3d2cabfc7a79d7e57644b5df906fb5f61fb7c136e3aa9ea22b19b
4
- data.tar.gz: 7d0c1a5aff106c377d73f9b53fec4ea8780dbfc52f9b37da045bfa57c1ea7bfa
2
+ SHA1:
3
+ metadata.gz: 68b6e39958a64ccfaf68bcf58f5cf85610102f04
4
+ data.tar.gz: 84301375e1c5b4ed7f8d68436bf34f6a74137084
5
5
  SHA512:
6
- metadata.gz: c2ca624a8759c99d8f0ab69ffab1c1373de433c2e6613ba6c5e302515dfb3b42f562de56f6858b3668470cd86270ff0ad53b89033dcbf5c9757730fc9d57e931
7
- data.tar.gz: feadddc03f4594a08782f29d53ef101c4d3a78a2aeaa253c8e9b6777991477995f3b8a191770571c3958472e12335b51a54a2ddd2580d3cbb1ade46a3ad0a0d4
6
+ metadata.gz: 6f7d2a697838a6de2ee1a3f0086fea28abcf32d477ef44646f149fc4476da0c219f56cc0e144799b781ce002f7ebf641f92733f33ddb272fc6c7629f66138572
7
+ data.tar.gz: b3b3e7c23ecb186c409d0d50f1a82188881c870a40a055aacf0542a54351a126b5dd0c774af4244c2572fe6309e9542d980107e655ac6da6b49bacbae6b513fa
@@ -126,7 +126,20 @@ module Pod
126
126
  if target.static_framework? and !target.resource_paths.empty?
127
127
  framework_path = output_path + target.framework_name
128
128
  standard_sandbox_path = sandbox.standard_sanbox_path
129
- path_objects = target.resource_paths.map do |path|
129
+
130
+ resources = begin
131
+ if Pod::VERSION.start_with? "1.5"
132
+ target.resource_paths
133
+ else
134
+ # resource_paths is Hash{String=>Array<String>} on 1.6 and above
135
+ # (use AFNetworking to generate a demo data)
136
+ # https://github.com/leavez/cocoapods-binary/issues/50
137
+ target.resource_paths.values.flatten
138
+ end
139
+ end
140
+ raise "Wrong type: #{resources}" unless resources.kind_of? Array
141
+
142
+ path_objects = resources.map do |path|
130
143
  object = Prebuild::Passer::ResourcePath.new
131
144
  object.real_file_path = framework_path + File.basename(path)
132
145
  object.target_file_path = path.gsub('${PODS_ROOT}', standard_sandbox_path.to_s) if path.start_with? '${PODS_ROOT}'
@@ -1,3 +1,3 @@
1
1
  module CocoapodsBinary
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-binary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - leavez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-24 00:00:00.000000000 Z
11
+ date: 2019-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.7.6
123
+ rubygems_version: 2.5.2.3
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: A CocoaPods plugin to integrate pods in form of prebuilt frameworks, not