cocoapods-core 0.36.0 → 0.36.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: f01cdbe70a670efc59ef088d80eea153dfc92743
4
- data.tar.gz: cad0e1f342d8a8feccd30c272f84e9341d756e41
3
+ metadata.gz: 9f5ece60001c7c220a0916f21ae5ee62a5d3b8e8
4
+ data.tar.gz: aefe70127e25fbeba2855023b26af57e6a38c445
5
5
  SHA512:
6
- metadata.gz: e94659d87ef2cdfb769115974e1fcbb9ab7b5a4c5cb26c274f46e972ce2f0c27798f727b150bd4acac27d1e921fa9a2c062bc20d63946312c3251e80f7662fdc
7
- data.tar.gz: 1d4c31d45d365d1393990f5b1688e70ded2416475b783b0bc76f5314cdec3ef71afe7a286cba0247e4d2add473188f368d9b38f2d62166861c57c3c98b4385ba
6
+ metadata.gz: 7a02153f283bcefa836ac55ba6d97dcec1ed693e81f15ff8259c30406d47f056af1b16155711a2a27534cb148bdad1256fd4f3e13c11aaddccbbd1848f72e2c3
7
+ data.tar.gz: 8a282537d5b49728850ea58b564f2602dc0548f29ba836627f28a3b88af600845521f33a0245015f8c751467cfb2307188facdfca2399a6f4eb9368ad8f661c1
@@ -179,7 +179,7 @@ module Pod
179
179
  return false unless head? == other.head?
180
180
  return false unless external_source == other.external_source
181
181
 
182
- other.requirement.requirements.all? do | _operator, version |
182
+ other.requirement.requirements.all? do |_operator, version|
183
183
  requirement.satisfied_by? Version.new(version)
184
184
  end
185
185
  end
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  # The version of the cocoapods-core.
3
3
  #
4
- CORE_VERSION = '0.36.0' unless defined? Pod::CORE_VERSION
4
+ CORE_VERSION = '0.36.1' unless defined? Pod::CORE_VERSION
5
5
  end
@@ -15,7 +15,7 @@ module Pod
15
15
  if [301, 302, 303, 307, 308].include? response.status_code
16
16
  location = response.headers['location'].first
17
17
 
18
- if location =~ /:\/\//
18
+ if location =~ %r{://}
19
19
  url = location
20
20
  else
21
21
  url = URI.join(url, location).to_s
@@ -37,7 +37,6 @@ module Pod
37
37
  #
38
38
  def self.from_file(path)
39
39
  return nil unless path.exist?
40
- require 'yaml'
41
40
  hash = YAMLHelper.load_file(path)
42
41
  unless hash && hash.is_a?(Hash)
43
42
  raise Informative, "Invalid Lockfile in `#{path}`"
@@ -20,6 +20,8 @@ module Pod
20
20
  # @!group Configuration
21
21
  #-----------------------------------------------------------------------#
22
22
 
23
+ # rubocop:disable Style/TrivialAccessors
24
+
23
25
  # Allows to specify an optional callback which is called before
24
26
  # analysing every spec. Suitable for UI.
25
27
  #
@@ -33,6 +35,8 @@ module Pod
33
35
  @pre_check_callback = block
34
36
  end
35
37
 
38
+ # rubocop:enable Style/TrivialAccessors
39
+
36
40
  public
37
41
 
38
42
  # @!group Actions
@@ -1,3 +1,5 @@
1
+ require 'yaml'
2
+
1
3
  module Pod
2
4
  # Converts objects to their YAML representation.
3
5
  #
@@ -92,7 +94,7 @@ module Pod
92
94
  #
93
95
  def process_according_to_class(value, hash_keys_hint = nil)
94
96
  case value
95
- when String then value
97
+ when String then YAML.dump(value).sub(/^---/, '').sub(/[.]{3}\s*$/, '').strip
96
98
  when Symbol then ":#{value}"
97
99
  when TrueClass then 'true'
98
100
  when FalseClass then 'false'
@@ -29,7 +29,7 @@ module Pod
29
29
  autoload :Source, 'cocoapods-core/source'
30
30
  autoload :Specification, 'cocoapods-core/specification'
31
31
  autoload :StandardError, 'cocoapods-core/standard_error'
32
- autoload :YAMLHelper, 'cocoapods-core/yaml_helper'
32
+ autoload :YAMLHelper, 'cocoapods-core/yaml_helper'
33
33
 
34
34
  # TODO: Fix
35
35
  #
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.36.0
4
+ version: 0.36.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-03-11 00:00:00.000000000 Z
12
+ date: 2015-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport