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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62beba0ffa576fd7850b3956e291803ab65df121
4
- data.tar.gz: e23e631bacf3d357ad45e3e883a9418560a273ae
3
+ metadata.gz: aa5a3237d24d41a3c82c445b62cf1925f91d45b6
4
+ data.tar.gz: 3b0651212d1b30377b286bbc5db8adb80882439d
5
5
  SHA512:
6
- metadata.gz: fbd8143ba303ec112d94cdd5a108f9a066b6d869677e1516bea0ba308a43f82c6b68398252163c61bc34091a25526974f1b0dec833e38067872cbb67a32059e4
7
- data.tar.gz: 0fe8a51f3556c1c865825c3f575a2a0506e991b66d6fd3de889b60181469a08c5775a0472471e971a8a9cda9e4a2f42a9ae88702ab874e80e106a89f9f028018
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
- builder = builder_klass.new(objects, :name => name, :context => context)
64
+ local_objects = item ? [item] : objects
65
+ builder = builder_klass.new(local_objects, :name => name, :context => context)
65
66
 
66
- attrs = {}
67
+ local_attrs = {}
67
68
 
68
69
  opts.each do |key, value|
69
- attrs[key] = value_from_proc(value)
70
+ local_attrs[key] = value_from_proc(value)
70
71
  end
71
72
 
72
- builder.build(attrs)
73
+ builder.build(local_attrs)
73
74
  end
74
75
 
75
76
  def value_from_proc(value)
@@ -1,3 +1,3 @@
1
1
  module Conglomerate
2
- VERSION = "0.11.1"
2
+ VERSION = "0.12.0"
3
3
  end
@@ -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" => "1981-01-22T10:00:00Z"},
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.11.1
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-08 00:00:00.000000000 Z
12
+ date: 2014-07-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler