alephant-broker 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alephant/broker/cache.rb +1 -1
- data/lib/alephant/broker/environment.rb +1 -1
- data/lib/alephant/broker/request/asset.rb +2 -2
- data/lib/alephant/broker/request/batch.rb +2 -2
- data/lib/alephant/broker/request/handler.rb +1 -1
- data/lib/alephant/broker/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: 665eac0425432b900dc8434efd9b7e18d1da9039
|
4
|
+
data.tar.gz: 107b83ecfc567c16d92c545181e0334d2e4b1880
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af7416d5348a1f2c9bd8294a932c0acadc7c00272c53dfc7530158dde972ca928285710bc8775470e6d0504777689d3afa9894e34c8e83248a41049cb5022b4e
|
7
|
+
data.tar.gz: ac66ae4b58898ac9202eafa4926408f4c26d47cd2d9b49d2364a4b0b3084fd1f704d39baa0182a025839a90a3298dfee781e8bc07cb125355efb102334dc6530
|
@@ -15,7 +15,7 @@ module Alephant
|
|
15
15
|
@@elasticache ||= ::Dalli::ElastiCache.new(config_endpoint, { :expires_in => ttl })
|
16
16
|
@client = @@elasticache.client
|
17
17
|
else
|
18
|
-
logger.
|
18
|
+
logger.debug('Broker::Cache::Client#initialize: No config endpoint, NullClient used')
|
19
19
|
@client = NullClient.new
|
20
20
|
end
|
21
21
|
end
|
@@ -11,7 +11,7 @@ module Alephant
|
|
11
11
|
attr_reader :component
|
12
12
|
|
13
13
|
def initialize(env)
|
14
|
-
logger.
|
14
|
+
logger.debug("Request::Asset#initialize(#{env.settings})")
|
15
15
|
component_id = component_id_for env.path
|
16
16
|
|
17
17
|
@component = Component.new(
|
@@ -20,7 +20,7 @@ module Alephant
|
|
20
20
|
env.options
|
21
21
|
)
|
22
22
|
|
23
|
-
logger.
|
23
|
+
logger.debug("Request::Asset#initialize: id: #{component_id}")
|
24
24
|
raise InvalidAssetId.new("No Asset ID specified") if component_id.nil?
|
25
25
|
end
|
26
26
|
|
@@ -11,12 +11,12 @@ module Alephant
|
|
11
11
|
attr_reader :batch_id, :components
|
12
12
|
|
13
13
|
def initialize(env)
|
14
|
-
logger.
|
14
|
+
logger.debug("Request::Batch#initialize(#{env.settings})")
|
15
15
|
|
16
16
|
@batch_id = env.data['batch_id']
|
17
17
|
@components = components_for env
|
18
18
|
|
19
|
-
logger.
|
19
|
+
logger.debug("Request::Batch#initialize: id: #{@batch_id}")
|
20
20
|
end
|
21
21
|
|
22
22
|
private
|
@@ -23,7 +23,7 @@ module Alephant
|
|
23
23
|
begin
|
24
24
|
response_for request_for(env)
|
25
25
|
rescue Exception => e
|
26
|
-
logger.
|
26
|
+
logger.warn("Broker.requestHandler.process: Exception raised (#{e.message}, #{e.backtrace.join('\n')})")
|
27
27
|
Response::Factory.error
|
28
28
|
end
|
29
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alephant-broker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Jack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|