jackal 0.1.14 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/jackal/loader.rb +1 -1
- data/lib/jackal/utils.rb +25 -0
- data/lib/jackal/utils/http_api.rb +0 -14
- data/lib/jackal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 238f64730bc68ab50fe7f24e2de11f5e07a084ec
|
4
|
+
data.tar.gz: 305ba06c52248d48f704965d33494cdaffe82715
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acc58c09217457638e88ff5486bce667630d1d568fde6b79a88bafdf7702235162a5d42386524c445d9f9a5491c781e9276127bd835a6e28239bb2f6933997ad
|
7
|
+
data.tar.gz: 70c6d38554e1ead5e410ece8896cee42cd34f35aec97297afa7f97705b60c048b7a7bc86a1eb6fd10217e412829a38b89a92cf8056ae420a0a9d03afaa72607f
|
data/CHANGELOG.md
CHANGED
data/lib/jackal/loader.rb
CHANGED
data/lib/jackal/utils.rb
CHANGED
@@ -11,5 +11,30 @@ module Jackal
|
|
11
11
|
|
12
12
|
extend Payload
|
13
13
|
|
14
|
+
class << self
|
15
|
+
|
16
|
+
# Load thee HTTP Hook if configured
|
17
|
+
#
|
18
|
+
# @return [TrueClass, FalseClass]
|
19
|
+
def load_http_hook
|
20
|
+
if(Carnivore::Config.get(:http_hook))
|
21
|
+
Carnivore.configure do
|
22
|
+
Carnivore::Source.build(
|
23
|
+
:type => :http_endpoints,
|
24
|
+
:args => {
|
25
|
+
:name => :http_hook,
|
26
|
+
:bind => Carnivore::Config.get(:http_hook, :bind) || "0.0.0.0",
|
27
|
+
:port => Carnivore::Config.get(:http_hook, :port) || 8989
|
28
|
+
}
|
29
|
+
)
|
30
|
+
end
|
31
|
+
true
|
32
|
+
else
|
33
|
+
false
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
|
14
39
|
end
|
15
40
|
end
|
@@ -24,17 +24,3 @@ class Carnivore::Http::PointBuilder::Endpoint
|
|
24
24
|
# @!parse include Jackal::Utils::Payload
|
25
25
|
# @!parse include Jackal::Utils::Config
|
26
26
|
end
|
27
|
-
|
28
|
-
# Define default source for API if configuration exists
|
29
|
-
if(Carnivore::Config.get(:http_hook))
|
30
|
-
Carnivore.configure do
|
31
|
-
Carnivore::Source.build(
|
32
|
-
:type => :http_endpoints,
|
33
|
-
:args => {
|
34
|
-
:name => :http_hook,
|
35
|
-
:bind => Carnivore::Config.get(:http_hook, :bind) || "0.0.0.0",
|
36
|
-
:port => Carnivore::Config.get(:http_hook, :port) || 8989
|
37
|
-
}
|
38
|
-
)
|
39
|
-
end
|
40
|
-
end
|
data/lib/jackal/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jackal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carnivore
|