simple-sql 0.4.16 → 0.4.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/simple/sql/connection_adapter.rb +2 -1
- data/lib/simple/sql/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fe220ddf0b19ac279a5c7ae9f5c34aae5fee3083
|
4
|
+
data.tar.gz: f42f272577b35138346713a1ea54e26242de8f05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d9b093d63dbf7ba14b390d6d3bd8ef7c3d2efb70b98f6dc19c62ec624b78f602da463bb67d0019f4a82e1e7817e14f15175f9d53931e302c1887fd5ca749c93
|
7
|
+
data.tar.gz: ff4f2127dceaa8241694b2e58ed4bba067930380b66c0345be06202421f03fd128a2efff9f23640ea4c2cbe00069209331edce8f5f57df989e241f069f70b027
|
@@ -60,7 +60,8 @@ module Simple::SQL::ConnectionAdapter
|
|
60
60
|
end
|
61
61
|
|
62
62
|
# Runs a query and prints the results via "table_print"
|
63
|
-
def print(sql, *args)
|
63
|
+
def print(sql, *args, into: nil)
|
64
|
+
raise ArgumentError, "You cannot call Simple::SQL.print with into: #{into.inspect}" unless into.nil?
|
64
65
|
require "table_print"
|
65
66
|
records = all sql, *args, into: Hash
|
66
67
|
tp records
|
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.4.
|
4
|
+
version: 0.4.17
|
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-08-
|
12
|
+
date: 2018-08-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pg_array_parser
|
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
243
|
version: '0'
|
244
244
|
requirements: []
|
245
245
|
rubyforge_project:
|
246
|
-
rubygems_version: 2.
|
246
|
+
rubygems_version: 2.5.1
|
247
247
|
signing_key:
|
248
248
|
specification_version: 4
|
249
249
|
summary: SQL with a simple interface
|