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 +4 -4
- data/lib/alephant/preview/server.rb +5 -3
- data/lib/alephant/preview/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e6b3b1d0a0a5b5cfd789cc2d629d138d30dd228
|
4
|
+
data.tar.gz: 436f16dbd0cbdaf5f0411606c8460d75d6110537
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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
|
-
|
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}
|
82
|
+
"#{base_path}/fixtures/#{fixture}.json"
|
81
83
|
end
|
82
84
|
|
83
85
|
def preview_template_location
|