db 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/db/query.rb +7 -1
  3. data/lib/db/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab70e3c0b34d5ba7f9ff40ffa216ece2a56ccc2409c05101e37691e73c7082c3
4
- data.tar.gz: d2b813fef024e46e6ef001b3d60314b80244f80474302d344b9595d9a92cb84c
3
+ metadata.gz: bdc24fd3f82f67c2497814f94088dd293a31ea6ac31f1e4a2915208d4b93ccf1
4
+ data.tar.gz: f9f993cf1f225ca8d959a1a86b97e584dd40e17fc26a6c6f39a8e532d3957ec9
5
5
  SHA512:
6
- metadata.gz: be3efecea679ff23d9e3c43a0cc28d7bd8435e84698485f277ae06ebcdcc1b162dcfdec4e9159a9043d95da684fd9513ac71e1b04c483f48fa05c0babcb52bfa
7
- data.tar.gz: 07a608ce4c87732a5ff2ce45a9f6357085c5c144902bdd4f6d05bdc829076ec016d41062115112c45795838dd20d5edc7d9fabb89dd098443888463018048ff6
6
+ metadata.gz: '0087a87a73f5ae71c9fe5b2fabb864d44a5cac11b6a3d34db73303888b285fd3c592fecb2e37369f07d298fc4096b326a1a0f963e534cceaf82b4d2ff75da7ca'
7
+ data.tar.gz: 5f22a3f4e4653864089ad85c7cfeca5e8e3bf0cd9cb383653e114761d49e14e6ffd1e648f567556942269a31ba4f36cd04398fabfc112bc4364e62e1d8793827
data/lib/db/query.rb CHANGED
@@ -116,7 +116,13 @@ module DB
116
116
  # Send the query to the remote server to be executed. See {Context::Session#call} for more details.
117
117
  # @returns [Enumerable] The resulting records.
118
118
  def call(&block)
119
- @context.call(@buffer, &block)
119
+ if block_given?
120
+ @context.call(@buffer, &block)
121
+ else
122
+ @context.call(@buffer) do |connection|
123
+ return connection.next_result
124
+ end
125
+ end
120
126
  end
121
127
 
122
128
  def to_s
data/lib/db/version.rb CHANGED
@@ -21,5 +21,5 @@
21
21
  # THE SOFTWARE.
22
22
 
23
23
  module DB
24
- VERSION = "0.10.1"
24
+ VERSION = "0.10.2"
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams