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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eac0349056cf626fcdbd7fc62978ee2a1e3e3f96
4
- data.tar.gz: 178462ab5206e9869673d6c9d8c71c53759b8552
3
+ metadata.gz: ce8b7cebc7c2499dd0ba29b93524d4b93052315a
4
+ data.tar.gz: f3db751d7b3089ff717fb50b7700e220221788d2
5
5
  SHA512:
6
- metadata.gz: 5db3026af56d86f7c14b28ff10fc097852aae611fac6676f62e5dccfa0171de7273d34a9d275aaa18f4026ca205d4c8eb999cc20641134f781c2e7f6995532d9
7
- data.tar.gz: fbc2dd657279e8a805fb1cf09fdb0164da1922428337abd6d204c93583ea6b5292c42ab51ce6e1ca13053cecd8a814907b240fc7bc2fb39094e95ea4b9a676eb
6
+ metadata.gz: 0c6ee29293fa64f692cba843dd44175be58987456973d34bd346d88b5392871cf14f16b0d0308a21a725ba91bc5ef6af09e607cc68e5761c4cfea671c035afad
7
+ data.tar.gz: 9a31e0bab114f22eca48d423115dff3fc102e1d623d152d951f52963dfd9c6ea01a9aab7b380f7f0fca8356bc5cabe1fa5328f4a55cb64144af35b3aa3a72a98
@@ -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
- mapper = data_mapper_factory.create(id, {})
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
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Preview
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
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.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Kenny