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: 2ea7ca6f558b6da65ac15839b9d7d0b59a920523bef04af56b3889aa6ea3af6f
4
- data.tar.gz: 8498d90d1ce0e2e429c5673cada680e32ee7f31194577fd0e4db9c45585d4063
3
+ metadata.gz: 0dae9d3dece7425ab43ea990f84a8bbe4600503e1f46d19130448e3717ef400b
4
+ data.tar.gz: 7410712d03ed8f2e9dd6da1474d9381bb7a41b42a0acd9841481edbe379d5854
5
5
  SHA512:
6
- metadata.gz: 3dcb74dd0468497461987147657b46faf75c1730d20cee6df2a86cee99181c316abca4f48b74b632bf64e63a83038c6729b420d8f405bb617d75fc34079ca747
7
- data.tar.gz: 1c3d1595868d34a7c2c1dc4deb8c4732adc0bf564cb7c9bd19cbcaf77f68ffef36ff0465520285ed977d7cc06bcbf055f523610982c3ec78c7b3725d95720c0f
6
+ metadata.gz: 5c8cca08c3b62e15490c366c4798fa36873ef24896a2de729e473985db4f9bb1df80886e0c00da717058a03821afe82785b46204fb4dc4a41f2095deba6df700
7
+ data.tar.gz: 3b49fa4dc1ad035ef0ae6c96a74977d53f70a62886965d3ad5924c4fac137061b5ea149a3e3d1b1dcf3dc3e8cdc51aa5fc3cd857560192977b85a0c006428b5c
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  # The version of the cocoapods-core.
3
3
  #
4
- CORE_VERSION = '1.5.3'.freeze unless defined? Pod::CORE_VERSION
4
+ CORE_VERSION = '1.6.0.beta.1'.freeze unless defined? Pod::CORE_VERSION
5
5
  end
@@ -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
- unless defined_in_file.nil?
227
- require 'digest'
228
- checksum = Digest::SHA1.hexdigest(File.read(defined_in_file))
229
- checksum = checksum.encode('UTF-8') if checksum.respond_to?(:encode)
230
- checksum
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
- unless defined_in_file.nil?
565
- require 'digest'
566
- checksum = Digest::SHA1.hexdigest(File.read(defined_in_file))
567
- checksum = checksum.encode('UTF-8') if checksum.respond_to?(:encode)
568
- checksum
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
- Specification.from_file(specification_paths_for_version(any_version).first).name
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.5.3
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-05-24 00:00:00.000000000 Z
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.6
149
+ rubygems_version: 2.7.7
150
150
  signing_key:
151
151
  specification_version: 3
152
152
  summary: The models of CocoaPods