alephant-renderer 1.0.5 → 2.0.0

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: 2c8908c208873f4a42624c2ea775591e91265765
4
- data.tar.gz: 3e61694bf86881609ddf1cf8a6f9aedb32c0122a
3
+ metadata.gz: 9dc2445aab6179e6e2c3fc1ed79e1c17b055a2bc
4
+ data.tar.gz: a98f86afc093a361aeb89519fc725cce56c2b4c0
5
5
  SHA512:
6
- metadata.gz: a8788c071982f0f82c8e2d62135e928f1050688a6fa6d9e2a7e9d9ca52ddad7bd7739ed9a624162d3fa67988716ae1e9ae31c920a2873cb358ed76b6be3f1e4e
7
- data.tar.gz: 7b5389266f97fce3a5d82fbd68f93c2666265f2792e2ba1f967795c700c5a59577302013a1e5becab9b0ec310b773a609f059db09851d892c4c38d50759ea39b
6
+ metadata.gz: cc67f75357294559513972310120b57f598babfe37ace92169e1dbc29bc16672921d30d76d0356f8b6f101eef22f6cce4f67da02d669b9e3f94c1396db740406
7
+ data.tar.gz: b1ff43f4af1f40af127c4054a67f7d07a724ad027ddb93bd8d4ebae4eae5e14e62721e56bbc26a8e2bccea49cb63e13138d05b6c117649c533ff5e467481e687
@@ -25,11 +25,17 @@ module Alephant
25
25
  private
26
26
 
27
27
  def mapper
28
- logger.info "Renderer#mapper: renderer id '#{config[:renderer_id]}', view path '#{config[:view_path]}'"
29
28
  @mapper ||= ViewMapper.new(
30
29
  config[:renderer_id],
31
30
  config[:view_path]
32
- )
31
+ ).tap do
32
+ logger.info(
33
+ "event" => "ViewMapperCreated",
34
+ "rendererId" => config[:renderer_id],
35
+ "viewPath" => config[:view_path],
36
+ "method" => "#{self.class}#mapper"
37
+ )
38
+ end
33
39
  end
34
40
  end
35
41
  end
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Renderer
3
- VERSION = "1.0.5"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
@@ -32,8 +32,14 @@ module Alephant
32
32
  private
33
33
 
34
34
  def raise_error(path)
35
- logger.metric("ViewMapperInvalidPath")
36
- raise "Invalid path: '#{path}'"
35
+ raise("Invalid path: '#{path}'").tap do
36
+ logger.metric("ViewMapperInvalidPath")
37
+ logger.error(
38
+ "event" => "ViewMapperBasePathInvalidFound",
39
+ "path" => path,
40
+ "method" => "#{self.class}#raise_error"
41
+ )
42
+ end
37
43
  end
38
44
 
39
45
  def model(view_id, data)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-renderer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BBC News
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-01 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement