cocoapods-core 0.37.0.beta.1 → 0.37.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
  SHA1:
3
- metadata.gz: 315894eb34c0f6a04807edf8f349f2474694ee42
4
- data.tar.gz: 54418d30b3be6e9b587ae8272283f51303652f43
3
+ metadata.gz: 7d7c9fac21e428b03316d611265afdb4499e2f29
4
+ data.tar.gz: 29d37be0c71efa729056e5b3b506242fae818c6a
5
5
  SHA512:
6
- metadata.gz: 70d3418f36984f5611e2c53bf6c2ee43b8add151b0944dc3f7a7b6dc229c2d923da1e72c58d4b1e50e99e24b99fdb50d895da828cd7ba22cbba8932d4074ad70
7
- data.tar.gz: 08f3f21152641576389e09efbb9eaa5df5f5f43aee274a0f565e39a979f2c35f4f4ab3889251107f992c9cd8d2b2a1662242877f469b348ae6969f08d2dd6b05
6
+ metadata.gz: 86866b240ac33c1d4ebadd296049c55f6461b9d44aa5eea8b7103668294741e268e7184b116419c6a6bcb6048709ca78072b96d6bee1d59d5cde8f8ec7e3f708
7
+ data.tar.gz: 8f682c7fb665001c00088ff50435fb6a1f0e420dddb7367e4d85074952a09d06f99784a694f2e0b3c62284227eb96f50e9b5f497ce0e6fb46780da7758f26d1c
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  # The version of the cocoapods-core.
3
3
  #
4
- CORE_VERSION = '0.37.0.beta.1' unless defined? Pod::CORE_VERSION
4
+ CORE_VERSION = '0.37.0.rc.1' unless defined? Pod::CORE_VERSION
5
5
  end
@@ -289,8 +289,17 @@ module Pod
289
289
  #
290
290
  def write_to_disk(path)
291
291
  path.dirname.mkpath unless path.dirname.exist?
292
- File.open(path, 'w') { |f| f.write(to_yaml) }
293
292
  self.defined_in_file = path
293
+ # rubocop:disable Lint/RescueException
294
+ # rubocop:disable Lint/HandleExceptions
295
+ begin
296
+ existing = Lockfile.from_file(path)
297
+ return if existing == self
298
+ rescue Exception
299
+ end
300
+ path.open('w') { |f| f.write(to_yaml) }
301
+ # rubocop:enable Lint/HandleExceptions
302
+ # rubocop:enable Lint/RescueException
294
303
  end
295
304
 
296
305
  # @return [Hash{String=>Array,Hash,String}] a hash representation of the
@@ -201,7 +201,7 @@ module Pod
201
201
  if query.is_a?(Dependency)
202
202
  query = query.root_name
203
203
  end
204
- if (specs_dir + query).directory?
204
+ if specs_dir.children.select(&:directory?).map(&:basename).map(&:to_s).include?(query.to_s)
205
205
  set(query)
206
206
  end
207
207
  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: 0.37.0.beta.1
4
+ version: 0.37.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: 2015-04-18 00:00:00.000000000 Z
12
+ date: 2015-04-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport