presto-client 0.3.1 → 0.3.2

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.
data/ChangeLog CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ 2014-04-01 version 0.3.2:
3
+
4
+ * Fixed a problem that client skips the last chunk if result is large
5
+
6
+
2
7
  2014-01-30 version 0.3.1:
3
8
 
4
9
  * Added http_debug option
@@ -43,8 +43,7 @@ module Presto::Client
43
43
  attr_reader :client
44
44
 
45
45
  def wait_for_data
46
- while @client.has_next? && @client.current_results.data == nil
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
- @client.advance
89
- end while @client.has_next?
87
+ end while @client.advance
90
88
  end
91
89
 
92
90
  def cancel
@@ -15,6 +15,6 @@
15
15
  #
16
16
  module Presto
17
17
  module Client
18
- VERSION = "0.3.1"
18
+ VERSION = "0.3.2"
19
19
  end
20
20
  end
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.1
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-30 00:00:00.000000000 Z
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