cocoapods-core 0.27.1 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cocoapods-core.rb +0 -2
- data/lib/cocoapods-core/core_ui.rb +0 -1
- data/lib/cocoapods-core/dependency.rb +20 -15
- data/lib/cocoapods-core/gem_version.rb +1 -1
- data/lib/cocoapods-core/github.rb +1 -1
- data/lib/cocoapods-core/lockfile.rb +15 -11
- data/lib/cocoapods-core/platform.rb +10 -6
- data/lib/cocoapods-core/podfile.rb +18 -11
- data/lib/cocoapods-core/podfile/dsl.rb +25 -23
- data/lib/cocoapods-core/podfile/target_definition.rb +60 -36
- data/lib/cocoapods-core/requirement.rb +2 -2
- data/lib/cocoapods-core/source.rb +34 -10
- data/lib/cocoapods-core/source/acceptor.rb +12 -8
- data/lib/cocoapods-core/source/aggregate.rb +22 -9
- data/lib/cocoapods-core/source/health_reporter.rb +2 -2
- data/lib/cocoapods-core/specification.rb +14 -12
- data/lib/cocoapods-core/specification/consumer.rb +8 -6
- data/lib/cocoapods-core/specification/dsl.rb +66 -18
- data/lib/cocoapods-core/specification/dsl/attribute.rb +5 -4
- data/lib/cocoapods-core/specification/dsl/deprecations.rb +35 -23
- data/lib/cocoapods-core/specification/dsl/platform_proxy.rb +16 -11
- data/lib/cocoapods-core/specification/linter.rb +107 -36
- data/lib/cocoapods-core/specification/root_attribute_accessors.rb +16 -4
- data/lib/cocoapods-core/specification/set.rb +41 -24
- data/lib/cocoapods-core/specification/set/presenter.rb +7 -5
- data/lib/cocoapods-core/specification/yaml.rb +6 -2
- data/lib/cocoapods-core/standard_error.rb +3 -3
- data/lib/cocoapods-core/vendor.rb +0 -1
- data/lib/cocoapods-core/vendor/requirement.rb +9 -9
- data/lib/cocoapods-core/vendor/version.rb +143 -140
- data/lib/cocoapods-core/version.rb +5 -6
- data/lib/cocoapods-core/yaml_converter.rb +3 -2
- metadata +17 -3
@@ -56,7 +56,7 @@ module Pod
|
|
56
56
|
version = version.version
|
57
57
|
@head = true
|
58
58
|
elsif version.is_a?(String) && version =~ /HEAD (based on|from) (.*)/
|
59
|
-
version =
|
59
|
+
version = Regexp.last_match[2]
|
60
60
|
@head = true
|
61
61
|
end
|
62
62
|
super(version)
|
@@ -82,7 +82,7 @@ module Pod
|
|
82
82
|
# @return [String] a string representation suitable for debugging.
|
83
83
|
#
|
84
84
|
def inspect
|
85
|
-
"<#{self.class} version=#{
|
85
|
+
"<#{self.class} version=#{version}>"
|
86
86
|
end
|
87
87
|
|
88
88
|
# @return [Boolean] indicates whether or not the version is a prerelease.
|
@@ -98,7 +98,7 @@ module Pod
|
|
98
98
|
|
99
99
|
# @return [Bool] Whether a string representation is correct.
|
100
100
|
#
|
101
|
-
def self.correct?
|
101
|
+
def self.correct?(version)
|
102
102
|
version.to_s =~ ANCHORED_VERSION_PATTERN
|
103
103
|
end
|
104
104
|
|
@@ -106,8 +106,8 @@ module Pod
|
|
106
106
|
|
107
107
|
# @!group Semantic Versioning
|
108
108
|
|
109
|
-
|
110
|
-
ANCHORED_SEMANTIC_VERSION_PATTERN = /\A\s*(#{
|
109
|
+
SEMVER_PATTERN = '[0-9]+(\.[0-9]+(\.[0-9]+(-[0-9A-Za-z\-\.]+)?)?)?'
|
110
|
+
ANCHORED_SEMANTIC_VERSION_PATTERN = /\A\s*(#{SEMVER_PATTERN})*\s*\z/
|
111
111
|
|
112
112
|
# @return [Bool] Whether the version conforms to the Semantic Versioning
|
113
113
|
# specification (2.0.0-rc.1).
|
@@ -142,4 +142,3 @@ module Pod
|
|
142
142
|
|
143
143
|
end
|
144
144
|
end
|
145
|
-
|
@@ -67,7 +67,8 @@ module Pod
|
|
67
67
|
when Array then process_array(value)
|
68
68
|
when Hash then process_hash(value, hash_keys_hint)
|
69
69
|
else
|
70
|
-
raise StandardError, "Unsupported class for YAML conversion
|
70
|
+
raise StandardError, "Unsupported class for YAML conversion " \
|
71
|
+
"#{value.class}"
|
71
72
|
end
|
72
73
|
end
|
73
74
|
|
@@ -83,7 +84,7 @@ module Pod
|
|
83
84
|
sorted_array(array).each do |array_value|
|
84
85
|
result << process_according_to_class(array_value)
|
85
86
|
end
|
86
|
-
"- #{result*"\n- "}"
|
87
|
+
"- #{result * "\n- "}"
|
87
88
|
end
|
88
89
|
|
89
90
|
# Converts a hash to YAML after sorting its keys. Optionally accepts a
|
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.28.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: 2013-
|
12
|
+
date: 2013-11-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0.5'
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
|
-
name:
|
49
|
+
name: json
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -59,6 +59,20 @@ dependencies:
|
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '1.8'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: fuzzy_match
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.0.4
|
69
|
+
type: :runtime
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.0.4
|
62
76
|
- !ruby/object:Gem::Dependency
|
63
77
|
name: bacon
|
64
78
|
requirement: !ruby/object:Gem::Requirement
|