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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3346ca61759323bb5a2cfe167638edf9fc9b36b
4
- data.tar.gz: 816e89c418e13e06208bc34c4a62da38cb46fa18
3
+ metadata.gz: 5c12a313c4f6a804f756dd54cb07faa290a5901e
4
+ data.tar.gz: 0f2e3fe0233fe829ff370e8150eb85c5cdfe44a7
5
5
  SHA512:
6
- metadata.gz: 93d18d2aaf1f84c78f14ee37aecb65c9f5d08c4b1484989cf1b0125f9440bf6afe612cc80e135fd01e5986ac23f325ec361021adb8123b660d62a86dccfb8ae0
7
- data.tar.gz: 7e38fc6ee6cb1dd9348a002c4ba13c02a6007331fb741f5c3be04f2dfb8300d6a8c8d531f59dee24d0f7de13ad60e1af0adb669da4807fedc2f5da5576779097
6
+ metadata.gz: 1efd610058a919b812f6051e067c432b3179e853ba18625c47f4b5b5b4ca7a875d42428a8ac8afefc7135bf97d4be11757c81d51f6d0778409571609f8928ca1
7
+ data.tar.gz: 040e78c5470f454bca8ca10ddc75629e228a03e62e703ea849b5cb8b81de70feebb0878e598b925d147b15ba3fa2b97e8174c867bd6a5754453de90a73f55607
@@ -67,13 +67,13 @@ module Rasti
67
67
  end
68
68
 
69
69
  def first
70
- instance = with_relations dataset.first
71
- instance ? collection_class.model.new(instance) : nil
70
+ row = dataset.first
71
+ row ? collection_class.model.new(with_relations(row)) : nil
72
72
  end
73
73
 
74
74
  def last
75
- instance = with_relations dataset.last
76
- instance ? collection_class.model.new(instance) : nil
75
+ row = dataset.last
76
+ row ? collection_class.model.new(with_relations(row)) : nil
77
77
  end
78
78
 
79
79
  def to_s
@@ -1,5 +1,5 @@
1
1
  module Rasti
2
2
  module DB
3
- VERSION = '0.2.3'
3
+ VERSION = '0.2.4'
4
4
  end
5
5
  end
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.3
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-07 00:00:00.000000000 Z
11
+ date: 2017-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel