ksconnect 0.1.2 → 0.1.3

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: 950863b2585d00b7199bbcbee6de49fce6841b05
4
- data.tar.gz: de7149bc22067e0dc2ea8bebb64da81c9b8c97cc
3
+ metadata.gz: 9033ab93825f6763a35f296a758ea63777e7c3db
4
+ data.tar.gz: f6470fcf3b96720d6dd1e400999afbc96b9866aa
5
5
  SHA512:
6
- metadata.gz: 571b953853c9f0d0d05f71ef5b2ecb60f86f4f8bbf5fca911a82819c907ac3c7f3243c1f4167826827942f46972a5e8c4a49150035145a87eb9e234cb493a4ac
7
- data.tar.gz: a4825b49f1b55c9da2081ae91afd7f3f52b3bfbae573f8da15383e2320e3c10cb24dd4e18e2a4b7a7d0d1871b599fbda9402637c1c56a14077a4311e62d43950
6
+ metadata.gz: d1c5b726757accd1e09b23c93803316e049cafc7f8dfce9b91966f65a4de2adc26bd322aca158ca42a1463ae183c3f0f6ac4b2e820f24bae7ddfd11a38cb5da4
7
+ data.tar.gz: 8903eaae449f8fdbdcc7025aef062bfaace099bdf508881c4f7048c6416acf55a1a55ff2d14145bdfae1fe421309e6a6e01dbe0dab1d3956cf749dd62c745371
data/lib/ksconnect.rb CHANGED
@@ -1,5 +1,11 @@
1
1
  require 'redis'
2
- require 'logs'
2
+ require 'ksconnect/api'
3
+ require 'ksconnect/api/plugin'
4
+ require 'ksconnect/api/plugin/config'
5
+ require 'ksconnect/api/plugin/data'
6
+ require 'ksconnect/api/plugin/domain'
7
+ require 'ksconnect/helpers'
8
+ require 'ksconnect/logs'
3
9
 
4
10
  class KSConnect
5
11
  include Logs
@@ -32,7 +38,7 @@ class KSConnect
32
38
  end
33
39
  rescue Exception => error
34
40
  logger.error "#{error} on redis channel #{name}, restarting in 0.5s"
35
- logger.error error.backtrace
41
+ logger.error error.backtrace.join("\n")
36
42
  $stdout.flush
37
43
  sleep 0.5
38
44
  retry
@@ -18,7 +18,7 @@ module Logs
18
18
  return @_logger if @_logger
19
19
 
20
20
  @_logger = Logger.new(STDOUT)
21
- @_logger.level = "Logger::#{ENV['LOG_LEVEL'] || INFO}".constantize
21
+ @_logger.level = "Logger::#{ENV['LOG_LEVEL'] || 'INFO'}".constantize
22
22
  @_logger
23
23
  end
24
24
  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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Poon
@@ -9,7 +9,49 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2016-01-28 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: redis
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: hiredis
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.6'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: activesupport
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '4.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '4.2'
13
55
  description: |-
14
56
  KSConnect provides a connection interface for Kloudsec plugins by exposing a simple to use
15
57
  API for managing and synchronizing plugin data.
@@ -27,7 +69,7 @@ files:
27
69
  - lib/ksconnect/api/plugin/data.rb
28
70
  - lib/ksconnect/api/plugin/domain.rb
29
71
  - lib/ksconnect/helpers.rb
30
- - lib/logs.rb
72
+ - lib/ksconnect/logs.rb
31
73
  homepage: https://kloudsec.com
32
74
  licenses:
33
75
  - MIT