rrod 1.0.0.alpha.3 → 1.0.0.alpha.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d82f0abda015c521b93a24bd2ef581f66fed60da
4
- data.tar.gz: effc83e7e92771342ecb14ca08213544655d08a8
3
+ metadata.gz: 4101da6fbe1ed4d4fcf254abdb4acca0728b46d1
4
+ data.tar.gz: 76b4c7882a859a31c3e79c981b8455a42c03f4a0
5
5
  SHA512:
6
- metadata.gz: 0a3348a6bab3571b808fa5807abbf050123e153102d5608c186ca3436d7ffccd9267d14ef1898e2bcbb6300254193bc5dcbee31bb1f167a082fc8a362cd97569
7
- data.tar.gz: e07f22c44e916656083ab0a50a63bf30b4a7ecb286450bd9de97a5566c7dcf0327237c7686431eb8d138f5b7ca80a656fd95467754cdfe071ca849adfc84bb70
6
+ metadata.gz: 8990dc1552f05775cf3e61af09eed0515fdafb5ea19a2eb0c4294fc4090f487e148cb4cdac07778ceccc417a98233f753d1b91362dd5ff565dc66cef683a2e28
7
+ data.tar.gz: 92366b857caa0a345965b9befaf882f5d57d0896315cdf15e0ec6b54727994dc2c45d31a34dafe48812557c4ce6f3a7f83402f0cc3c88569164809ab87f2daf3
@@ -30,7 +30,7 @@ module Rrod
30
30
  end
31
31
 
32
32
  def build(attributes={})
33
- push attributes
33
+ push(attributes).last
34
34
  end
35
35
 
36
36
  def push(value)
data/lib/rrod/version.rb CHANGED
@@ -1,2 +1,2 @@
1
1
  Rrod = Module.new unless defined? Rrod
2
- Rrod::VERSION = '1.0.0.alpha.3'
2
+ Rrod::VERSION = '1.0.0.alpha.3.1'
@@ -20,6 +20,11 @@ describe Rrod::Model::Collection do
20
20
  expect(collection.collection.length).to eq 2
21
21
  expect(collection.collection.last.name).to eq('Lion')
22
22
  end
23
+
24
+ it "returns the built object" do
25
+ object = collection.build(name: 'Molle')
26
+ expect(object).to be_a(Pet)
27
+ end
23
28
  end
24
29
 
25
30
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rrod
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha.3
4
+ version: 1.0.0.alpha.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Hunter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-30 00:00:00.000000000 Z
11
+ date: 2015-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: riak-client