alephant-preview 0.0.3 → 0.0.5.1

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: 6ca692cb8be7c816e8dfe71d2bc2ce9adfb73352
4
- data.tar.gz: 05aeb2aacfc0e0ac62924dd27e44d3496866a8ed
3
+ metadata.gz: 7e6b3b1d0a0a5b5cfd789cc2d629d138d30dd228
4
+ data.tar.gz: 436f16dbd0cbdaf5f0411606c8460d75d6110537
5
5
  SHA512:
6
- metadata.gz: 16b8979f67cea3ddb445fdccfd4875528bcd01e0c8cadc8a20acb32210074a2dc62bafff338b46fecd65572341fd5e4c0bc7165979d509fa4076bd4fdc6dc0c8
7
- data.tar.gz: 892dc0f2591fc2c16dbfe3278bb200e23b8a713aa81f6c3a9439fe144c29a58b947e67a667f9c4b34ee18e9a6779a0047f2f461eaa20dedb88aaa411b56d02b5
6
+ metadata.gz: 0d807b29d32ae450bde3f7097036384c11611b9cfffe948992e53a328b0c01e564ed66d8022e3add7a0e91bebfcf51991609a117a84e6d02fb3da79ab257efeb
7
+ data.tar.gz: 61451cddeeacca2ef8047303506c2d8af063af98f2c2b3317dc3594171002c7a65ecc1de789e8361516ea264530ee750f0bd7fce9ca94b2bec01410bceadb58f
@@ -37,7 +37,7 @@ module Alephant
37
37
  private
38
38
  def model
39
39
  require model_location
40
- ::Alephant::Views.get_registered_class(id).new(fixture_data)
40
+ ::Alephant::Views.get_registered_class(template).new(fixture_data)
41
41
  end
42
42
 
43
43
  def base_path
@@ -65,7 +65,9 @@ module Alephant
65
65
  end
66
66
 
67
67
  def fixture_data
68
- parser.parse raw_fixture_data
68
+ msg = Struct.new(:body)
69
+ .new(raw_fixture_data)
70
+ parser.parse msg
69
71
  end
70
72
 
71
73
  def raw_fixture_data
@@ -77,7 +79,7 @@ module Alephant
77
79
  end
78
80
 
79
81
  def fixture_location
80
- "#{base_path}/#{id}/fixtures/#{fixture}.json"
82
+ "#{base_path}/fixtures/#{fixture}.json"
81
83
  end
82
84
 
83
85
  def preview_template_location
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Preview
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.5.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-preview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Kenny