cocoapods-core 1.8.1 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-core/gem_version.rb +1 -1
- data/lib/cocoapods-core/specification/json.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c99cc632b8e3dd44cdba2ed50a73bd2ba15d08cfda222911bbc737c14738c1a1
|
4
|
+
data.tar.gz: 11cd4092487a87860d6ef3ff4d111583d2f6d7239fca9291580f65efd0017cd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d33174f5aef081a6768d8b56eef62b58e2bdef79d80a136ef0b9eaa73f100e331024e32f2cb7e4feec7f3ccacedf0bc6638cd059670fbcd61595bd334112b08
|
7
|
+
data.tar.gz: 3b8f4413ad0b79f5b986728ae144cd0249c2d26b7991c16f849f9f261995ca9be8f14743fbd7d40c5ba2b1ba99bc68472b295b5dddf911e836d84bf96b3a4959
|
@@ -22,6 +22,7 @@ module Pod
|
|
22
22
|
#
|
23
23
|
def to_hash
|
24
24
|
hash = attributes_hash.dup
|
25
|
+
hash.delete('platforms')
|
25
26
|
if root? || available_platforms != parent.available_platforms
|
26
27
|
platforms = Hash[available_platforms.map { |p| [p.name.to_s, p.deployment_target && p.deployment_target.to_s] }]
|
27
28
|
hash['platforms'] = platforms
|
@@ -31,13 +32,17 @@ module Pod
|
|
31
32
|
all_testspecs = specs_by_type[:test] || []
|
32
33
|
all_subspecs = specs_by_type[:library] || []
|
33
34
|
|
35
|
+
hash.delete('testspecs')
|
34
36
|
hash['testspecs'] = all_testspecs.map(&:to_hash) unless all_testspecs.empty?
|
37
|
+
hash.delete('appspecs')
|
35
38
|
hash['appspecs'] = all_appspecs.map(&:to_hash) unless all_appspecs.empty?
|
39
|
+
hash.delete('subspecs')
|
36
40
|
hash['subspecs'] = all_subspecs.map(&:to_hash) unless all_subspecs.empty?
|
37
41
|
|
38
42
|
# Since CocoaPods 1.7 version the DSL has changed to be pluralized. When we serialize a podspec to JSON with
|
39
43
|
# 1.7, ensure that we also include the singular version in the hash to maintain backwards compatibility with
|
40
44
|
# < 1.7 versions.
|
45
|
+
hash.delete('swift_version')
|
41
46
|
hash['swift_version'] = swift_version.to_s unless swift_version.nil?
|
42
47
|
|
43
48
|
hash
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-10-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|