alephant-renderer 2.0.1 → 2.0.2

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: e3a19d1c9984aaa9611fd279466b0bece188defc
4
- data.tar.gz: 5f1cbd5a69a99ef540f905f0ce5f6546d58d1a97
3
+ metadata.gz: 1e810f8be3ddd542c6219561717aeceecea23909
4
+ data.tar.gz: 56fd9b04bd5d18e30a32ada542b7d437e3ea3e30
5
5
  SHA512:
6
- metadata.gz: 17202ed45634156e75927102101e38c17817ce92ee2e357e3332bb651d69c876a2d81e6cfde9bc191ecaf6dd5ef98e47959477207e0172de8e136b0f8e6810ea
7
- data.tar.gz: 5dd4f2dba0fe09db89eacf1b4772b1edb27ec48385e4b0506e4f8198f3234f099a1cb66dfe3ae21849cd445aa530f54978696523d8d524d0d55dc2ea4ff4b0af
6
+ metadata.gz: a613fcbdd71910ee54e81cf8a7dbd533bf0ceaac761b755c045a899e6eed493e88911bf78a5a80fa41e7aa1412abafe4ff1c355d6421af5f0a5c67900ef5eee0
7
+ data.tar.gz: 6098e5d61ab2bd4dce6e489a2dd659f3e9b81b2497ebd02bc73ef8a4ecae3d6799dfe9e9a91b9d6d1800e5988954ddcb0436c1dfc218de73491ee8996ec0904f
data/.gitignore CHANGED
@@ -9,3 +9,4 @@ Gemfile.lock
9
9
  /tmp
10
10
  /components
11
11
 
12
+ app.log
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
- # Specify your gem's dependencies in alephant-renderer.gemspec
4
3
  gemspec
data/Guardfile CHANGED
@@ -1,6 +1,6 @@
1
- guard 'rspec' do
1
+ guard "rspec" do
2
2
  watch(%r{^spec/.+_spec\.rb$})
3
3
  watch(%r{^lib/.+\.rb$})
4
- watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
5
- watch('spec/spec_helper.rb') { "spec" }
4
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
5
+ watch("spec/spec_helper.rb") { "spec" }
6
6
  end
data/Rakefile CHANGED
@@ -1,8 +1,8 @@
1
- $:.unshift File.join(File.dirname(__FILE__), 'lib')
1
+ $:.unshift File.join(File.dirname(__FILE__), "lib")
2
2
 
3
- require 'rspec/core/rake_task'
4
- require 'bundler/gem_tasks'
5
- require 'alephant/renderer'
6
- require 'rake/rspec'
3
+ require "rspec/core/rake_task"
4
+ require "bundler/gem_tasks"
5
+ require "alephant/renderer"
6
+ require "rake/rspec"
7
7
 
8
8
  task :default => :spec
