cocoapods-core 0.29.0 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/cocoapods-core/dependency.rb +6 -4
- data/lib/cocoapods-core/gem_version.rb +1 -1
- data/lib/cocoapods-core/github.rb +1 -1
- data/lib/cocoapods-core/lockfile.rb +3 -3
- data/lib/cocoapods-core/podfile.rb +3 -3
- data/lib/cocoapods-core/podfile/dsl.rb +13 -9
- data/lib/cocoapods-core/podfile/target_definition.rb +2 -2
- data/lib/cocoapods-core/specification.rb +1 -1
- data/lib/cocoapods-core/specification/consumer.rb +1 -1
- data/lib/cocoapods-core/specification/dsl.rb +19 -6
- data/lib/cocoapods-core/specification/dsl/attribute.rb +3 -3
- data/lib/cocoapods-core/specification/dsl/deprecations.rb +11 -11
- data/lib/cocoapods-core/specification/linter.rb +7 -7
- data/lib/cocoapods-core/specification/root_attribute_accessors.rb +6 -0
- data/lib/cocoapods-core/specification/set.rb +2 -2
- data/lib/cocoapods-core/vendor/requirement.rb +4 -4
- data/lib/cocoapods-core/vendor/version.rb +1 -1
- metadata +26 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c825fb07fe0a09f2aff4865eee906d366068abe9
|
4
|
+
data.tar.gz: f15b33a4eb444034bc3165faee0080cec4cc7bfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed161124fa1f352f2914afeb6eb5ce6fb290eb3fde1ecdb2aa0da7de163b56ac329447bdfc721813d10f458374fa7a44dfd43b8f7920b6553f5e46b8e40f8b50
|
7
|
+
data.tar.gz: c23cd0cbfa5a2ece6550c30755222d9d9981b18f0ed89a8957b81333771c598c3a271031dfa682074e695d8b99ca2bfb9541a99ecdd1bd9e1bfb978450ccb1af
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# CocoaPods Core
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/CocoaPods/Core.
|
4
|
-
[![Coverage Status](https://
|
5
|
-
[![Code Climate](https://
|
3
|
+
[![Build Status](https://travis-ci.org/CocoaPods/Core.svg?branch=master)](https://travis-ci.org/CocoaPods/Core)
|
4
|
+
[![Coverage Status](https://img.shields.io/coveralls/CocoaPods/Core.svg)](https://coveralls.io/r/CocoaPods/Core)
|
5
|
+
[![Code Climate](https://img.shields.io/codeclimate/github/CocoaPods/Core.svg)](https://codeclimate.com/github/CocoaPods/Core)
|
6
6
|
|
7
7
|
The CocoaPods-Core gem provides support to work with the models of CocoaPods.
|
8
8
|
It is intended to be used in place of the CocoaPods when the installation
|
@@ -121,13 +121,15 @@ module Pod
|
|
121
121
|
# @return [Bool] whether the dependency points to an external source.
|
122
122
|
#
|
123
123
|
def external?
|
124
|
-
|
124
|
+
!@external_source.nil?
|
125
125
|
end
|
126
126
|
|
127
127
|
# @return [Bool] whether the dependency points to a local path.
|
128
128
|
#
|
129
129
|
def local?
|
130
|
-
|
130
|
+
if external_source
|
131
|
+
!(external_source[:path] || external_source[:local]).nil?
|
132
|
+
end
|
131
133
|
end
|
132
134
|
|
133
135
|
# Creates a new dependency with the name of the top level spec and the same
|
@@ -333,7 +335,7 @@ module Pod
|
|
333
335
|
# @return [String] a string representation suitable for debugging.
|
334
336
|
#
|
335
337
|
def inspect
|
336
|
-
"<#{self.class} name=#{name} requirements=#{requirement
|
338
|
+
"<#{self.class} name=#{name} requirements=#{requirement} " \
|
337
339
|
"external_source=#{external_source || 'nil'}>"
|
338
340
|
end
|
339
341
|
|
@@ -370,7 +372,7 @@ module Pod
|
|
370
372
|
elsif source.key?(:local)
|
371
373
|
desc = "`#{source[:local]}`"
|
372
374
|
else
|
373
|
-
desc = "`#{source
|
375
|
+
desc = "`#{source}`"
|
374
376
|
end
|
375
377
|
"from #{desc}"
|
376
378
|
end
|
@@ -103,7 +103,7 @@ module Pod
|
|
103
103
|
# @return [Nil] if the given url is not a valid github repo url.
|
104
104
|
#
|
105
105
|
def self.repo_id_from_url(url)
|
106
|
-
url[%r
|
106
|
+
url[%r{github.com/([^/\.]*/[^/\.]*)\.*}, 1]
|
107
107
|
end
|
108
108
|
|
109
109
|
# Performs a get request with the given URL.
|
@@ -40,7 +40,7 @@ module Pod
|
|
40
40
|
def self.from_file(path)
|
41
41
|
return nil unless path.exist?
|
42
42
|
require 'yaml'
|
43
|
-
hash =
|
43
|
+
hash = File.open(path) { |f| YAML.load(f) }
|
44
44
|
unless hash && hash.is_a?(Hash)
|
45
45
|
raise Informative, "Invalid Lockfile in `#{path}`"
|
46
46
|
end
|
@@ -310,7 +310,7 @@ module Pod
|
|
310
310
|
"DEPENDENCIES",
|
311
311
|
"EXTERNAL SOURCES",
|
312
312
|
"SPEC CHECKSUMS",
|
313
|
-
"COCOAPODS"
|
313
|
+
"COCOAPODS",
|
314
314
|
]
|
315
315
|
YAMLConverter.convert_hash(to_hash, keys_hint, "\n\n")
|
316
316
|
end
|
@@ -342,7 +342,7 @@ module Pod
|
|
342
342
|
'DEPENDENCIES' => generate_dependencies_data(podfile),
|
343
343
|
'EXTERNAL SOURCES' => generate_external_sources_data(podfile),
|
344
344
|
'SPEC CHECKSUMS' => generate_checksums(specs),
|
345
|
-
'COCOAPODS' => CORE_VERSION
|
345
|
+
'COCOAPODS' => CORE_VERSION,
|
346
346
|
}
|
347
347
|
Lockfile.new(hash)
|
348
348
|
end
|
@@ -20,7 +20,7 @@ module Pod
|
|
20
20
|
|
21
21
|
#-------------------------------------------------------------------------#
|
22
22
|
|
23
|
-
class
|
23
|
+
class StandardError < ::StandardError; end
|
24
24
|
|
25
25
|
#-------------------------------------------------------------------------#
|
26
26
|
|
@@ -172,12 +172,12 @@ module Pod
|
|
172
172
|
|
173
173
|
# @return [Array] The keys used by the hash representation of the Podfile.
|
174
174
|
#
|
175
|
-
HASH_KEYS = %w
|
175
|
+
HASH_KEYS = %w(
|
176
176
|
target_definitions
|
177
177
|
workspace
|
178
178
|
generate_bridge_support
|
179
179
|
set_arc_compatibility_flag
|
180
|
-
|
180
|
+
).freeze
|
181
181
|
|
182
182
|
# @return [Hash] The hash representation of the Podfile.
|
183
183
|
#
|
@@ -19,7 +19,7 @@ module Pod
|
|
19
19
|
# platform :ios, '6.0'
|
20
20
|
# inhibit_all_warnings!
|
21
21
|
#
|
22
|
-
# xcodeproj
|
22
|
+
# xcodeproj 'MyProject'
|
23
23
|
#
|
24
24
|
# pod 'ObjectiveSugar', '~> 0.5'
|
25
25
|
#
|
@@ -64,11 +64,15 @@ module Pod
|
|
64
64
|
# Besides no version, or a specific one, it is also possible to use
|
65
65
|
# operators:
|
66
66
|
#
|
67
|
-
# * `> 0.1` Any version higher than 0.1
|
68
|
-
# * `>= 0.1` Version 0.1 and any higher version
|
69
|
-
# * `< 0.1` Any version lower than 0.1
|
70
|
-
# * `<= 0.1` Version 0.1 and any lower version
|
71
|
-
# * `~> 0.1.2` Version 0.1.2 and the versions up to 0.2, not including 0.2
|
67
|
+
# * `> 0.1` Any version higher than 0.1.
|
68
|
+
# * `>= 0.1` Version 0.1 and any higher version.
|
69
|
+
# * `< 0.1` Any version lower than 0.1.
|
70
|
+
# * `<= 0.1` Version 0.1 and any lower version.
|
71
|
+
# * `~> 0.1.2` Version 0.1.2 and the versions up to 0.2, not including 0.2.
|
72
|
+
# This operator works based on _the last component_ that you
|
73
|
+
# specify in your version requirement. The example is equal to
|
74
|
+
# `>= 0.1.2` combined with `< 0.2.0` and will always match the
|
75
|
+
# latest known version matching your requirements.
|
72
76
|
#
|
73
77
|
# A list of version requirements can be specified for even more fine
|
74
78
|
# grained control.
|
@@ -318,16 +322,16 @@ module Pod
|
|
318
322
|
#
|
319
323
|
# # Look for target to link with in an Xcode project called
|
320
324
|
# # `MyProject.xcodeproj`.
|
321
|
-
# xcodeproj
|
325
|
+
# xcodeproj 'MyProject'
|
322
326
|
#
|
323
327
|
# target :test do
|
324
328
|
# # This Pods library links with a target in another project.
|
325
|
-
# xcodeproj
|
329
|
+
# xcodeproj 'TestProject'
|
326
330
|
# end
|
327
331
|
#
|
328
332
|
# @example Using custom build configurations
|
329
333
|
#
|
330
|
-
# xcodeproj
|
334
|
+
# xcodeproj 'TestProject', 'Mac App Store' => :release, 'Test' => :debug
|
331
335
|
#
|
332
336
|
#
|
333
337
|
# @return [void]
|
@@ -434,7 +434,7 @@ module Pod
|
|
434
434
|
# @return [Array] The keys used by the hash representation of the
|
435
435
|
# target definition.
|
436
436
|
#
|
437
|
-
HASH_KEYS = %w
|
437
|
+
HASH_KEYS = %w(
|
438
438
|
name
|
439
439
|
platform
|
440
440
|
podspecs
|
@@ -446,7 +446,7 @@ module Pod
|
|
446
446
|
build_configurations
|
447
447
|
dependencies
|
448
448
|
children
|
449
|
-
|
449
|
+
).freeze
|
450
450
|
|
451
451
|
# @return [Hash] The hash representation of the target definition.
|
452
452
|
#
|
@@ -37,7 +37,7 @@ module Pod
|
|
37
37
|
@platform_name = platform.is_a?(Symbol) ? platform : platform.name
|
38
38
|
|
39
39
|
unless spec.supported_on_platform?(platform)
|
40
|
-
raise StandardError, "#{
|
40
|
+
raise StandardError, "#{self} is not compatible with #{platform}."
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
@@ -20,7 +20,7 @@ module Pod
|
|
20
20
|
# ---
|
21
21
|
#
|
22
22
|
# A stub specification file can be generated by the [pod spec
|
23
|
-
# create](commands.html#
|
23
|
+
# create](http://guides.cocoapods.org/terminal/commands.html#pod_spec_create) command.
|
24
24
|
#
|
25
25
|
# ---
|
26
26
|
#
|
@@ -156,6 +156,19 @@ module Pod
|
|
156
156
|
#
|
157
157
|
root_attribute :social_media_url
|
158
158
|
|
159
|
+
# @!method docset_url=(docset_url)
|
160
|
+
#
|
161
|
+
# The URL for the docset for the Pod
|
162
|
+
#
|
163
|
+
# @example
|
164
|
+
#
|
165
|
+
# spec.docset_url = 'http://example.org/KFData/1.0.0/xcode-docset.atom'
|
166
|
+
#
|
167
|
+
# @param [String] docset_url
|
168
|
+
# the docset URL.
|
169
|
+
#
|
170
|
+
root_attribute :docset_url
|
171
|
+
|
159
172
|
#------------------#
|
160
173
|
|
161
174
|
# The keys accepted by the license attribute.
|
@@ -229,7 +242,7 @@ module Pod
|
|
229
242
|
:svn => [:folder, :tag, :revision],
|
230
243
|
:hg => [:revision],
|
231
244
|
:http => nil,
|
232
|
-
:path => nil
|
245
|
+
:path => nil,
|
233
246
|
}.freeze
|
234
247
|
|
235
248
|
# @!method source=(source)
|
@@ -740,7 +753,7 @@ module Pod
|
|
740
753
|
# The path to the prefix header file.
|
741
754
|
#
|
742
755
|
attribute :prefix_header_file, {
|
743
|
-
:inherited => true
|
756
|
+
:inherited => true,
|
744
757
|
}
|
745
758
|
|
746
759
|
#------------------#
|
@@ -758,7 +771,7 @@ module Pod
|
|
758
771
|
# the headers directory.
|
759
772
|
#
|
760
773
|
attribute :header_dir, {
|
761
|
-
:inherited => true
|
774
|
+
:inherited => true,
|
762
775
|
}
|
763
776
|
|
764
777
|
#------------------#
|
@@ -776,7 +789,7 @@ module Pod
|
|
776
789
|
# the directory from where to preserve the headers namespacing.
|
777
790
|
#
|
778
791
|
attribute :header_mappings_dir, {
|
779
|
-
:inherited => true
|
792
|
+
:inherited => true,
|
780
793
|
}
|
781
794
|
|
782
795
|
#-----------------------------------------------------------------------#
|
@@ -1089,7 +1102,7 @@ module Pod
|
|
1089
1102
|
attribute :preserve_paths, {
|
1090
1103
|
:container => Array,
|
1091
1104
|
:file_patterns => true,
|
1092
|
-
:singularize => true
|
1105
|
+
:singularize => true,
|
1093
1106
|
}
|
1094
1107
|
|
1095
1108
|
#-----------------------------------------------------------------------#
|
@@ -45,7 +45,7 @@ module Pod
|
|
45
45
|
@types = options.delete(:types) { [String] }
|
46
46
|
|
47
47
|
unless options.empty?
|
48
|
-
raise StandardError, "Unrecognized options: #{options} for #{
|
48
|
+
raise StandardError, "Unrecognized options: #{options} for #{self}"
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
@@ -195,7 +195,7 @@ module Pod
|
|
195
195
|
return if value.nil?
|
196
196
|
unless supported_types.any? { |klass| value.class == klass }
|
197
197
|
raise StandardError, "Non acceptable type `#{value.class}` for "\
|
198
|
-
"#{
|
198
|
+
"#{self}. Allowed values: `#{types.inspect}`"
|
199
199
|
end
|
200
200
|
end
|
201
201
|
|
@@ -217,7 +217,7 @@ module Pod
|
|
217
217
|
value.keys.each do |key|
|
218
218
|
unless allowed_keys.include?(key)
|
219
219
|
raise StandardError, "Unknown key `#{key}` for "\
|
220
|
-
"#{
|
220
|
+
"#{self}. Allowed keys: `#{allowed_keys.inspect}`"
|
221
221
|
end
|
222
222
|
end
|
223
223
|
end
|
@@ -8,44 +8,44 @@ module Pod
|
|
8
8
|
|
9
9
|
def preferred_dependency=(name)
|
10
10
|
self.default_subspec = name
|
11
|
-
CoreUI.warn "[#{
|
11
|
+
CoreUI.warn "[#{self}] `preferred_dependency` has been renamed "\
|
12
12
|
"to `default_subspec`."
|
13
13
|
end
|
14
14
|
|
15
15
|
def singleton_method_added(method)
|
16
16
|
if method == :pre_install
|
17
|
-
CoreUI.warn "[#{
|
17
|
+
CoreUI.warn "[#{self}] The use of `#{method}` by overriding " \
|
18
18
|
"the method is deprecated."
|
19
19
|
@pre_install_callback = Proc.new do |pod, target_definition|
|
20
20
|
pre_install(pod, target_definition)
|
21
21
|
end
|
22
22
|
|
23
23
|
elsif method == :post_install
|
24
|
-
CoreUI.warn "[#{
|
24
|
+
CoreUI.warn "[#{self}] The use of `#{method}` by overriding the " \
|
25
25
|
"method is deprecated."
|
26
26
|
@post_install_callback = Proc.new do |target_installer|
|
27
27
|
post_install(target_installer)
|
28
28
|
end
|
29
29
|
|
30
30
|
elsif method == :header_mappings
|
31
|
-
raise Informative, "[#{
|
31
|
+
raise Informative, "[#{self}] The use of the `header_mappings` " \
|
32
32
|
"hook has been deprecated.\n Use the `header_dir` and the " \
|
33
33
|
"`header_mappings_dir` attributes."
|
34
34
|
|
35
35
|
elsif method == :copy_header_mapping
|
36
|
-
raise Informative, "[#{
|
36
|
+
raise Informative, "[#{self}] The use of the " \
|
37
37
|
"`copy_header_mapping` hook has been deprecated.\nUse" \
|
38
38
|
"the `header_dir` and the `header_mappings_dir` attributes."
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
42
|
def documentation=(value)
|
43
|
-
CoreUI.warn "[#{
|
43
|
+
CoreUI.warn "[#{self}] The `documentation` DSL directive of the " \
|
44
44
|
"podspec format has been deprecated."
|
45
45
|
end
|
46
46
|
|
47
47
|
def clean_paths=(value)
|
48
|
-
raise Informative, "[#{
|
48
|
+
raise Informative, "[#{self}] Clean paths are deprecated. " \
|
49
49
|
"CocoaPods now cleans unused files by default. Use the " \
|
50
50
|
"`preserve_paths` attribute if needed."
|
51
51
|
end
|
@@ -53,12 +53,12 @@ module Pod
|
|
53
53
|
DEPRECATED_METHODS = [
|
54
54
|
:part_of_dependency=,
|
55
55
|
:part_of=,
|
56
|
-
:exclude_header_search_paths
|
56
|
+
:exclude_header_search_paths=,
|
57
57
|
]
|
58
58
|
|
59
59
|
DEPRECATED_METHODS.each do |method|
|
60
60
|
define_method method do |value|
|
61
|
-
raise Informative, "[#{
|
61
|
+
raise Informative, "[#{self}] Attribute "\
|
62
62
|
"`#{method.to_s[0..-2]}` has been deprecated."
|
63
63
|
end
|
64
64
|
end
|
@@ -93,7 +93,7 @@ module Pod
|
|
93
93
|
# end
|
94
94
|
#
|
95
95
|
def pre_install(&block)
|
96
|
-
CoreUI.warn "[#{
|
96
|
+
CoreUI.warn "[#{self}] The pre install hook of the specification " \
|
97
97
|
"DSL has been deprecated, use the `resource_bundles` or the " \
|
98
98
|
"`prepare_command` attributes."
|
99
99
|
@pre_install_callback = block
|
@@ -123,7 +123,7 @@ module Pod
|
|
123
123
|
# end
|
124
124
|
#
|
125
125
|
def post_install(&block)
|
126
|
-
CoreUI.warn "[#{
|
126
|
+
CoreUI.warn "[#{self}] The post install hook of the specification " \
|
127
127
|
"DSL has been deprecated, use the `resource_bundles` or the " \
|
128
128
|
"`prepare_command` attributes."
|
129
129
|
@post_install_callback = block
|
@@ -205,7 +205,7 @@ module Pod
|
|
205
205
|
if spec.name && file
|
206
206
|
acceptable_names = [
|
207
207
|
spec.root.name + '.podspec',
|
208
|
-
spec.root.name + '.podspec.json'
|
208
|
+
spec.root.name + '.podspec.json',
|
209
209
|
]
|
210
210
|
names_match = acceptable_names.include?(file.basename.to_s)
|
211
211
|
unless names_match
|
@@ -255,7 +255,7 @@ module Pod
|
|
255
255
|
# Performs validations related to the `homepage` attribute.
|
256
256
|
#
|
257
257
|
def _validate_homepage(h)
|
258
|
-
if h =~ %r
|
258
|
+
if h =~ %r{http://EXAMPLE}
|
259
259
|
warning "The homepage has not been updated from default"
|
260
260
|
end
|
261
261
|
end
|
@@ -306,8 +306,8 @@ module Pod
|
|
306
306
|
tag, commit = s.values_at(:tag, :commit)
|
307
307
|
version = spec.version.to_s
|
308
308
|
|
309
|
-
if git =~ %r
|
310
|
-
error "
|
309
|
+
if git =~ %r{http://EXAMPLE}
|
310
|
+
error "The Git source still contains the example URL."
|
311
311
|
end
|
312
312
|
if commit && commit.downcase =~ /head/
|
313
313
|
error 'The commit of a Git source cannot be `HEAD`.'
|
@@ -395,13 +395,13 @@ module Pod
|
|
395
395
|
# Check empty subspec attributes
|
396
396
|
#
|
397
397
|
def check_if_spec_is_empty
|
398
|
-
methods = %w
|
398
|
+
methods = %w(source_files resources preserve_paths dependencies vendored_libraries vendored_frameworks)
|
399
399
|
empty_patterns = methods.all? { |m| consumer.send(m).empty? }
|
400
400
|
empty = empty_patterns && consumer.spec.subspecs.empty?
|
401
401
|
if empty
|
402
402
|
error "The #{consumer.spec} spec is empty (no source files, " \
|
403
|
-
"resources, preserve paths,
|
404
|
-
"
|
403
|
+
"resources, preserve paths, vendored libraries, " \
|
404
|
+
"vendored frameworks, dependencies or subspecs)."
|
405
405
|
end
|
406
406
|
end
|
407
407
|
|
@@ -73,6 +73,12 @@ module Pod
|
|
73
73
|
attributes_hash["social_media_url"]
|
74
74
|
end
|
75
75
|
|
76
|
+
# @return [String] The docset URL.
|
77
|
+
#
|
78
|
+
def docset_url
|
79
|
+
attributes_hash["docset_url"]
|
80
|
+
end
|
81
|
+
|
76
82
|
# @return [Hash] A hash containing the license information of the Pod.
|
77
83
|
#
|
78
84
|
# @note The indentation is stripped from the license text.
|
@@ -66,7 +66,7 @@ module Pod
|
|
66
66
|
message = "Unable to satisfy the following requirements:\n"
|
67
67
|
dependencies_by_requirer_name.each do |name, dependencies|
|
68
68
|
dependencies.each do |dep|
|
69
|
-
message << "- `#{dep
|
69
|
+
message << "- `#{dep}` required by `#{name}`"
|
70
70
|
end
|
71
71
|
end
|
72
72
|
raise Informative, message
|
@@ -188,7 +188,7 @@ module Pod
|
|
188
188
|
'name' => name,
|
189
189
|
'versions' => versions,
|
190
190
|
'highest_version' => highest_version.to_s,
|
191
|
-
'highest_version_spec' => highest_version_spec_path.to_s
|
191
|
+
'highest_version_spec' => highest_version_spec_path.to_s,
|
192
192
|
}
|
193
193
|
end
|
194
194
|
|
@@ -137,7 +137,7 @@ module Pod::Vendor
|
|
137
137
|
instance_variable_set "@#{ivar}", val
|
138
138
|
end
|
139
139
|
|
140
|
-
|
140
|
+
fix_syck_default_key_in_requirements
|
141
141
|
end
|
142
142
|
|
143
143
|
def init_with(coder) # :nodoc:
|
@@ -162,8 +162,8 @@ module Pod::Vendor
|
|
162
162
|
requirements.all? { |op, rv| (OPS[op] || OPS["="]).call version, rv }
|
163
163
|
end
|
164
164
|
|
165
|
-
|
166
|
-
|
165
|
+
alias_method :===, :satisfied_by?
|
166
|
+
alias_method :=~, :satisfied_by?
|
167
167
|
|
168
168
|
##
|
169
169
|
# True if the requirement will not always match the latest version.
|
@@ -171,7 +171,7 @@ module Pod::Vendor
|
|
171
171
|
def specific?
|
172
172
|
return true if @requirements.length > 1 # GIGO, > 1, > 2 is silly
|
173
173
|
|
174
|
-
not %w
|
174
|
+
not %w(> >=).include? @requirements.first.first # grab the operator
|
175
175
|
end
|
176
176
|
|
177
177
|
def to_s # :nodoc:
|
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.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
@@ -9,82 +9,82 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-03-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 3.2.15
|
21
|
-
- - <
|
21
|
+
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: '4'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
|
-
- -
|
28
|
+
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
30
|
version: 3.2.15
|
31
|
-
- - <
|
31
|
+
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '4'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: nap
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.5'
|
41
41
|
type: :runtime
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0.5'
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: json_pure
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.8'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '1.8'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: fuzzy_match
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 2.0.4
|
69
69
|
type: :runtime
|
70
70
|
prerelease: false
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 2.0.4
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: bacon
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '1.1'
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '1.1'
|
90
90
|
description: |-
|
@@ -98,45 +98,45 @@ executables: []
|
|
98
98
|
extensions: []
|
99
99
|
extra_rdoc_files: []
|
100
100
|
files:
|
101
|
+
- LICENSE
|
102
|
+
- README.md
|
103
|
+
- lib/cocoapods-core.rb
|
101
104
|
- lib/cocoapods-core/core_ui.rb
|
102
105
|
- lib/cocoapods-core/dependency.rb
|
103
106
|
- lib/cocoapods-core/gem_version.rb
|
104
107
|
- lib/cocoapods-core/github.rb
|
105
108
|
- lib/cocoapods-core/lockfile.rb
|
106
109
|
- lib/cocoapods-core/platform.rb
|
110
|
+
- lib/cocoapods-core/podfile.rb
|
107
111
|
- lib/cocoapods-core/podfile/dsl.rb
|
108
112
|
- lib/cocoapods-core/podfile/target_definition.rb
|
109
|
-
- lib/cocoapods-core/podfile.rb
|
110
113
|
- lib/cocoapods-core/requirement.rb
|
114
|
+
- lib/cocoapods-core/source.rb
|
111
115
|
- lib/cocoapods-core/source/abstract_data_provider.rb
|
112
116
|
- lib/cocoapods-core/source/acceptor.rb
|
113
117
|
- lib/cocoapods-core/source/aggregate.rb
|
114
118
|
- lib/cocoapods-core/source/file_system_data_provider.rb
|
115
119
|
- lib/cocoapods-core/source/github_data_provider.rb
|
116
120
|
- lib/cocoapods-core/source/health_reporter.rb
|
117
|
-
- lib/cocoapods-core/
|
121
|
+
- lib/cocoapods-core/specification.rb
|
118
122
|
- lib/cocoapods-core/specification/consumer.rb
|
123
|
+
- lib/cocoapods-core/specification/dsl.rb
|
119
124
|
- lib/cocoapods-core/specification/dsl/attribute.rb
|
120
125
|
- lib/cocoapods-core/specification/dsl/attribute_support.rb
|
121
126
|
- lib/cocoapods-core/specification/dsl/deprecations.rb
|
122
127
|
- lib/cocoapods-core/specification/dsl/platform_proxy.rb
|
123
|
-
- lib/cocoapods-core/specification/dsl.rb
|
124
128
|
- lib/cocoapods-core/specification/json.rb
|
125
129
|
- lib/cocoapods-core/specification/linter.rb
|
126
130
|
- lib/cocoapods-core/specification/root_attribute_accessors.rb
|
131
|
+
- lib/cocoapods-core/specification/set.rb
|
127
132
|
- lib/cocoapods-core/specification/set/presenter.rb
|
128
133
|
- lib/cocoapods-core/specification/set/statistics.rb
|
129
|
-
- lib/cocoapods-core/specification/set.rb
|
130
|
-
- lib/cocoapods-core/specification.rb
|
131
134
|
- lib/cocoapods-core/standard_error.rb
|
135
|
+
- lib/cocoapods-core/vendor.rb
|
132
136
|
- lib/cocoapods-core/vendor/requirement.rb
|
133
137
|
- lib/cocoapods-core/vendor/version.rb
|
134
|
-
- lib/cocoapods-core/vendor.rb
|
135
138
|
- lib/cocoapods-core/version.rb
|
136
139
|
- lib/cocoapods-core/yaml_converter.rb
|
137
|
-
- lib/cocoapods-core.rb
|
138
|
-
- README.md
|
139
|
-
- LICENSE
|
140
140
|
homepage: https://github.com/CocoaPods/CocoaPods
|
141
141
|
licenses:
|
142
142
|
- MIT
|
@@ -147,17 +147,17 @@ require_paths:
|
|
147
147
|
- lib
|
148
148
|
required_ruby_version: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
154
|
requirements:
|
155
|
-
- -
|
155
|
+
- - ">="
|
156
156
|
- !ruby/object:Gem::Version
|
157
157
|
version: '0'
|
158
158
|
requirements: []
|
159
159
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.
|
160
|
+
rubygems_version: 2.2.2
|
161
161
|
signing_key:
|
162
162
|
specification_version: 3
|
163
163
|
summary: The models of CocoaPods
|