gems-status 0.44.0 → 0.45.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.44.0
1
+ 0.45.0
@@ -15,25 +15,30 @@ module GemsStatus
15
15
  class GemStatus
16
16
  def initialize(conf)
17
17
  @conf = conf
18
- end
19
-
20
- def execute
21
- gems_composite_command = GemsCompositeCommand.new(@conf["target"])
18
+ @gems_composite_command = nil
19
+ @gems_composite_command = GemsCompositeCommand.new(@conf["target"])
22
20
  @conf["sources"].each do |c|
23
21
  gems = eval(c["classname"]).new(c)
24
- gems_composite_command.add_command(gems)
22
+ @gems_composite_command.add_command(gems)
25
23
  end
26
24
  if @conf["checkers"]
27
25
  @conf["checkers"].each do |c|
28
26
  checker = eval(c["classname"]).new(c)
29
- gems_composite_command.add_checker(checker)
27
+ @gems_composite_command.add_checker(checker)
30
28
  end
31
29
  end
32
30
  if @conf["comments"]
33
- gems_composite_command.add_comments(@conf["comments"])
31
+ @gems_composite_command.add_comments(@conf["comments"])
34
32
  end
35
- gems_composite_command.execute
36
- gems_composite_command.print
33
+ end
34
+
35
+ def execute
36
+ @gems_composite_command.execute
37
+ @gems_composite_command.print
38
+ end
39
+
40
+ def results
41
+ @gems_composite_command.results
37
42
  end
38
43
  end
39
44
  end
@@ -5,7 +5,7 @@ require "gems-status/html_view"
5
5
  module GemsStatus
6
6
 
7
7
  class GemsCompositeCommand < GemsCommand
8
- attr_accessor results
8
+ attr_accessor :results
9
9
  def initialize(target)
10
10
  @commands = []
11
11
  @checkers = []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gems-status
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.0
4
+ version: 0.45.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -234,7 +234,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
234
234
  version: '0'
235
235
  segments:
236
236
  - 0
237
- hash: 4399028238636427286
237
+ hash: 583215878566772979
238
238
  required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  none: false
240
240
  requirements:
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  version: '0'
244
244
  segments:
245
245
  - 0
246
- hash: 4399028238636427286
246
+ hash: 583215878566772979
247
247
  requirements: []
248
248
  rubyforge_project:
249
249
  rubygems_version: 1.8.25