@@ -1,7 +1,6 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path("../lib", __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'alephant/renderer/version'
3
+ require "alephant/renderer/version"
5
4
 
6
5
  Gem::Specification.new do |spec|
7
6
  spec.name = "alephant-renderer"
@@ -29,8 +28,8 @@ Gem::Specification.new do |spec|
29
28
  spec.add_development_dependency "rake"
30
29
  spec.add_development_dependency "rake-rspec"
31
30
 
32
- spec.add_runtime_dependency 'i18n'
33
- spec.add_runtime_dependency 'mustache', '~> 0.99.5'
34
- spec.add_runtime_dependency 'alephant-logger'
35
- spec.add_runtime_dependency 'hashie'
31
+ spec.add_runtime_dependency "i18n"
32
+ spec.add_runtime_dependency "mustache", "~> 0.99.5"
33
+ spec.add_runtime_dependency "alephant-logger"
34
+ spec.add_runtime_dependency "hashie"
36
35
  end
@@ -1,6 +1,6 @@
1
- require 'alephant/renderer/version'
2
- require 'alephant/renderer/view_mapper'
3
- require 'alephant/logger'
1
+ require "alephant/renderer/version"
2
+ require "alephant/renderer/view_mapper"
3
+ require "alephant/logger"
4
4
 
5
5
  module Alephant
6
6
  module Renderer
@@ -0,0 +1,11 @@
1
+ module Alephant
2
+ module Renderer
3
+ module Error
4
+ class InvalidBasePath < StandardError
5
+ def initialize(path)
6
+ super "Path '#{path}' to renderer/queue directory is invalid"
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Renderer
3
- VERSION = "2.0.1"
3
+ VERSION = "2.0.2"
4
4
  end
5
5
  end
@@ -1,15 +1,17 @@
1
- require 'alephant/logger'
1
+ require "alephant/renderer/error/invalid_path"
2
+ require "alephant/logger"
2
3
 
3
4
  module Alephant
4
5
  module Renderer
5
6
  class ViewMapper
6
7
  include Logger
7
8
 
8
- DEFAULT_LOCATION = 'components'
9
+ DEFAULT_LOCATION = "components"
9
10
 
10
- def initialize(component_id, view_base_path=nil)
11
- self.base_path = "#{view_base_path}/#{component_id}" unless view_base_path.nil?
12
- @component_id = component_id
11
+ def initialize(renderer_id, view_base_path=nil)
12
+ unless view_base_path.nil?
13
+ self.base_path = "#{view_base_path}/#{renderer_id}"
14
+ end
13
15
  end
14
16
 
15
17
  def base_path
@@ -32,7 +34,7 @@ module Alephant
32
34
  private
33
35
 
34
36
  def raise_error(path)
35
- raise("Invalid path: '#{path}'").tap do
37
+ fail(Error::InvalidBasePath.new(path)).tap do
36
38
  logger.metric("ViewMapperInvalidPath")
37
39
  logger.error(
38
40
  "event" => "ViewMapperBasePathInvalidFound",
@@ -48,7 +50,7 @@ module Alephant
48
50
  end
49
51
 
50
52
  def model_location_for(view_id)
51
- File.join(base_path, 'models', "#{view_id}.rb")
53
+ File.join(base_path, "models", "#{view_id}.rb")
52
54
  end
53
55
 
54
56
  def model_locations
@@ -60,9 +62,8 @@ module Alephant
60
62
  end
61
63
 
62
64
  def model_id_for(location)
63
- location.split('/').last.sub(/\.rb/, '')
65
+ location.split("/").last.sub(/\.rb/, "")
64
66
  end
65
-
66
67
  end
67
68
  end
68
69
  end
@@ -4,7 +4,7 @@ module Alephant
4
4
  @@views = {}
5
5
 
6
6
  def self.register(klass)
7
- @@views[underscorify(klass.name.split('::').last)] = klass
7
+ @@views[underscorify(klass.name.split("::").last)] = klass
8
8
  end
9
9
 
10
10
  def self.get_registered_class(id)
@@ -12,9 +12,9 @@ module Alephant
12
12
  end
13
13
 
14
14
  def self.underscorify(str)
15
- str.gsub(/::/, '/').
16
- gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
17
- gsub(/([a-z\d])([A-Z])/,'\1_\2').
15
+ str.gsub(/::/, "/").
16
+ gsub(/([A-Z]+)([A-Z][a-z])/,"\1_\2").
17
+ gsub(/([a-z\d])([A-Z])/,"\1_\2").
18
18
  tr("-", "_").
19
19
  downcase
20
20
  end
@@ -1,6 +1,6 @@
1
- require 'alephant/renderer/views/base'
2
- require 'mustache'
3
- require 'i18n'
1
+ require "alephant/renderer/views/base"
2
+ require "mustache"
3
+ require "i18n"
4
4
 
5
5
  module Alephant
6
6
  module Renderer
@@ -31,8 +31,8 @@ module Alephant
31
31
  Dir[
32
32
  File.join(
33
33
  Pathname.new(base_path).parent,
34
- 'locale',
35
- '*.yml')
34
+ "locale",
35
+ "*.yml")
36
36
  ]
37
37
  .flatten
38
38
  .uniq
@@ -50,13 +50,16 @@ module Alephant
50
50
  end
51
51
 
52
52
  def template_name
53
- Mustache.underscore(self.class.to_s).split('/').last
53
+ Mustache.underscore(self.class.to_s).split("/").last
54
54
  end
55
55
 
56
56
  def template_file
57
- File.join(base_path,'templates',"#{template_name}.#{template_extension}")
57
+ File.join(
58
+ base_path,
59
+ "templates",
60
+ "#{template_name}.#{template_extension}"
61
+ )
58
62
  end
59
-
60
63
  end
61
64
  end
62
65
  end
@@ -1,8 +1,7 @@
1
1
  module MyApp
2
2
  class Json < Alephant::Renderer::Views::Json
3
-
4
3
  def whitelist
5
- ['item1', 'item2']
4
+ ["item1", "item2"]
6
5
  end
7
6
 
8
7
  def item1
@@ -16,6 +15,5 @@ module MyApp
16
15
  def baz
17
16
  @data[:baz]
18
17
  end
19
-
20
18
  end
21
19
  end
@@ -1 +1 @@
1
- require_relative '../spec_helper'
1
+ require_relative "../spec_helper"
@@ -1,57 +1,57 @@
1
- require 'spec_helper'
1
+ require "spec_helper"
2
2
 
3
3
  describe Alephant::Renderer do
4
- let(:config) {
4
+ let(:config) {
5
5
  {
6
- renderer_id: 'foo',
7
- view_path: File.join(File.dirname(__FILE__), 'fixtures/components'),
6
+ :renderer_id => "foo-renderer",
7
+ :view_path => File.join(File.dirname(__FILE__), "fixtures/components"),
8
8
  }
9
9
  }
10
- let(:data) { {content: 'test'} }
10
+ let(:data) { { :content => "test" } }
11
11
 
12
- describe '.create' do
13
- context 'using valid params' do
12
+ describe ".create" do
13
+ context "using valid params" do
14
14
  let(:expected) { Alephant::Renderer::Renderer }
15
15
 
16
- specify {
16
+ specify do
17
17
  expect(subject.create(config, data)).to be_instance_of expected
18
- }
18
+ end
19
19
  end
20
20
  end
21
21
 
22
22
  describe Alephant::Renderer::Renderer do
23
23
  subject { Alephant::Renderer::Renderer.new(config, data) }
24
24
 
25
- describe '#config' do
25
+ describe "#config" do
26
26
  specify { expect(subject.config).to eql config }
27
27
  end
28
28
 
29
- describe '#data' do
29
+ describe "#data" do
30
30
  specify { expect(subject.data).to eql data }
31
31
  end
32
32
 
33
- describe '#views' do
34
- it 'returns a Hash' do
33
+ describe "#views" do
34
+ it "returns a Hash" do
35
35
  expect(subject.views).to be_a Hash
36
36
  end
37
37
 
38
- context 'using three Models' do
39
- it 'returns three Views in Hash' do
38
+ context "using three Models" do
39
+ it "returns three Views in Hash" do
40
40
  expect(subject.views.length).to eql 3
41
41
  end
42
42
  end
43
43
 
44
- context 'using `bar`, `foo`, `json` models' do
45
- it 'contains a View for `bar` model' do
46
- expect(subject.views.key? 'bar').to be
44
+ context "using `bar`, `foo`, `json` models" do
45
+ it "contains a View for `bar` model" do
46
+ expect(subject.views.key? "bar").to be
47
47
  end
48
48
 
49
- it 'contains a View for `foo` model' do
50
- expect(subject.views.key? 'foo').to be
49
+ it "contains a View for `foo` model" do
50
+ expect(subject.views.key? "foo").to be
51
51
  end
52
52
 
53
- it 'contains a View for `json` model' do
54
- expect(subject.views.key? 'json').to be
53
+ it "contains a View for `json` model" do
54
+ expect(subject.views.key? "json").to be
55
55
  end
56
56
  end
57
57
  end
@@ -1,12 +1,12 @@
1
1
  $: << File.join(File.dirname(__FILE__),"..", "lib")
2
2
 
3
- require 'pry'
3
+ require "pry"
4
4
  require "json"
5
5
 
6
- require 'alephant/renderer'
7
- require 'alephant/renderer/views'
8
- require 'alephant/renderer/views/json'
9
- require 'alephant/renderer/views/html'
10
- require 'alephant/renderer/view_mapper'
6
+ require "alephant/renderer"
7
+ require "alephant/renderer/error/invalid_path"
8
+ require "alephant/renderer/views"
9
+ require "alephant/renderer/views/json"
10
+ require "alephant/renderer/views/html"
11
+ require "alephant/renderer/view_mapper"
11
12
  require "alephant/renderer/response"
12
-
@@ -1,9 +1,9 @@
1
- require 'spec_helper'
1
+ require "spec_helper"
2
2
 
3
3
  describe Alephant::Renderer::ViewMapper do
4
- let(:component_id) { :foo }
4
+ let(:renderer_id) { "foo-renderer" }
5
5
  let(:data) {{ :foo => :bar }}
6
- let(:path) { File.join(File.dirname(__FILE__), 'fixtures/components') }
6
+ let(:path) { File.join(File.dirname(__FILE__), "fixtures/components") }
7
7
 
8
8
  subject { Alephant::Renderer::ViewMapper }
9
9
 
@@ -11,23 +11,23 @@ describe Alephant::Renderer::ViewMapper do
11
11
  context "view_base_path = invalid_path" do
12
12
  it "should raise an error" do
13
13
  expect {
14
- subject.new(component_id, './invalid_path')
15
- }.to raise_error
14
+ subject.new(renderer_id, "./invalid_path")
15
+ }.to raise_error ::Alephant::Renderer::Error::InvalidBasePath
16
16
  end
17
17
  end
18
18
 
19
- context "view_base_path = '.'" do
19
+ context "view_base_path = ." do
20
20
  it "sets base_path" do
21
21
  expect(
22
- subject.new(component_id, path).base_path
23
- ).to eq("#{path}/#{component_id}")
22
+ subject.new(renderer_id, path).base_path
23
+ ).to eq("#{path}/#{renderer_id}")
24
24
  end
25
25
  end
26
26
 
27
27
  context "view_base_path = nil" do
28
28
  it "sets base_path" do
29
29
  expect(
30
- subject.new(component_id).base_path
30
+ subject.new(renderer_id).base_path
31
31
  ).to eq(Alephant::Renderer::ViewMapper::DEFAULT_LOCATION)
32
32
  end
33
33
  end
@@ -36,7 +36,7 @@ describe Alephant::Renderer::ViewMapper do
36
36
  describe "generate(data)" do
37
37
  it "calls create_renderer for each template found" do
38
38
  expect(
39
- subject.new(component_id, path).generate(data).size
39
+ subject.new(renderer_id, path).generate(data).size
40
40
  ).to eq(3)
41
41
  end
42
42
  end
@@ -1,33 +1,32 @@
1
- require 'spec_helper'
2
- require 'fixtures/components/foo/models/json'
1
+ require "spec_helper"
2
+ require "fixtures/components/foo-renderer/models/json"
3
3
 
4
4
  describe Alephant::Renderer::Views::Json do
5
- let(:data) { {'foo' => 'test', 'bar' => 'white', 'baz' => 'list'} }
5
+ let(:data) {
6
+ {
7
+ "foo" => "a",
8
+ "bar" => "b",
9
+ "baz" => "c"
10
+ }
11
+ }
6
12
 
7
13
  describe "#content_type" do
8
-
9
14
  it "sets the correct content type" do
10
- expect(MyApp::Json.new(data).content_type).to eq('application/json')
15
+ expect(MyApp::Json.new(data).content_type).to eq("application/json")
11
16
  end
12
-
13
17
  end
14
18
 
15
19
  describe "#to_h" do
16
-
17
20
  it "generates a hash based on the white list" do
18
- expected_result = {'item1' => 'test', 'item2' => 'white'}
21
+ expected_result = { "item1" => "a", "item2" => "b" }
19
22
  expect(MyApp::Json.new(data).to_h).to eq(expected_result)
20
23
  end
21
-
22
24
  end
23
25
 
24
26
  describe "#render" do
25
-
26
27
  it "returns generated json" do
27
- expected_result = "{\"item1\":\"test\",\"item2\":\"white\"}"
28
+ expected_result = "{\"item1\":\"a\",\"item2\":\"b\"}"
28
29
  expect(MyApp::Json.new(data).render).to eq(expected_result)
29
30
  end
30
-
31
31
  end
32
-
33
32
  end
metadata CHANGED
@@ -1,221 +1,221 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-renderer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - BBC News
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-26 00:00:00.000000000 Z
11
+ date: 2015-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rspec
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - ">="
16
+ - - '>='
18
17
  - !ruby/object:Gem::Version
19
18
  version: '0'
20
- type: :development
19
+ name: rspec
21
20
  prerelease: false
21
+ type: :development
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rspec-nc
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - ">="
30
+ - - '>='
32
31
  - !ruby/object:Gem::Version
33
32
  version: '0'
34
- type: :development
33
+ name: rspec-nc
35
34
  prerelease: false
35
+ type: :development
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: guard
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
- - - ">="
44
+ - - '>='
46
45
  - !ruby/object:Gem::Version
47
46
  version: '0'
48
- type: :development
47
+ name: guard
49
48
  prerelease: false
49
+ type: :development
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: guard-rspec
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
- - - ">="
58
+ - - '>='
60
59
  - !ruby/object:Gem::Version
61
60
  version: '0'
62
- type: :development
61
+ name: guard-rspec
63
62
  prerelease: false
63
+ type: :development
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: pry
71
70
  requirement: !ruby/object:Gem::Requirement
72
71
  requirements:
73
- - - ">="
72
+ - - '>='
74
73
  - !ruby/object:Gem::Version
75
74
  version: '0'
76
- type: :development
75
+ name: pry
77
76
  prerelease: false
77
+ type: :development
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: pry-remote
85
84
  requirement: !ruby/object:Gem::Requirement
86
85
  requirements:
87
- - - ">="
86
+ - - '>='
88
87
  - !ruby/object:Gem::Version
89
88
  version: '0'
90
- type: :development
89
+ name: pry-remote
91
90
  prerelease: false
91
+ type: :development
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: pry-nav
99
98
  requirement: !ruby/object:Gem::Requirement
100
99
  requirements:
101
- - - ">="
100
+ - - '>='
102
101
  - !ruby/object:Gem::Version
103
102
  version: '0'
104
- type: :development
103
+ name: pry-nav
105
104
  prerelease: false
105
+ type: :development
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: bundler
113
112
  requirement: !ruby/object:Gem::Requirement
114
113
  requirements:
115
- - - "~>"
114
+ - - ~>
116
115
  - !ruby/object:Gem::Version
117
116
  version: '1.5'
118
- type: :development
117
+ name: bundler
119
118
  prerelease: false
119
+ type: :development
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ~>
123
123
  - !ruby/object:Gem::Version
124
124
  version: '1.5'
125
125
  - !ruby/object:Gem::Dependency
126
- name: rake
127
126
  requirement: !ruby/object:Gem::Requirement
128
127
  requirements:
129
- - - ">="
128
+ - - '>='
130
129
  - !ruby/object:Gem::Version
131
130
  version: '0'
132
- type: :development
131
+ name: rake
133
132
  prerelease: false
133
+ type: :development
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: rake-rspec
141
140
  requirement: !ruby/object:Gem::Requirement
142
141
  requirements:
143
- - - ">="
142
+ - - '>='
144
143
  - !ruby/object:Gem::Version
145
144
  version: '0'
146
- type: :development
145
+ name: rake-rspec
147
146
  prerelease: false
147
+ type: :development
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ">="
150
+ - - '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: i18n
155
154
  requirement: !ruby/object:Gem::Requirement
156
155
  requirements:
157
- - - ">="
156
+ - - '>='
158
157
  - !ruby/object:Gem::Version
159
158
  version: '0'
160
- type: :runtime
159
+ name: i18n
161
160
  prerelease: false
161
+ type: :runtime
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ">="
164
+ - - '>='
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
- name: mustache
169
168
  requirement: !ruby/object:Gem::Requirement
170
169
  requirements:
171
- - - "~>"
170
+ - - ~>
172
171
  - !ruby/object:Gem::Version
173
172
  version: 0.99.5
174
- type: :runtime
173
+ name: mustache
175
174
  prerelease: false
175
+ type: :runtime
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - "~>"
178
+ - - ~>
179
179
  - !ruby/object:Gem::Version
180
180
  version: 0.99.5
