rrod 1.0.0.alpha.2 → 1.0.0.alpha.3
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 +4 -4
- data/lib/rrod/model/finders.rb +1 -1
- data/lib/rrod/version.rb +1 -1
- data/spec/rrod/model/finders_spec.rb +4 -4
- 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: d82f0abda015c521b93a24bd2ef581f66fed60da
|
4
|
+
data.tar.gz: effc83e7e92771342ecb14ca08213544655d08a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a3348a6bab3571b808fa5807abbf050123e153102d5608c186ca3436d7ffccd9267d14ef1898e2bcbb6300254193bc5dcbee31bb1f167a082fc8a362cd97569
|
7
|
+
data.tar.gz: e07f22c44e916656083ab0a50a63bf30b4a7ecb286450bd9de97a5566c7dcf0327237c7686431eb8d138f5b7ca80a656fd95467754cdfe071ca849adfc84bb70
|
data/lib/rrod/model/finders.rb
CHANGED
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.
|
2
|
+
Rrod::VERSION = '1.0.0.alpha.3'
|
@@ -49,7 +49,7 @@ describe Rrod::Model::Finders, integration: true do
|
|
49
49
|
end
|
50
50
|
|
51
51
|
it "will raise an exception if one can't be found with a !" do
|
52
|
-
expect { model.find_by! zombies: true }.to raise_error(
|
52
|
+
expect { model.find_by! zombies: true }.to raise_error(Rrod::Model::NotFound)
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
@@ -66,12 +66,12 @@ describe Rrod::Model::Finders, integration: true do
|
|
66
66
|
expect {model.find_all_by(id: instance.id)}.to raise_error(ArgumentError)
|
67
67
|
end
|
68
68
|
|
69
|
-
it "will return an
|
70
|
-
expect
|
69
|
+
it "will return an empty array if none can be found" do
|
70
|
+
expect(model.find_all_by(zombies: 'yes plz')).to be_empty
|
71
71
|
end
|
72
72
|
|
73
73
|
it "will raise an exception if none can be found with a !" do
|
74
|
-
expect { model.find_all_by! brains: :none }.to raise_error(
|
74
|
+
expect { model.find_all_by! brains: :none }.to raise_error(Rrod::Model::NotFound)
|
75
75
|
end
|
76
76
|
end
|
77
77
|
end
|
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.
|
4
|
+
version: 1.0.0.alpha.3
|
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-
|
11
|
+
date: 2014-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: riak-client
|