cocoapods-core 1.5.3 → 1.6.0.beta.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dae9d3dece7425ab43ea990f84a8bbe4600503e1f46d19130448e3717ef400b
|
4
|
+
data.tar.gz: 7410712d03ed8f2e9dd6da1474d9381bb7a41b42a0acd9841481edbe379d5854
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c8cca08c3b62e15490c366c4798fa36873ef24896a2de729e473985db4f9bb1df80886e0c00da717058a03821afe82785b46204fb4dc4a41f2095deba6df700
|
7
|
+
data.tar.gz: 3b49fa4dc1ad035ef0ae6c96a74977d53f70a62886965d3ad5924c4fac137061b5ea149a3e3d1b1dcf3dc3e8cdc51aa5fc3cd857560192977b85a0c006428b5c
|
@@ -223,11 +223,13 @@ module Pod
|
|
223
223
|
# @return [Nil] If the podfile is not defined in a file.
|
224
224
|
#
|
225
225
|
def checksum
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
226
|
+
@checksum ||= begin
|
227
|
+
unless defined_in_file.nil?
|
228
|
+
require 'digest'
|
229
|
+
checksum = Digest::SHA1.hexdigest(File.read(defined_in_file))
|
230
|
+
checksum = checksum.encode('UTF-8') if checksum.respond_to?(:encode)
|
231
|
+
checksum
|
232
|
+
end
|
231
233
|
end
|
232
234
|
end
|
233
235
|
|
@@ -561,11 +561,17 @@ module Pod
|
|
561
561
|
# @return [Nil] If the specification is not defined in a file.
|
562
562
|
#
|
563
563
|
def checksum
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
564
|
+
@checksum ||= begin
|
565
|
+
if root?
|
566
|
+
unless defined_in_file.nil?
|
567
|
+
require 'digest'
|
568
|
+
checksum = Digest::SHA1.hexdigest(File.read(defined_in_file))
|
569
|
+
checksum = checksum.encode('UTF-8') if checksum.respond_to?(:encode)
|
570
|
+
checksum
|
571
|
+
end
|
572
|
+
else
|
573
|
+
root.checksum
|
574
|
+
end
|
569
575
|
end
|
570
576
|
end
|
571
577
|
|
@@ -53,7 +53,11 @@ module Pod
|
|
53
53
|
# @return [Specification] the top level specification for this set for any version.
|
54
54
|
#
|
55
55
|
def specification_name
|
56
|
-
|
56
|
+
versions_by_source.each do |source, versions|
|
57
|
+
next unless version = versions.first
|
58
|
+
return source.specification(name, version).name
|
59
|
+
end
|
60
|
+
nil
|
57
61
|
end
|
58
62
|
|
59
63
|
# @return [Array<String>] the paths to specifications for the given
|
@@ -131,14 +135,6 @@ module Pod
|
|
131
135
|
}
|
132
136
|
end
|
133
137
|
|
134
|
-
private
|
135
|
-
|
136
|
-
# @return [Version] A version known for this specification.
|
137
|
-
#
|
138
|
-
def any_version
|
139
|
-
versions_by_source.values.flatten.uniq.first
|
140
|
-
end
|
141
|
-
|
142
138
|
#-----------------------------------------------------------------------#
|
143
139
|
|
144
140
|
# The Set::External class handles Pods from external sources. Pods from
|
@@ -43,14 +43,7 @@ module Pod
|
|
43
43
|
# @param [String,Version] version
|
44
44
|
# A string representing a version, or another version.
|
45
45
|
#
|
46
|
-
# @todo Remove the `HEAD` code once everyone has migrated past 1.0.
|
47
|
-
#
|
48
46
|
def initialize(version)
|
49
|
-
if version.is_a?(String) && version =~ /HEAD based on (.*)/
|
50
|
-
CoreUI.warn "Ignoring obsolete HEAD specifier in `#{version}`"
|
51
|
-
version = Regexp.last_match[1]
|
52
|
-
end
|
53
|
-
|
54
47
|
raise ArgumentError, "Malformed version number string #{version}" unless
|
55
48
|
self.class.correct?(version)
|
56
49
|
|
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.
|
4
|
+
version: 1.6.0.beta.1
|
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: 2018-
|
12
|
+
date: 2018-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
148
|
rubyforge_project:
|
149
|
-
rubygems_version: 2.7.
|
149
|
+
rubygems_version: 2.7.7
|
150
150
|
signing_key:
|
151
151
|
specification_version: 3
|
152
152
|
summary: The models of CocoaPods
|