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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06207d64b5e16054f9879283f9b3635d43486380
4
- data.tar.gz: e716c4150e97ebb0f600a99dacbd27502b4d23b3
3
+ metadata.gz: 7d2d0b755faec329cae3ccad771d1fb9800f86d6
4
+ data.tar.gz: 26895da666049b7027f9b0d5c420eddf9fdaf94a
5
5
  SHA512:
6
- metadata.gz: c1cd24055c673e2585f2dc362ffe2a456561f1934a72725ca342f26f5687c4423ae450cc50c3dbed8fde16ecd6e7ca08a8f916d5e774485c9afe7ca59720d2ac
7
- data.tar.gz: 51c868da513607c93a184ae2e52ef8fe3da918a211400c3cefa9daffe3796dccb635dd1b0d5219df3348c54f3c9de6c449bd1cea16f65cc97856fa17ff9fac2a
6
+ metadata.gz: 905ea8c2bd106eef90ae780556e0965c5d7545ca01ab52c84678a31728d394c8962d22a0fb682f7b4a3d09b04fe2126743fd1f4da761f08f9dbe2d93cdc971a3
7
+ data.tar.gz: 6b27a9f2d093170cad26551f7b578a59591b89a2e3fd8d3c223fb99c7b7c40fc58c8b5652be9dcf7787791a666cc5b5b40a12efdeb9c5617539557428c06bf18
@@ -1,4 +1,5 @@
1
1
  require 'redis'
2
+ require 'securerandom'
2
3
  require 'active_support/hash_with_indifferent_access'
3
4
  require 'ksconnect/logs'
4
5
 
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
- plugin_name = enabled_plugins.shift
19
- @plugin = @plugins[plugin_name] = KSConnect::API::Plugin.new(plugin_name.to_s, true)
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
@@ -15,11 +15,11 @@ module Logs
15
15
 
16
16
  module ClassMethods
17
17
  def logger
18
- return @_logger if @_logger
18
+ return @@_logger if @@_logger
19
19
 
20
- @_logger = Logger.new(STDOUT)
21
- @_logger.level = "Logger::#{ENV['LOG_LEVEL'] || 'INFO'}".constantize
22
- @_logger
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ksconnect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Poon