cocoapods-core 0.18.0 → 0.18.1
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 +22 -13
- data/lib/cocoapods-core/gem_version.rb +1 -1
- data/lib/cocoapods-core/specification.rb +0 -10
- data/lib/cocoapods-core/specification/set/presenter.rb +20 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f5057b97903d18d2dc9fbf5d408642218db0419
|
4
|
+
data.tar.gz: 255f683fd32314431419e620a2227cf36e4ccbd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfd052918bba6c65eb1c75b9d091ecbf43b26a0d984cb88ebd4d83dcb0254f8e61a2d832ec42ac620c0956612c150e2c8ad7afcaf8bf96ddc972dcdb00657c79
|
7
|
+
data.tar.gz: fea6ce47e015e85ca5eeb3974a096e0b0db0d38289b12afde5cce7ba147c0c3904efd730a98d4f73b486c7ba3aa22bdd11cf0d2ab7542fa0464a811226077f3b
|
data/lib/cocoapods-core.rb
CHANGED
@@ -15,22 +15,31 @@ module Pod
|
|
15
15
|
require 'pathname'
|
16
16
|
require 'cocoapods-core/vendor'
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
18
|
+
autoload :Version, 'cocoapods-core/version'
|
19
|
+
autoload :Requirement, 'cocoapods-core/requirement'
|
20
|
+
autoload :Dependency, 'cocoapods-core/dependency'
|
21
|
+
|
22
|
+
autoload :CoreUI, 'cocoapods-core/core_ui'
|
23
|
+
autoload :Lockfile, 'cocoapods-core/lockfile'
|
24
|
+
autoload :Platform, 'cocoapods-core/platform'
|
25
|
+
autoload :Podfile, 'cocoapods-core/podfile'
|
26
|
+
autoload :Source, 'cocoapods-core/source'
|
27
|
+
autoload :Specification, 'cocoapods-core/specification'
|
28
|
+
autoload :StandardError, 'cocoapods-core/standard_error'
|
29
|
+
autoload :DSLError, 'cocoapods-core/standard_error'
|
30
|
+
autoload :YAMLConverter, 'cocoapods-core/yaml_converter'
|
31
|
+
|
32
|
+
# TODO: Fix
|
33
|
+
#
|
34
|
+
Spec = Specification
|
30
35
|
|
31
36
|
# TODO: Temporary support for FileList
|
32
37
|
#
|
33
|
-
|
38
|
+
if RUBY_VERSION >= '1.9'
|
39
|
+
require 'rake/file_list'
|
40
|
+
else
|
41
|
+
require 'rake'
|
42
|
+
end
|
34
43
|
FileList = Rake::FileList
|
35
44
|
end
|
36
45
|
|
@@ -5,13 +5,6 @@ require 'cocoapods-core/specification/root_attribute_accessors'
|
|
5
5
|
require 'cocoapods-core/specification/set'
|
6
6
|
require 'cocoapods-core/specification/yaml'
|
7
7
|
|
8
|
-
# TODO Temporary support
|
9
|
-
if RUBY_VERSION >= "1.9"
|
10
|
-
require 'rake/file_list'
|
11
|
-
else
|
12
|
-
require 'rake'
|
13
|
-
end
|
14
|
-
|
15
8
|
module Pod
|
16
9
|
|
17
10
|
# The Specification provides a DSL to describe a Pod. A pod is defined as a
|
@@ -569,11 +562,8 @@ module Pod
|
|
569
562
|
end
|
570
563
|
end
|
571
564
|
|
572
|
-
|
573
565
|
#---------------------------------------------------------------------------#
|
574
566
|
|
575
|
-
Spec = Specification
|
576
|
-
|
577
567
|
# Evaluates the file at the given path in the namespace of the Pod module.
|
578
568
|
#
|
579
569
|
# @return [Object] it can return any object but, is expected to be called on
|
@@ -9,17 +9,22 @@ module Pod
|
|
9
9
|
#
|
10
10
|
class Presenter
|
11
11
|
|
12
|
-
# @return
|
12
|
+
# @return [Set] the set that should be presented.
|
13
13
|
#
|
14
|
-
|
14
|
+
attr_reader :set
|
15
15
|
|
16
|
-
# @
|
16
|
+
# @return [Statistics] The statistics provider.
|
17
17
|
#
|
18
|
-
|
18
|
+
attr_reader :statistics_provider
|
19
|
+
|
20
|
+
# @param [Set] set @see #set.
|
21
|
+
#
|
22
|
+
def initialize(set, statistics_provider = nil)
|
19
23
|
@set = set
|
24
|
+
@statistics_provider = statistics_provider || Statistics.instance
|
20
25
|
end
|
21
26
|
|
22
|
-
|
27
|
+
#---------------------------------------------------------------------#
|
23
28
|
|
24
29
|
# @!group Set Information
|
25
30
|
|
@@ -68,7 +73,7 @@ module Pod
|
|
68
73
|
@set.sources.map(&:name).sort
|
69
74
|
end
|
70
75
|
|
71
|
-
|
76
|
+
#---------------------------------------------------------------------#
|
72
77
|
|
73
78
|
# @!group Specification Information
|
74
79
|
|
@@ -155,7 +160,7 @@ module Pod
|
|
155
160
|
(spec.recursive_subspecs.any? && spec.recursive_subspecs) || nil
|
156
161
|
end
|
157
162
|
|
158
|
-
|
163
|
+
#---------------------------------------------------------------------#
|
159
164
|
|
160
165
|
# @!group Statistics
|
161
166
|
|
@@ -163,28 +168,28 @@ module Pod
|
|
163
168
|
# Pod.
|
164
169
|
#
|
165
170
|
def creation_date
|
166
|
-
|
171
|
+
statistics_provider.creation_date(@set)
|
167
172
|
end
|
168
173
|
|
169
174
|
# @return [Integer] the GitHub likes of the repo of the Pod.
|
170
175
|
#
|
171
176
|
def github_watchers
|
172
|
-
|
177
|
+
statistics_provider.github_watchers(@set)
|
173
178
|
end
|
174
179
|
|
175
180
|
# @return [Integer] the GitHub forks of the repo of the Pod.
|
176
181
|
#
|
177
182
|
def github_forks
|
178
|
-
|
183
|
+
statistics_provider.github_forks(@set)
|
179
184
|
end
|
180
185
|
|
181
186
|
# @return [String] the relative time of the last push of the repo the Pod.
|
182
187
|
#
|
183
188
|
def github_last_activity
|
184
|
-
distance_from_now_in_words(
|
189
|
+
distance_from_now_in_words(statistics_provider.github_pushed_at(@set))
|
185
190
|
end
|
186
191
|
|
187
|
-
|
192
|
+
#---------------------------------------------------------------------#
|
188
193
|
|
189
194
|
private
|
190
195
|
|
@@ -222,6 +227,9 @@ module Pod
|
|
222
227
|
"more than a year ago"
|
223
228
|
end
|
224
229
|
end
|
230
|
+
|
231
|
+
#---------------------------------------------------------------------#
|
232
|
+
|
225
233
|
end
|
226
234
|
end
|
227
235
|
end
|
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.18.
|
4
|
+
version: 0.18.1
|
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-04-
|
12
|
+
date: 2013-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|