jackal 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ # v0.1.6
2
+ * Include default source for HTTP endpoints if used and configuration enables
3
+
1
4
  # v0.1.4
2
5
  * Add HTTP point builder api util
3
6
  * Fetch payload from message if available
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Jackal
2
2
  class Version < Gem::Version
3
3
  end
4
- VERSION = Version.new('0.1.4')
4
+ VERSION = Version.new('0.1.6')
5
5
  end
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
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-11 00:00:00.000000000 Z
12
+ date: 2014-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: carnivore