presto-client 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -0
- data/lib/presto/client/query.rb +2 -4
- data/lib/presto/client/version.rb +1 -1
- metadata +3 -5
data/ChangeLog
CHANGED
data/lib/presto/client/query.rb
CHANGED
@@ -43,8 +43,7 @@ module Presto::Client
|
|
43
43
|
attr_reader :client
|
44
44
|
|
45
45
|
def wait_for_data
|
46
|
-
while @client.
|
47
|
-
@client.advance
|
46
|
+
while @client.current_results.data == nil && @client.advance
|
48
47
|
end
|
49
48
|
end
|
50
49
|
|
@@ -85,8 +84,7 @@ module Presto::Client
|
|
85
84
|
if data = @client.current_results.data
|
86
85
|
block.call(data)
|
87
86
|
end
|
88
|
-
|
89
|
-
end while @client.has_next?
|
87
|
+
end while @client.advance
|
90
88
|
end
|
91
89
|
|
92
90
|
def cancel
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: presto-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-01
|
12
|
+
date: 2014-04-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -134,9 +134,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
- - ! '>='
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0'
|
137
|
-
segments:
|
138
|
-
- 0
|
139
|
-
hash: -4584095944750783678
|
140
137
|
requirements: []
|
141
138
|
rubyforge_project:
|
142
139
|
rubygems_version: 1.8.23
|
@@ -146,3 +143,4 @@ summary: Presto client library
|
|
146
143
|
test_files:
|
147
144
|
- spec/spec_helper.rb
|
148
145
|
- spec/statement_client_spec.rb
|
146
|
+
has_rdoc: false
|