jackal 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +3 -0
- data/lib/jackal/utils/http_api.rb +14 -0
- data/lib/jackal/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
@@ -24,3 +24,17 @@ 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,7 +1,7 @@
|
|
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.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-06-
|
12
|
+
date: 2014-06-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: carnivore
|