db-postgres 0.5.2 → 0.5.3

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
  SHA256:
3
- metadata.gz: cf6b2560d3bc8cc9b355b8e316eac4cf5c85fc9e134ee78aa3a36284e773ef4a
4
- data.tar.gz: e69437b200e76fe8e16e96d73cc674f8f632ac468bcc328badbce3fa91046194
3
+ metadata.gz: 1d90cb0b30ac21b51181052703e14371c17c8bcb40bca035c422154ce9449eac
4
+ data.tar.gz: 01f29c76a41b51478b5a1d788ea414a46070771ea6f6de511915ede92de25556
5
5
  SHA512:
6
- metadata.gz: 971db1d0d40d8817e6169c1d090f98fd1ddb6b4e2dcb0c5b7ee7cd05ddcbb065d54fe1ec243635cbc53a83b4b0f2c0e18328193b1b20481fb1adc1b370944a3c
7
- data.tar.gz: de60cce07b7cadc009344fe4cb370978b741c2f99c2485adc24f88147c4b59171f96a133490c511b9bccd43a104536f971a3f59fe43f02000a8f858322a8bb82
6
+ metadata.gz: dcffe2a05c545de9dff9f4828a6f78994ca837f9c14fea9b2832dc1e035370d4ffab0221919e6a700dd35ba89edc1848c5510269f3ef419d92deb0ad07dbfacd
7
+ data.tar.gz: 16e19a3740ce534ff2e5cefcf73dc6c766bf65eb1b8a3938302bcd6943f6191eea45a6ca83270b5e39e55a466164bcdf50e3322776d031ee30234cacfff6ce2d
@@ -103,13 +103,20 @@ module DB
103
103
  results = []
104
104
 
105
105
  self.each do |row|
106
- results << yield row
106
+ results << yield(row)
107
107
  end
108
108
 
109
109
  return results
110
110
  end
111
111
 
112
112
  def to_a
113
+ rows = []
114
+
115
+ self.each do |row|
116
+ rows << row
117
+ end
118
+
119
+ return rows
113
120
  end
114
121
 
115
122
  protected
@@ -20,6 +20,6 @@
20
20
 
21
21
  module DB
22
22
  module Postgres
23
- VERSION = "0.5.2"
23
+ VERSION = "0.5.3"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db-postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams