conglomerate 0.12.0 → 0.12.1

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: aa5a3237d24d41a3c82c445b62cf1925f91d45b6
4
- data.tar.gz: 3b0651212d1b30377b286bbc5db8adb80882439d
3
+ metadata.gz: 3d0e7e24faa2c272101163702c11d4f28af77053
4
+ data.tar.gz: ad534f262ee4e99463beb4c74b8e04c4c8de09a8
5
5
  SHA512:
6
- metadata.gz: b88218f1aa3288a74b321b71d43610542841cedf0cba2543212f3a3ce5545525092fad0285bed9ffe55342e81330e7b1a1b0c0cd7eaa8c6777e242bd1ec39582
7
- data.tar.gz: cdff81c83c8fb6b05e5f736d1c720167523f8e084785770d2cf69dd839e9990619a8ce1145e4d985e009c0f94bd74b08feb6f8b4ae26abbba5cf4df1d0493c09
6
+ metadata.gz: ba39a5727966b540190b98c57712aa09ea6898bd4f6263547bf0b28dbc142ce9f6c14e25dbc6ecef05ed722c6438f698d3ca7017b017cac51b4c2278f5676593
7
+ data.tar.gz: af8fbe7b953078f89de45f7da8b903c7e244fda34804df3a4d7b4fd52bde202d88a5043fe2c5d0aa505a57bcf4b922682fa659ba210c78897a2eeb12b53aaec7
@@ -7,7 +7,7 @@ module Conglomerate
7
7
  module BuildOverride
8
8
  def build(attrs = {})
9
9
  item = objects.first
10
- val = item.send(_builder_name) if item
10
+ val = item.send(_builder_name) if item && item.respond_to?(_builder_name)
11
11
 
12
12
  attrs = {
13
13
  :name => _builder_name,
@@ -1,3 +1,3 @@
1
1
  module Conglomerate
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.1"
3
3
  end
@@ -19,6 +19,7 @@ class ConglomerateTestParticleSerializer
19
19
  datum :event_date_time
20
20
  datum :event_date
21
21
  datum :event_time
22
+ datum :alternately_named_event_time, :value => Proc.new{ item.event_time }
22
23
 
23
24
  datum :is_available
24
25
 
@@ -218,6 +219,7 @@ describe Conglomerate do
218
219
  {"name" => "event_date_time", "value" => "1981-11-28T10:00:00Z"},
219
220
  {"name" => "event_date", "value" => "1981-11-28"},
220
221
  {"name" => "event_time", "value" => "1981-11-28T10:00:00Z"},
222
+ {"name" => "alternately_named_event_time", "value" => "1981-11-28T10:00:00Z"},
221
223
  {"name" => "is_available", "value" => false}
222
224
  ],
223
225
  "links" => [
@@ -256,6 +258,7 @@ describe Conglomerate do
256
258
  {"name" => "event_date_time", "value" => "1981-11-28T10:00:00Z"},
257
259
  {"name" => "event_date", "value" => "1981-11-28"},
258
260
  {"name" => "event_time", "value" => "1981-11-28T10:00:00Z"},
261
+ {"name" => "alternately_named_event_time", "value" => "1981-11-28T10:00:00Z"},
259
262
  {"name" => "is_available", "value" => false}
260
263
  ],
261
264
  "links" => [
@@ -275,6 +278,7 @@ describe Conglomerate do
275
278
  {"name" => "event_date_time", "value" => "1982-01-22T10:00:00Z"},
276
279
  {"name" => "event_date", "value" => "1981-01-22"},
277
280
  {"name" => "event_time", "value" => "1981-01-22T10:00:00Z"},
281
+ {"name" => "alternately_named_event_time", "value" => "1981-01-22T10:00:00Z"},
278
282
  {"name" => "is_available", "value" => true}
279
283
  ],
280
284
  "links" => [
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.12.0
4
+ version: 0.12.1
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-11 00:00:00.000000000 Z
12
+ date: 2014-07-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler