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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8cd1d3394fab84bd79670bad3389820b40a6110
4
- data.tar.gz: 064af0e2916d74b5ea2db298397198e9a06c204a
3
+ metadata.gz: 4f5057b97903d18d2dc9fbf5d408642218db0419
4
+ data.tar.gz: 255f683fd32314431419e620a2227cf36e4ccbd0
5
5
  SHA512:
6
- metadata.gz: 8445099953c499685134515408e0c1640e46509181b9b3a743b47716bcbfa9004b9b7b6063e2dde0261d4c842a945a6649f953d678f5e9bda0b7cf86ceb974f3
7
- data.tar.gz: b6e932b7c370d35f851683cd79ebafb3152eea3349dcc1f27bc46697da0cd88633854e15c3b06f151bd7d027bcfe63967b6bc14e3779b4db6fc00149346e4883
6
+ metadata.gz: cfd052918bba6c65eb1c75b9d091ecbf43b26a0d984cb88ebd4d83dcb0254f8e61a2d832ec42ac620c0956612c150e2c8ad7afcaf8bf96ddc972dcdb00657c79
7
+ data.tar.gz: fea6ce47e015e85ca5eeb3974a096e0b0db0d38289b12afde5cce7ba147c0c3904efd730a98d4f73b486c7ba3aa22bdd11cf0d2ab7542fa0464a811226077f3b
@@ -15,22 +15,31 @@ module Pod
15
15
  require 'pathname'
16
16
  require 'cocoapods-core/vendor'
17
17
 
18
- require 'cocoapods-core/version'
19
- require 'cocoapods-core/requirement'
20
- require 'cocoapods-core/dependency'
21
-
22
- require 'cocoapods-core/core_ui'
23
- require 'cocoapods-core/lockfile'
24
- require 'cocoapods-core/platform'
25
- require 'cocoapods-core/podfile'
26
- require 'cocoapods-core/source'
27
- require 'cocoapods-core/specification'
28
- require 'cocoapods-core/standard_error'
29
- require 'cocoapods-core/yaml_converter'
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
- require 'rake'
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
 
@@ -2,5 +2,5 @@ module Pod
2
2
 
3
3
  # The version of the cocoapods-core.
4
4
  #
5
- CORE_VERSION = '0.18.0' unless defined? Pod::CORE_VERSION
5
+ CORE_VERSION = '0.18.1' unless defined? Pod::CORE_VERSION
6
6
  end
@@ -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 [Set] the set that should be presented.
12
+ # @return [Set] the set that should be presented.
13
13
  #
14
- attr_accessor :set
14
+ attr_reader :set
15
15
 
16
- # @param [Set] set @see #set.
16
+ # @return [Statistics] The statistics provider.
17
17
  #
18
- def initialize(set)
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
- Statistics.instance.creation_date(@set)
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
- Statistics.instance.github_watchers(@set)
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
- Statistics.instance.github_forks(@set)
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(Statistics.instance.github_pushed_at(@set))
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.0
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-08 00:00:00.000000000 Z
12
+ date: 2013-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport