rasti-db 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rasti/db/query.rb +4 -4
- data/lib/rasti/db/version.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: 5c12a313c4f6a804f756dd54cb07faa290a5901e
|
4
|
+
data.tar.gz: 0f2e3fe0233fe829ff370e8150eb85c5cdfe44a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1efd610058a919b812f6051e067c432b3179e853ba18625c47f4b5b5b4ca7a875d42428a8ac8afefc7135bf97d4be11757c81d51f6d0778409571609f8928ca1
|
7
|
+
data.tar.gz: 040e78c5470f454bca8ca10ddc75629e228a03e62e703ea849b5cb8b81de70feebb0878e598b925d147b15ba3fa2b97e8174c867bd6a5754453de90a73f55607
|
data/lib/rasti/db/query.rb
CHANGED
@@ -67,13 +67,13 @@ module Rasti
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def first
|
70
|
-
|
71
|
-
|
70
|
+
row = dataset.first
|
71
|
+
row ? collection_class.model.new(with_relations(row)) : nil
|
72
72
|
end
|
73
73
|
|
74
74
|
def last
|
75
|
-
|
76
|
-
|
75
|
+
row = dataset.last
|
76
|
+
row ? collection_class.model.new(with_relations(row)) : nil
|
77
77
|
end
|
78
78
|
|
79
79
|
def to_s
|
data/lib/rasti/db/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rasti-db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Naiman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|