gems-status 0.39.0 → 0.40.0

Sign up to get free protection for your applications and to get access to all the features.
data/bin/gems-status CHANGED
@@ -17,5 +17,11 @@ if !File::exists?(ARGV[0]) then
17
17
  exit
18
18
  end
19
19
 
20
- GemsStatus::GemStatus.new(ARGV[0]).execute
20
+ conf_file = ARGV[0]
21
+ begin
22
+ conf = YAML::load(File::open(conf_file))
23
+ rescue
24
+ Utils::log_error("?", "There was a problem opening #{conf_file}")
25
+ end
26
+ GemsStatus::GemStatus.new(conf).execute
21
27
 
@@ -1,3 +1,3 @@
1
1
  module GemsStatus
2
- VERSION = "0.39.0"
2
+ VERSION = "0.40.0"
3
3
  end
data/lib/gems-status.rb CHANGED
@@ -13,13 +13,8 @@ require "gems-status/checkers"
13
13
  module GemsStatus
14
14
 
15
15
  class GemStatus
16
- def initialize(conf_file)
17
- @conf_file = conf_file
18
- begin
19
- @conf = YAML::load(File::open(conf_file))
20
- rescue
21
- Utils::log_error("?", "There was a problem opening #{conf_file}")
22
- end
16
+ def initialize(conf)
17
+ @conf = conf
23
18
  end
24
19
 
25
20
  def execute
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.39.0
4
+ version: 0.40.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: