materialize 0.2.2 → 0.2.3

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: b11d8deb744096dd18e58e02759189127a4cb40f
4
- data.tar.gz: 0a48b538819b8d32007ec331a952a6c6923745cd
3
+ metadata.gz: 9b27db19dd3245969671a8b9913c493a309fc404
4
+ data.tar.gz: 76239d9cf20591e9616a2b3ed975c6162c81b693
5
5
  SHA512:
6
- metadata.gz: 3f7a69893e71a35909fb2a3ba44e6c428cde138a696b9c4424e9a73445ac64570ab7eeb5fa632c3a108c35da67f29141a6eb089d75ef5edaa234107965673b19
7
- data.tar.gz: 869453c22e7bc8f97274080121c3f06e13052f0564199166fe1e104942bb3e398da98d5bdb1fef3ad233689d3ac27a5ca7d3129717f2222909b9c40b27ed8bf7
6
+ metadata.gz: b0a3ceb50638d835ccc8a9bc775f3cd86f0be22c00673ad1fc65652a16ffe98f3902a5df0b54c8b2958a06806d04a2107b0af2412523a20877bd3a8b19d798a2
7
+ data.tar.gz: 9e7c4642eea403c7171ee82948d7a0a49a7ced05b7b26489fee153a8cc8d709b11f4aa53c99a9b0ffcf6de47b31dcd3c23cad82ccfbc92d19c21946d4a94e06d
@@ -2,11 +2,11 @@ module Materialize
2
2
  class BaseBuilder
3
3
  class << self
4
4
 
5
- def build(data, options)
5
+ def build(data, repo, options)
6
6
  entity_class.new(data)
7
7
  end
8
8
 
9
- def build_all(data, options)
9
+ def build_all(data, repo, options)
10
10
  entity_class.wrap(data)
11
11
  end
12
12
 
@@ -14,14 +14,11 @@ 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
18
- # this is temporary
19
- options[:token] = token unless token.nil?
20
17
 
21
18
  if data.is_a?(Array)
22
- builder_class.build_all(data, options)
19
+ builder_class.build_all(data, self, options)
23
20
  else
24
- builder_class.build(data, options)
21
+ builder_class.build(data, self, options)
25
22
  end
26
23
  end
27
24
 
@@ -1,3 +1,3 @@
1
1
  module Materialize
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: materialize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Fiser
@@ -76,6 +76,7 @@ files:
76
76
  - lib/materialize/repo.rb
77
77
  - lib/materialize/version.rb
78
78
  - materialize-0.2.1.gem
79
+ - materialize-0.2.2.gem
79
80
  - materialize.gemspec
80
81
  homepage: http://bluebear.io
81
82
  licenses: