ksconnect 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ksconnect/api/plugin/data.rb +1 -0
- data/lib/ksconnect/api.rb +2 -2
- data/lib/ksconnect/logs.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d2d0b755faec329cae3ccad771d1fb9800f86d6
|
4
|
+
data.tar.gz: 26895da666049b7027f9b0d5c420eddf9fdaf94a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 905ea8c2bd106eef90ae780556e0965c5d7545ca01ab52c84678a31728d394c8962d22a0fb682f7b4a3d09b04fe2126743fd1f4da761f08f9dbe2d93cdc971a3
|
7
|
+
data.tar.gz: 6b27a9f2d093170cad26551f7b578a59591b89a2e3fd8d3c223fb99c7b7c40fc58c8b5652be9dcf7787791a666cc5b5b40a12efdeb9c5617539557428c06bf18
|
data/lib/ksconnect/api.rb
CHANGED
@@ -15,8 +15,8 @@ class KSConnect
|
|
15
15
|
|
16
16
|
# set the main plugin
|
17
17
|
unless enabled_plugins.empty?
|
18
|
-
|
19
|
-
@plugin = @plugins[
|
18
|
+
main_plugin_name = enabled_plugins.shift
|
19
|
+
@plugin = @plugins[main_plugin_name] = KSConnect::API::Plugin.new(plugin_name.to_s, true)
|
20
20
|
end
|
21
21
|
|
22
22
|
# init the other plugins
|
data/lib/ksconnect/logs.rb
CHANGED
@@ -15,11 +15,11 @@ module Logs
|
|
15
15
|
|
16
16
|
module ClassMethods
|
17
17
|
def logger
|
18
|
-
return
|
18
|
+
return @@_logger if @@_logger
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
@@_logger = Logger.new(STDOUT)
|
21
|
+
@@_logger.level = "Logger::#{ENV['LOG_LEVEL'] || 'INFO'}".constantize
|
22
|
+
@@_logger
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|