gems-status 1.68.0 → 1.69.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.68.0
1
+ 1.69.0
data/bin/gems-status CHANGED
@@ -21,23 +21,6 @@ if !File::exists?(ARGV[0]) then
21
21
  end
22
22
 
23
23
 
24
- def setup_runner(conf)
25
- GemsStatus::Utils::known_licenses = conf["licenses"]
26
- runner = GemsStatus::Runner.new
27
- c = conf["source"]
28
- gems = eval("GemsStatus::#{c["classname"]}").new(c)
29
- runner.source = gems
30
- if conf["checkers"]
31
- conf["checkers"].each do |c|
32
- checker = eval("GemsStatus::#{c["classname"]}").new(c)
33
- runner.add_checker(checker)
34
- end
35
- end
36
- if conf["comments"]
37
- runner.add_comments(conf["comments"])
38
- end
39
- return runner
40
- end
41
24
 
42
25
  conf_file = ARGV[0]
43
26
  begin
@@ -47,7 +30,7 @@ rescue
47
30
  exit
48
31
  end
49
32
 
50
- runner = setup_runner(conf)
33
+ runner = GemsStatus::Runner::setup_runner(conf)
51
34
  runner.execute
52
35
  runner.print
53
36
  exit 1 if runner.checker_results && runner.checker_results.length > 0
@@ -14,6 +14,24 @@ module GemsStatus
14
14
  @gem_list = nil
15
15
  end
16
16
 
17
+ def Runner.setup_runner(conf)
18
+ GemsStatus::Utils::known_licenses = conf["licenses"]
19
+ runner = GemsStatus::Runner.new
20
+ c = conf["source"]
21
+ gems = eval("GemsStatus::#{c["classname"]}").new(c)
22
+ runner.source = gems
23
+ if conf["checkers"]
24
+ conf["checkers"].each do |c|
25
+ checker = eval("GemsStatus::#{c["classname"]}").new(c)
26
+ runner.add_checker(checker)
27
+ end
28
+ end
29
+ if conf["comments"]
30
+ runner.add_comments(conf["comments"])
31
+ end
32
+ return runner
33
+ end
34
+
17
35
  def add_checker(check_object)
18
36
  @checkers << check_object
19
37
  end
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: 1.68.0
4
+ version: 1.69.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-30 00:00:00.000000000 Z
12
+ date: 2013-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: xml-simple
@@ -256,7 +256,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
256
256
  version: '0'
257
257
  segments:
258
258
  - 0
259
- hash: 4221651524110072091
259
+ hash: -3656880439419227831
260
260
  required_rubygems_version: !ruby/object:Gem::Requirement
261
261
  none: false
262
262
  requirements:
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
265
  version: '0'
266
266
  segments:
267
267
  - 0
268
- hash: 4221651524110072091
268
+ hash: -3656880439419227831
269
269
  requirements: []
270
270
  rubyforge_project:
271
271
  rubygems_version: 1.8.25