simple-sql 0.3.6 → 0.3.7
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/Gemfile.lock +1 -1
- data/lib/simple/sql.rb +2 -2
- data/lib/simple/sql/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: ebc8a4a49401550f8549ea98b802f8eb523d9ef4
|
4
|
+
data.tar.gz: d8f4339ec84a7dc8fb03088db8f38ee802072a42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67886aafa505ee2ffe6146742a671b5cae23f4a38641fd536e24821383a30a852221e104b512041aadfd01e867c3def28654603a9b2ac19aa591ef7d3867119c
|
7
|
+
data.tar.gz: c858be8d0075d5b0bf448313ec1ce47ef6167d1206cc684cfc8dcea61569ad04cbe8a43eef7de5efc19e2d6382a952673fff85d90065f7812786b1e70c0776d5
|
data/Gemfile.lock
CHANGED
data/lib/simple/sql.rb
CHANGED
@@ -81,13 +81,13 @@ module Simple
|
|
81
81
|
# [Deprecated] Runs a query, with optional arguments, and returns the
|
82
82
|
# result as an array of Hashes.
|
83
83
|
def records(sql, *args, into: Hash, &block)
|
84
|
-
all sql, *args, into: into, &block
|
84
|
+
all sql, *args, into: (into || Hash), &block
|
85
85
|
end
|
86
86
|
|
87
87
|
# [Deprecated] Runs a query and returns the first result row of a query
|
88
88
|
# as a Hash.
|
89
89
|
def record(sql, *args, into: Hash)
|
90
|
-
ask sql, *args, into: into
|
90
|
+
ask sql, *args, into: (into || Hash)
|
91
91
|
end
|
92
92
|
|
93
93
|
extend Forwardable
|
data/lib/simple/sql/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-sql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- radiospiel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-04-
|
12
|
+
date: 2018-04-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pg_array_parser
|