cocoapods-core 0.31.0 → 0.31.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: ceeff4f914a4705055b52ebcc1e07bcf0431b990
4
- data.tar.gz: 9632eb65076f58e3375400c3b8e91a4a18fb9c70
3
+ metadata.gz: 1def4418127d244ff521d4f76a14445fb4a559c2
4
+ data.tar.gz: 50da728c79fd04ece560821d954b689b7e3f5053
5
5
  SHA512:
6
- metadata.gz: b9ea545887ac05ffdd60bb809ee669ad7f9f78fbe17a0abcf0c565560cf6d2e9f1df96f29efa949313828d0a396f0ea9e9076069b6f80a2be9ff6765e27d47b7
7
- data.tar.gz: a87951552b1199105f7e5d4bfab649853ce92aff5ed117e48082b8389e4c9bc0a7f2f3d841459d2e79c0811399fc10c926107ef5ecbe3e5e5e1ed0145a8f105f
6
+ metadata.gz: 4d2b45626d5775c887f71646a6b565fb21691b7a1f9e0882774aa02fa683c5ffe7c298bd621c1f371494a61d5a57e3745872f8b8a47062ebcd15b782c01f4736
7
+ data.tar.gz: 475271274e02a01b7130b3168d52c19d6a9ff4b3e855c62faff403dd079d83d90134d3e2f81328e7dedddcc8c448a251651e1e59f200fe6a6c8bff41aa15a87c
@@ -2,5 +2,5 @@ module Pod
2
2
 
3
3
  # The version of the cocoapods-core.
4
4
  #
5
- CORE_VERSION = '0.31.0' unless defined? Pod::CORE_VERSION
5
+ CORE_VERSION = '0.31.1' unless defined? Pod::CORE_VERSION
6
6
  end
@@ -347,7 +347,10 @@ module Pod
347
347
  # @return [String] the prefix header.
348
348
  #
349
349
  def _prepare_prefix_header_contents(value)
350
- value.is_a?(Array) ? value * "\n" : value
350
+ if value
351
+ value = value.join("\n") if value.is_a?(Array)
352
+ value.strip_heredoc.chomp
353
+ end
351
354
  end
352
355
 
353
356
  # Ensures that the file patterns of the resource bundles are contained in
@@ -333,6 +333,7 @@ module Pod
333
333
  require 'uri'
334
334
 
335
335
  if git = s[:git]
336
+ return unless git =~ /^#{URI.regexp}$/
336
337
  git_uri = URI.parse(git)
337
338
  if git_uri.host == 'github.com' || git_uri.host == 'gist.github.com'
338
339
  unless git.end_with?('.git')
@@ -121,7 +121,7 @@ module Pod
121
121
  #
122
122
  def description
123
123
  description = attributes_hash["description"]
124
- description.strip_heredoc if description
124
+ description.strip_heredoc.chomp if description
125
125
  end
126
126
 
127
127
  # @return [Array<String>] The list of the URL for the screenshots of
@@ -143,7 +143,8 @@ module Pod
143
143
  # @return [String, Nil] The prepare command of the Pod if specified.
144
144
  #
145
145
  def prepare_command
146
- attributes_hash["prepare_command"]
146
+ command = attributes_hash["prepare_command"]
147
+ command.strip_heredoc.chomp if command
147
148
  end
148
149
 
149
150
  #---------------------------------------------------------------------#
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.31.0
4
+ version: 0.31.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: 2014-03-31 00:00:00.000000000 Z
12
+ date: 2014-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport