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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 337ccb887e118d5d1220c0f3d169e7b5818d44d8
4
- data.tar.gz: 3fc46560189f1cea77c830ed598b17ac2654eada
3
+ metadata.gz: ebc8a4a49401550f8549ea98b802f8eb523d9ef4
4
+ data.tar.gz: d8f4339ec84a7dc8fb03088db8f38ee802072a42
5
5
  SHA512:
6
- metadata.gz: 3f46132db9ebbaed89c5724e4688e1aabf16f951119fc4b9fc159435dffdfd0e270aed8b913c479b31f9eaf7a5b843744d71285016bf010ac7e937e6cdb77ee6
7
- data.tar.gz: 7206041f5d04a31f9abfcbde92b61b8bf56d8e45b48547e62ef9a5915eeef7923787ae354684b6a7db419132d434ff4acb1f2fcc8ba267640a992a3c1a97aec4
6
+ metadata.gz: 67886aafa505ee2ffe6146742a671b5cae23f4a38641fd536e24821383a30a852221e104b512041aadfd01e867c3def28654603a9b2ac19aa591ef7d3867119c
7
+ data.tar.gz: c858be8d0075d5b0bf448313ec1ce47ef6167d1206cc684cfc8dcea61569ad04cbe8a43eef7de5efc19e2d6382a952673fff85d90065f7812786b1e70c0776d5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple-sql (0.3.6)
4
+ simple-sql (0.3.7)
5
5
  pg (~> 0.20)
6
6
  pg_array_parser (~> 0)
7
7
 
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
@@ -1,5 +1,5 @@
1
1
  module Simple
2
2
  module SQL
3
- VERSION = "0.3.6"
3
+ VERSION = "0.3.7"
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.3.6
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-03 00:00:00.000000000 Z
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