alephant-preview 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/alephant-preview +2 -0
- data/lib/alephant/preview/server.rb +1 -2
- 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: ce8b7cebc7c2499dd0ba29b93524d4b93052315a
|
4
|
+
data.tar.gz: f3db751d7b3089ff717fb50b7700e220221788d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c6ee29293fa64f692cba843dd44175be58987456973d34bd346d88b5392871cf14f16b0d0308a21a725ba91bc5ef6af09e607cc68e5761c4cfea671c035afad
|
7
|
+
data.tar.gz: 9a31e0bab114f22eca48d423115dff3fc102e1d623d152d951f52963dfd9c6ea01a9aab7b380f7f0fca8356bc5cabe1fa5328f4a55cb64144af35b3aa3a72a98
|
data/bin/alephant-preview
CHANGED
@@ -5,8 +5,10 @@ require 'trollop'
|
|
5
5
|
|
6
6
|
root = Pathname.new(__FILE__).dirname.parent
|
7
7
|
lib_path = (root + 'lib').realdirpath
|
8
|
+
current_dir = File.join(Dir.pwd, "lib")
|
8
9
|
|
9
10
|
$LOAD_PATH.unshift(lib_path)
|
11
|
+
$LOAD_PATH.unshift(current_dir)
|
10
12
|
|
11
13
|
require 'alephant/preview'
|
12
14
|
require 'alephant/preview/tasks'
|
@@ -98,8 +98,7 @@ module Alephant
|
|
98
98
|
loader = Alephant::Preview::FixtureLoader.new(base_path)
|
99
99
|
data_mapper_factory = Alephant::Publisher::Request::DataMapperFactory.new(loader, BASE_LOCATION)
|
100
100
|
begin
|
101
|
-
|
102
|
-
mapper.data
|
101
|
+
data_mapper_factory.create(id, params).data
|
103
102
|
rescue Alephant::Publisher::Request::InvalidApiResponse
|
104
103
|
raise "The JSON passed to the data mapper isn't valid"
|
105
104
|
rescue StandardError => e
|