cocoapods-core 1.1.0.beta.1 → 1.1.0.beta.2
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: 68101ad3a4782fc7e4f443d0f6770056fcd5ce95
|
4
|
+
data.tar.gz: f6988ebcecede78fc19c151838496d053ab93579
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 439ec090f0e1e103578185ce13d4a80a70f3799b75317b664c88f183dd178eae4c4c328d5e46397d4d547754dd2d37768022952c5ff9082855183b0101236029
|
7
|
+
data.tar.gz: 1fe27f51aa33521f776ff2c384e7e81c38ef7b6418863441fdc2d4c7b2875c4bd83046b84a32de1e1f7f0c24ecf20f51f2bcec3800d163050946dfb98439d76b
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
[![Code Climate](https://img.shields.io/codeclimate/github/CocoaPods/Core.svg?style=flat)](https://codeclimate.com/github/CocoaPods/Core)
|
6
6
|
|
7
7
|
The CocoaPods-Core gem provides support to work with the models of CocoaPods.
|
8
|
-
It is intended to be used in place of the CocoaPods when the installation
|
8
|
+
It is intended to be used in place of the CocoaPods gem when the installation
|
9
9
|
of the dependencies is not needed. Therefore, it is suitable for web services.
|
10
10
|
|
11
11
|
Provides support for working with the following models:
|
@@ -39,6 +39,32 @@ module Pod
|
|
39
39
|
# spec.framework = 'SystemConfiguration'
|
40
40
|
# end
|
41
41
|
#
|
42
|
+
# Or it can be quite detailed:
|
43
|
+
#
|
44
|
+
# Pod::Spec.new do |spec|
|
45
|
+
# spec.name = 'Reachability'
|
46
|
+
# spec.version = '3.1.0'
|
47
|
+
# spec.license = { :type => 'BSD' }
|
48
|
+
# spec.homepage = 'https://github.com/tonymillion/Reachability'
|
49
|
+
# spec.authors = { 'Tony Million' => 'tonymillion@gmail.com' }
|
50
|
+
# spec.summary = 'ARC and GCD Compatible Reachability Class for iOS and OS X.'
|
51
|
+
# spec.source = { :git => 'https://github.com/tonymillion/Reachability.git', :tag => 'v3.1.0' }
|
52
|
+
# spec.module_name = 'Rich'
|
53
|
+
#
|
54
|
+
# spec.ios.deployment_target = '9.0'
|
55
|
+
# spec.osx.deployment_target = '10.10'
|
56
|
+
#
|
57
|
+
# spec.source_files = 'Reachability/common/*.swift'
|
58
|
+
# spec.ios.source_files = 'Reachability/ios/*.swift', 'Reachability/extensions/*.swift'
|
59
|
+
# spec.osx.source_files = 'Reachability/osx/*.swift'
|
60
|
+
#
|
61
|
+
# spec.framework = 'SystemConfiguration'
|
62
|
+
# spec.ios.framework = 'UIKit'
|
63
|
+
# spec.osx.framework = 'AppKit'
|
64
|
+
#
|
65
|
+
# spec.dependency = 'SomeOtherPod'
|
66
|
+
# end
|
67
|
+
#
|
42
68
|
module DSL
|
43
69
|
extend Pod::Specification::DSL::AttributeSupport
|
44
70
|
|
@@ -194,22 +194,33 @@ module Pod
|
|
194
194
|
return unless other.is_a?(Pod::Version)
|
195
195
|
return 0 if @version == other.version
|
196
196
|
|
197
|
-
compare = proc do |segments, other_segments|
|
197
|
+
compare = proc do |segments, other_segments, is_pre_release|
|
198
198
|
limit = [segments.size, other_segments.size].max
|
199
199
|
|
200
200
|
(0..limit).each do |i|
|
201
|
-
lhs = segments[i]
|
202
|
-
rhs = other_segments[i]
|
201
|
+
lhs = segments[i]
|
202
|
+
rhs = other_segments[i]
|
203
203
|
|
204
204
|
next if lhs == rhs
|
205
|
+
# If it's pre-release and the first segment, then
|
206
|
+
# this is a special case because a segment missing
|
207
|
+
# means that one is not a pre-release version
|
208
|
+
if is_pre_release && i == 0
|
209
|
+
return 1 if lhs.nil?
|
210
|
+
return -1 if rhs.nil?
|
211
|
+
else
|
212
|
+
return -1 if lhs.nil?
|
213
|
+
return 1 if rhs.nil?
|
214
|
+
end
|
215
|
+
|
205
216
|
return lhs <=> rhs if lhs <=> rhs
|
206
|
-
return
|
207
|
-
return
|
217
|
+
return 1 if lhs.is_a?(String) && rhs.is_a?(Numeric)
|
218
|
+
return -1 if lhs.is_a?(Numeric) && rhs.is_a?(String)
|
208
219
|
end
|
209
220
|
end
|
210
221
|
|
211
|
-
compare[numeric_segments, other.numeric_segments]
|
212
|
-
compare[prerelease_segments, other.prerelease_segments]
|
222
|
+
compare[numeric_segments, other.numeric_segments, false]
|
223
|
+
compare[prerelease_segments, other.prerelease_segments, true]
|
213
224
|
0
|
214
225
|
end
|
215
226
|
|
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: 1.1.0.beta.
|
4
|
+
version: 1.1.0.beta.2
|
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: 2016-
|
12
|
+
date: 2016-08-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -18,6 +18,9 @@ dependencies:
|
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 4.0.2
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '5'
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -25,6 +28,9 @@ dependencies:
|
|
25
28
|
- - ">="
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: 4.0.2
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5'
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: nap
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
146
|
version: '0'
|
141
147
|
requirements: []
|
142
148
|
rubyforge_project:
|
143
|
-
rubygems_version: 2.
|
149
|
+
rubygems_version: 2.4.5.1
|
144
150
|
signing_key:
|
145
151
|
specification_version: 3
|
146
152
|
summary: The models of CocoaPods
|