cocoapods-core 0.30.0 → 0.31.0

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: c825fb07fe0a09f2aff4865eee906d366068abe9
4
- data.tar.gz: f15b33a4eb444034bc3165faee0080cec4cc7bfc
3
+ metadata.gz: ceeff4f914a4705055b52ebcc1e07bcf0431b990
4
+ data.tar.gz: 9632eb65076f58e3375400c3b8e91a4a18fb9c70
5
5
  SHA512:
6
- metadata.gz: ed161124fa1f352f2914afeb6eb5ce6fb290eb3fde1ecdb2aa0da7de163b56ac329447bdfc721813d10f458374fa7a44dfd43b8f7920b6553f5e46b8e40f8b50
7
- data.tar.gz: c23cd0cbfa5a2ece6550c30755222d9d9981b18f0ed89a8957b81333771c598c3a271031dfa682074e695d8b99ca2bfb9541a99ecdd1bd9e1bfb978450ccb1af
6
+ metadata.gz: b9ea545887ac05ffdd60bb809ee669ad7f9f78fbe17a0abcf0c565560cf6d2e9f1df96f29efa949313828d0a396f0ea9e9076069b6f80a2be9ff6765e27d47b7
7
+ data.tar.gz: a87951552b1199105f7e5d4bfab649853ce92aff5ed117e48082b8389e4c9bc0a7f2f3d841459d2e79c0811399fc10c926107ef5ecbe3e5e5e1ed0145a8f105f
@@ -2,5 +2,5 @@ module Pod
2
2
 
3
3
  # The version of the cocoapods-core.
4
4
  #
5
- CORE_VERSION = '0.30.0' unless defined? Pod::CORE_VERSION
5
+ CORE_VERSION = '0.31.0' unless defined? Pod::CORE_VERSION
6
6
  end
@@ -533,7 +533,7 @@ module Pod
533
533
  #
534
534
  # ---
535
535
  #
536
- # Dependencies can specify versions requirements. The use of the approximate
536
+ # Dependencies can specify versions requirements. The use of the optimistic
537
537
  # version indicator `~>` is recommended because it provides good
538
538
  # control over the version without being too restrictive. For example,
539
539
  # `~> 1.0.1` is equivalent to `>= 1.0.1` combined with `< 1.1`. Similarly,
@@ -312,10 +312,9 @@ module Pod
312
312
  if commit && commit.downcase =~ /head/
313
313
  error 'The commit of a Git source cannot be `HEAD`.'
314
314
  end
315
- if tag && !tag.include?(version)
315
+ if tag && !tag.to_s.include?(version)
316
316
  warning 'The version should be included in the Git tag.'
317
317
  end
318
-
319
318
  if version == '0.0.1'
320
319
  if commit.nil? && tag.nil?
321
320
  error 'Git sources should specify either a commit or a tag.'
@@ -331,18 +330,15 @@ module Pod
331
330
  # Performs validations related to github sources.
332
331
  #
333
332
  def perform_github_source_checks(s)
334
- supported_domains = [
335
- 'https://github.com',
336
- 'https://gist.github.com',
337
- ]
333
+ require 'uri'
338
334
 
339
335
  if git = s[:git]
340
- is_github = git.include?('github.com')
341
- if is_github
336
+ git_uri = URI.parse(git)
337
+ if git_uri.host == 'github.com' || git_uri.host == 'gist.github.com'
342
338
  unless git.end_with?('.git')
343
339
  warning "Github repositories should end in `.git`."
344
340
  end
345
- unless supported_domains.find { |domain| git.start_with?(domain) }
341
+ unless git_uri.scheme == 'https'
346
342
  warning "Github repositories should use `https` link."
347
343
  end
348
344
  end
@@ -386,7 +382,7 @@ module Pod
386
382
  # @todo remove in 0.18 and switch the default to true.
387
383
  #
388
384
  def check_tmp_arc_not_nil
389
- if consumer.requires_arc.nil?
385
+ if consumer.spec.attributes_hash["requires_arc"].nil?
390
386
  warning "A value for `requires_arc` should be specified until the " \
391
387
  "migration to a `true` default."
392
388
  end
@@ -131,7 +131,7 @@ module Pod::Vendor
131
131
  # specify your dependency as ">= 2.0.0" then, you're good, right? What
132
132
  # happens if fnord 3.0 comes out and it isn't backwards compatible
133
133
  # with 2.y.z? Your stuff will break as a result of using ">=". The
134
- # better route is to specify your dependency with a "spermy" version
134
+ # better route is to specify your dependency with an "optimistic" version
135
135
  # specifier. They're a tad confusing, so here is how the dependency
136
136
  # specifiers work:
137
137
  #
@@ -288,7 +288,7 @@ module Pod::Vendor
288
288
  ##
289
289
  # A recommended version for use with a ~> Requirement.
290
290
 
291
- def spermy_recommendation
291
+ def optimistic_recommendation
292
292
  segments = self.segments.dup
293
293
 
294
294
  segments.pop while segments.any? { |s| String === s }
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.30.0
4
+ version: 0.31.0
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-28 00:00:00.000000000 Z
12
+ date: 2014-03-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport