conglomerate 0.11.1 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/conglomerate/builder_call.rb +5 -4
- data/lib/conglomerate/version.rb +1 -1
- data/spec/particle_builder_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa5a3237d24d41a3c82c445b62cf1925f91d45b6
|
4
|
+
data.tar.gz: 3b0651212d1b30377b286bbc5db8adb80882439d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b88218f1aa3288a74b321b71d43610542841cedf0cba2543212f3a3ce5545525092fad0285bed9ffe55342e81330e7b1a1b0c0cd7eaa8c6777e242bd1ec39582
|
7
|
+
data.tar.gz: cdff81c83c8fb6b05e5f736d1c720167523f8e084785770d2cf69dd839e9990619a8ce1145e4d985e009c0f94bd74b08feb6f8b4ae26abbba5cf4df1d0493c09
|
@@ -61,15 +61,16 @@ module Conglomerate
|
|
61
61
|
builder_klass.class_eval(&block) if block
|
62
62
|
end
|
63
63
|
|
64
|
-
|
64
|
+
local_objects = item ? [item] : objects
|
65
|
+
builder = builder_klass.new(local_objects, :name => name, :context => context)
|
65
66
|
|
66
|
-
|
67
|
+
local_attrs = {}
|
67
68
|
|
68
69
|
opts.each do |key, value|
|
69
|
-
|
70
|
+
local_attrs[key] = value_from_proc(value)
|
70
71
|
end
|
71
72
|
|
72
|
-
builder.build(
|
73
|
+
builder.build(local_attrs)
|
73
74
|
end
|
74
75
|
|
75
76
|
def value_from_proc(value)
|
data/lib/conglomerate/version.rb
CHANGED
@@ -272,7 +272,7 @@ describe Conglomerate do
|
|
272
272
|
{"name" => "event_id", "value" => 3},
|
273
273
|
{"name" => "roster_id", "value" => nil},
|
274
274
|
{"name" => "team_ids", "value" => [3,4]},
|
275
|
-
{"name" => "event_date_time", "value" => "
|
275
|
+
{"name" => "event_date_time", "value" => "1982-01-22T10:00:00Z"},
|
276
276
|
{"name" => "event_date", "value" => "1981-01-22"},
|
277
277
|
{"name" => "event_time", "value" => "1981-01-22T10:00:00Z"},
|
278
278
|
{"name" => "is_available", "value" => true}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conglomerate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Emmons
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-07-
|
12
|
+
date: 2014-07-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|