181
181
  - !ruby/object:Gem::Dependency
182
- name: alephant-logger
183
182
  requirement: !ruby/object:Gem::Requirement
184
183
  requirements:
185
- - - ">="
184
+ - - '>='
186
185
  - !ruby/object:Gem::Version
187
186
  version: '0'
188
- type: :runtime
187
+ name: alephant-logger
189
188
  prerelease: false
189
+ type: :runtime
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - ">="
192
+ - - '>='
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
- name: hashie
197
196
  requirement: !ruby/object:Gem::Requirement
198
197
  requirements:
199
- - - ">="
198
+ - - '>='
200
199
  - !ruby/object:Gem::Version
201
200
  version: '0'
202
- type: :runtime
201
+ name: hashie
203
202
  prerelease: false
203
+ type: :runtime
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - ">="
206
+ - - '>='
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
- description:
209
+ description:
210
210
  email:
211
211
  - FutureMediaNewsRubyGems@bbc.co.uk
212
212
  executables: []
213
213
  extensions: []
214
214
  extra_rdoc_files: []
215
215
  files:
216
- - ".gitignore"
217
- - ".ruby-version"
218
- - ".travis.yml"
216
+ - .gitignore
217
+ - .ruby-version
218
+ - .travis.yml
219
219
  - Gemfile
220
220
  - Guardfile
221
221
  - LICENSE.txt
@@ -223,6 +223,7 @@ files:
223
223
  - Rakefile
224
224
  - alephant-renderer.gemspec
225
225
  - lib/alephant/renderer.rb
226
+ - lib/alephant/renderer/error/invalid_path.rb
226
227
  - lib/alephant/renderer/response.rb
227
228
  - lib/alephant/renderer/version.rb
228
229
  - lib/alephant/renderer/view_mapper.rb
@@ -230,9 +231,9 @@ files:
230
231
  - lib/alephant/renderer/views/base.rb
231
232
  - lib/alephant/renderer/views/html.rb
232
233
  - lib/alephant/renderer/views/json.rb
233
- - spec/fixtures/components/foo/models/bar.rb
234
- - spec/fixtures/components/foo/models/foo.rb
235
- - spec/fixtures/components/foo/models/json.rb
234
+ - spec/fixtures/components/foo-renderer/models/bar.rb
235
+ - spec/fixtures/components/foo-renderer/models/foo.rb
236
+ - spec/fixtures/components/foo-renderer/models/json.rb
236
237
  - spec/integration/spec_helper.rb
237
238
  - spec/renderer_spec.rb
238
239
  - spec/response_spec.rb
@@ -244,30 +245,30 @@ homepage: ''
244
245
  licenses:
245
246
  - MIT
246
247
  metadata: {}
247
- post_install_message:
248
+ post_install_message:
248
249
  rdoc_options: []
249
250
  require_paths:
250
251
  - lib
251
252
  required_ruby_version: !ruby/object:Gem::Requirement
252
253
  requirements:
253
- - - ">="
254
+ - - '>='
254
255
  - !ruby/object:Gem::Version
255
256
  version: '0'
256
257
  required_rubygems_version: !ruby/object:Gem::Requirement
257
258
  requirements:
258
- - - ">="
259
+ - - '>='
259
260
  - !ruby/object:Gem::Version
260
261
  version: '0'
261
262
  requirements: []
262
- rubyforge_project:
263
- rubygems_version: 2.2.2
264
- signing_key:
263
+ rubyforge_project:
264
+ rubygems_version: 2.1.9
265
+ signing_key:
265
266
  specification_version: 4
266
267
  summary: Render HTML snippets
267
268
  test_files:
268
- - spec/fixtures/components/foo/models/bar.rb
269
- - spec/fixtures/components/foo/models/foo.rb
270
- - spec/fixtures/components/foo/models/json.rb
269
+ - spec/fixtures/components/foo-renderer/models/bar.rb
270
+ - spec/fixtures/components/foo-renderer/models/foo.rb
271
+ - spec/fixtures/components/foo-renderer/models/json.rb
271
272
  - spec/integration/spec_helper.rb
272
273
  - spec/renderer_spec.rb
273
274
  - spec/response_spec.rb