gems-status 0.39.0 → 0.40.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/bin/gems-status +7 -1
- data/lib/gems-status/gems_status_metadata.rb +1 -1
- data/lib/gems-status.rb +2 -7
- metadata +1 -1
data/bin/gems-status
CHANGED
|
@@ -17,5 +17,11 @@ if !File::exists?(ARGV[0]) then
|
|
|
17
17
|
exit
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
|
|
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
|
|
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(
|
|
17
|
-
@
|
|
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
|