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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceeff4f914a4705055b52ebcc1e07bcf0431b990
|
4
|
+
data.tar.gz: 9632eb65076f58e3375400c3b8e91a4a18fb9c70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9ea545887ac05ffdd60bb809ee669ad7f9f78fbe17a0abcf0c565560cf6d2e9f1df96f29efa949313828d0a396f0ea9e9076069b6f80a2be9ff6765e27d47b7
|
7
|
+
data.tar.gz: a87951552b1199105f7e5d4bfab649853ce92aff5ed117e48082b8389e4c9bc0a7f2f3d841459d2e79c0811399fc10c926107ef5ecbe3e5e5e1ed0145a8f105f
|
@@ -533,7 +533,7 @@ module Pod
|
|
533
533
|
#
|
534
534
|
# ---
|
535
535
|
#
|
536
|
-
# Dependencies can specify versions requirements. The use of the
|
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
|
-
|
335
|
-
'https://github.com',
|
336
|
-
'https://gist.github.com',
|
337
|
-
]
|
333
|
+
require 'uri'
|
338
334
|
|
339
335
|
if git = s[:git]
|
340
|
-
|
341
|
-
if
|
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
|
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
|
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
|
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.
|
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-
|
12
|
+
date: 2014-03-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|