hoodoo 3.2.9 → 3.3.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb6c65b84b1ed69c38bc0bd831d5502c09ac263fdadd6f9149d9a0908f6e0fbd
|
4
|
+
data.tar.gz: 341bd376393993e26f40026f4524e82afbdd857ccbd7b10f541e3110f35d3b5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e77e8fa24fb560db01a55e50844650e271636355ed4dfeb96e91a4bbb884bd7e03e9cd71e9b032491335f6a64e798bd158afc1d33f0bc7d4cebd75d079cedaf8
|
7
|
+
data.tar.gz: 609e8da0eef7d4d54778852558d25a35054102258f7a21b538c4feaafecad6f882826af9ef6cf5da5b1affa9a4caec716737da4656509a1f3c8fdbc445590e3b
|
@@ -12,10 +12,10 @@ require 'json'
|
|
12
12
|
module Hoodoo
|
13
13
|
class Logger
|
14
14
|
|
15
|
-
begin # Exception handler as '
|
16
|
-
require '
|
15
|
+
begin # Exception handler as 'r7_insight' gem inclusion is optional.
|
16
|
+
require 'r7_insight' # Might raise LoadError; that's allowed.
|
17
17
|
|
18
|
-
# Writes structured messages to
|
18
|
+
# Writes structured messages to Rapid7 via the "r7_insight" gem,
|
19
19
|
# which uses its own asynchronous worker thread for network data.
|
20
20
|
# Thus, a Hoodoo::Logger::FastWriter subclass. See also
|
21
21
|
# Hoodoo::Logger.
|
@@ -27,7 +27,7 @@ module Hoodoo
|
|
27
27
|
# +token+:: Your logentries.com API token.
|
28
28
|
#
|
29
29
|
def initialize( token )
|
30
|
-
@@logger ||=
|
30
|
+
@@logger ||= R7Insight.new( token, 'eu', :ssl => true )
|
31
31
|
end
|
32
32
|
|
33
33
|
# See Hoodoo::Logger::WriterMixin#report.
|
@@ -57,7 +57,7 @@ module Hoodoo
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
rescue LoadError # From "require '
|
60
|
+
rescue LoadError # From "require 'r7_insight'"
|
61
61
|
end
|
62
62
|
|
63
63
|
end
|
data/lib/hoodoo/version.rb
CHANGED
@@ -12,7 +12,7 @@ module Hoodoo
|
|
12
12
|
# The Hoodoo gem version. If this changes, be sure to re-run
|
13
13
|
# <tt>bundle install</tt> or <tt>bundle update</tt>.
|
14
14
|
#
|
15
|
-
VERSION = '3.
|
15
|
+
VERSION = '3.3.0'
|
16
16
|
|
17
17
|
# The Hoodoo gem date. If this changes, be sure to re-run
|
18
18
|
# <tt>bundle install</tt> or <tt>bundle update</tt>.
|
@@ -13,7 +13,7 @@ describe Hoodoo::Logger::LogEntriesDotComWriter do
|
|
13
13
|
end
|
14
14
|
|
15
15
|
it 'creates an appropriate logger instance' do
|
16
|
-
example =
|
16
|
+
example = R7Insight.new( example_token(), :ssl => true )
|
17
17
|
expect( @logger.class ).to eq( example.class )
|
18
18
|
end
|
19
19
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoodoo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loyalty New Zealand
|
@@ -151,19 +151,19 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '1.8'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: r7insight
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
159
|
+
version: '3.0'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
166
|
+
version: '3.0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: pg
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|