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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 050d5e42f540008d6d6ac8641a86de275475e5fe
4
- data.tar.gz: 90becaeae8c07f5520946f6a4f8112d03379e7b9
3
+ metadata.gz: 238f64730bc68ab50fe7f24e2de11f5e07a084ec
4
+ data.tar.gz: 305ba06c52248d48f704965d33494cdaffe82715
5
5
  SHA512:
6
- metadata.gz: a0b86bd8a760845eefaa006838e19f96c59c15d67b85d68cc8ddd22b6d080c6eadde03e7c06fb01df31484caabd670c47b4ee8675d65cc049ec4c2c6a3c2a7c5
7
- data.tar.gz: fc9b0d1eb866cad3e1101ff8d3c728e8bebaa7ffb647a3f90a0d2f8a004016eb324a8000d8d9ed9bbd5228a1e4fbd7f946b1d9b5348552fd9e68d6d205c3a67e
6
+ metadata.gz: acc58c09217457638e88ff5486bce667630d1d568fde6b79a88bafdf7702235162a5d42386524c445d9f9a5491c781e9276127bd835a6e28239bb2f6933997ad
7
+ data.tar.gz: 70c6d38554e1ead5e410ece8896cee42cd34f35aec97297afa7f97705b60c048b7a7bc86a1eb6fd10217e412829a38b89a92cf8056ae420a0a9d03afaa72607f
@@ -1,3 +1,7 @@
1
+ # v0.1.16
2
+ * Load HTTP hook directly prior to service start
3
+ * Fixes some issues with spec loads
4
+
1
5
  # v0.1.14
2
6
  * Move orphan handlers into source init arg
3
7
 
@@ -46,7 +46,7 @@ begin
46
46
  end
47
47
  end
48
48
  end
49
-
49
+ Jackal::Utils.load_http_hook
50
50
  Carnivore.start!
51
51
  rescue => e
52
52
  $stderr.puts "Unexpected failure encountered: #{e.class}: #{e}"
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Jackal
2
2
  # Current library version
3
- VERSION = Gem::Version.new('0.1.14')
3
+ VERSION = Gem::Version.new('0.1.16')
4
4
  end
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.14
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-03 00:00:00.000000000 Z
11
+ date: 2014-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carnivore