cocoapods-core 1.7.0.beta.3 → 1.7.0.rc.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: a58aa8f4ec56af7a408268c34e1141711cf1a72ab81b58d04b34ece53e2768b2
4
- data.tar.gz: 50a8fec163175b54d1569e9c87dfedd0d95b6906997c39dc5caeada0bf401202
3
+ metadata.gz: cb68b94106cf6f1d02ab803bdcdbb9931a4c5664a7f81baefcda612787da6ee3
4
+ data.tar.gz: 74adb496319597122afef2db55ea2961c5d4966d9997bd2af19b99d78b115929
5
5
  SHA512:
6
- metadata.gz: a1795ccca525d92462177329ddb7e20174869c22bd7036f22edd03f976e865cc50652c5882fc5a7b1e175c37ddcc7ccf6ff239f19a8e9cd056776853c19869d0
7
- data.tar.gz: 792de8218e56ec901e176ad5954f1083964c4c66eef5e6af816422eeef3c7973f6a7ee98860be150434684d7c89b4dd22a89fcc43ec881291d3c805974b09ecd
6
+ metadata.gz: af7a2b30f78d44e98ecdd18ff4b90883aea074564a37b254a53f5d243638e459d97886749cb317d722fade7074f4e78c5d7e779cff7019f0e2be613cc45aadb0
7
+ data.tar.gz: 299e8b01620fd4bfca38b4cd3660ab293f38a74c62d7681922d7313f1a6cec3c47420ac3caadc161db08f8d7e0c71704637fccf32b697e7cc28dd121f9725b07
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  # The version of the cocoapods-core.
3
3
  #
4
- CORE_VERSION = '1.7.0.beta.3'.freeze unless defined? Pod::CORE_VERSION
4
+ CORE_VERSION = '1.7.0.rc.1'.freeze unless defined? Pod::CORE_VERSION
5
5
  end
@@ -249,8 +249,13 @@ module Pod
249
249
  @updated_search_index ||= begin
250
250
  if search_index_path.exist?
251
251
  require 'json'
252
- index = JSON.parse(search_index_path.read)
253
- index if index.is_a?(Hash) # TODO: should we also check if hash has correct hierarchy?
252
+ begin
253
+ index = JSON.parse(search_index_path.read)
254
+ index if index.is_a?(Hash) # TODO: should we also check if hash has correct hierarchy?
255
+ rescue JSON::ParserError
256
+ search_index_path.delete
257
+ nil
258
+ end
254
259
  end
255
260
  end
256
261
  end
@@ -53,7 +53,7 @@ module Pod
53
53
  def last_compatible_version(target_version)
54
54
  return unless minimum_cocoapods_version
55
55
  return if minimum_cocoapods_version <= target_version
56
- @last_compatible_versions.reverse_each.bsearch { |v| v <= target_version }.tap do |version|
56
+ @last_compatible_versions.reverse.bsearch { |v| v <= target_version }.tap do |version|
57
57
  raise Informative, 'Unable to find compatible version' unless version
58
58
  end
59
59
  end
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.7.0.beta.3
4
+ version: 1.7.0.rc.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: 2019-03-27 00:00:00.000000000 Z
12
+ date: 2019-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport