materialize 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,11 +2,11 @@ module Materialize
2
2
  class BaseBuilder
3
3
  class << self
4
4
 
5
- def build(data, repo, options)
5
+ def build(data, options)
6
6
  entity_class.new(data)
7
7
  end
8
8
 
9
- def build_all(data, repo, options)
9
+ def build_all(data, options)
10
10
  entity_class.wrap(data)
11
11
  end
12
12
 
@@ -14,11 +14,12 @@ module Materialize
14
14
 
15
15
  data, builder_class = process(data_source_class, query, args_to_pass)
16
16
  options.delete(:args)
17
+ options[:repo] = self
17
18
 
18
19
  if data.is_a?(Array)
19
- builder_class.build_all(data, self, options)
20
+ builder_class.build_all(data, options)
20
21
  else
21
- builder_class.build(data, self, options)
22
+ builder_class.build(data, options)
22
23
  end
23
24
  end
24
25
 
@@ -1,3 +1,3 @@
1
1
  module Materialize
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: materialize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Fiser
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-22 00:00:00.000000000 Z
11
+ date: 2017-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -69,6 +69,7 @@ files:
69
69
  - Rakefile
70
70
  - bin/console
71
71
  - bin/setup
72
+ - erl_crash.dump
72
73
  - lib/materialize.rb
73
74
  - lib/materialize/base_builder.rb
74
75
  - lib/materialize/entity.rb