simple-sql 0.4.16 → 0.4.17

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: b4f706ba30f52523774ddb9ca66aaa18da0fa89405dd421a8b2c85dd4b292c82
4
- data.tar.gz: 17425c139b491a43f5f6ac5d9e61dc71bc6393d0a81cef4816fcc07b8f133e5c
2
+ SHA1:
3
+ metadata.gz: fe220ddf0b19ac279a5c7ae9f5c34aae5fee3083
4
+ data.tar.gz: f42f272577b35138346713a1ea54e26242de8f05
5
5
  SHA512:
6
- metadata.gz: 38bc855d07f82e53d33049c3ddbb449de912951d7d77045577aa0e906a539b4135ff72ec2bf049b774c6b4efa57f6b930f9e8d2d5741c5b5c1b7b62273678313
7
- data.tar.gz: f85db28949d2900527411fad89809a7fdfbf9a21e58d62287cb0bc445ce264f3c3105afef9c578ce822de1bc7fd2e23cdd5cc97e4fb1312c2de1e81b4a4878cb
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
@@ -1,5 +1,5 @@
1
1
  module Simple
2
2
  module SQL
3
- VERSION = "0.4.16"
3
+ VERSION = "0.4.17"
4
4
  end
5
5
  end
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.16
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-19 00:00:00.000000000 Z
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.7.7
246
+ rubygems_version: 2.5.1
247
247
  signing_key:
248
248
  specification_version: 4
249
249
  summary: SQL with a simple interface