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 +4 -4
- data/lib/materialize/base_builder.rb +2 -2
- data/lib/materialize/repo.rb +2 -5
- data/lib/materialize/version.rb +1 -1
- data/materialize-0.2.2.gem +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b27db19dd3245969671a8b9913c493a309fc404
|
4
|
+
data.tar.gz: 76239d9cf20591e9616a2b3ed975c6162c81b693
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/materialize/repo.rb
CHANGED
@@ -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
|
|
data/lib/materialize/version.rb
CHANGED
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.
|
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:
|