alephant-broker 3.15.1 → 3.15.2
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/request/factory.rb +6 -6
- 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: a1d2a83b80e06b6997939b7ac7a05017d46ce02f
|
4
|
+
data.tar.gz: 5db2fd8af88502c3ee560b7c925ce80e2c8cc4bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61f971597070da6cf55911398e7124945d873b8420db7fea05f443dd666763e271abe4db86bac68601ee1ae73b50857f8c76b57af666108b5b43893a6d854c8c
|
7
|
+
data.tar.gz: 233504dc59be0a68487fc1e6670d3919194c266f5531773c3dd4c1e7d8cffd2be092b2aa72479037f1cfb1a35f86009b63846ecf5576d9424a1d45d0cd726798
|
@@ -13,22 +13,22 @@ module Alephant
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.request_for(load_strategy, env)
|
16
|
-
component_factory = ComponentFactory.new
|
16
|
+
component_factory = ComponentFactory.new(load_strategy)
|
17
17
|
|
18
|
-
logger.
|
18
|
+
logger.increment('request_count')
|
19
19
|
|
20
20
|
case request_type_from(env)
|
21
21
|
when "component"
|
22
|
-
logger.
|
22
|
+
logger.increment('actionable_request_count')
|
23
23
|
Asset.new(component_factory, env)
|
24
24
|
when "components"
|
25
|
-
logger.
|
25
|
+
logger.increment('actionable_request_count')
|
26
26
|
Batch.new(component_factory, env)
|
27
27
|
when "status"
|
28
|
-
logger.
|
28
|
+
logger.increment('status_request')
|
29
29
|
Status.new
|
30
30
|
else
|
31
|
-
logger.
|
31
|
+
logger.increment('not_found_request')
|
32
32
|
NotFound.new
|
33
33
|
end
|
34
34
|
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: 3.15.
|
4
|
+
version: 3.15.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BBC News
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|