kura 0.2.32 → 0.2.33

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '08d7f0e191048d4a6127fd52dab6a7204b770a61'
4
- data.tar.gz: 81634467b7efe23243d040f5776f75baf04a3f02
3
+ metadata.gz: d2895108aa1d3573e121679c82f7748271467ba7
4
+ data.tar.gz: d232b7024ec49f5991685f3fe6fc8c23132c6c4e
5
5
  SHA512:
6
- metadata.gz: 58d30c4cd23c54205ae1ad972855e18730072ef31e3634771263762c2118e9126cd934ef03262e0df83b1644cf094cf93517f0f4ad1d126090f39908fbb7f17c
7
- data.tar.gz: 6f08ec71cdb9fd3969d9149ed1edf26c52dd53bc81fa828b0b952d5f750fa8400dd2354884330957a77f095d4d6b27538a3d01e64dc589e52b43978ad8d7e6b2
6
+ metadata.gz: 7785fb1520b95edcecaa0f218a97b53f97825f5f373219c6cc005a433916e1891714bae6ebc6e0816f1844f283aeb0955f9a3032333fa02d4185dd4b5ada07af
7
+ data.tar.gz: fe83f196ba036c225d1c10f4cc557ea88deda4559f4b174b2c6d797eecf4ab4c5ec23b977d67facc6722462174f684e96e0c2c7482be0e6067c60199763d24b3
@@ -1,3 +1,9 @@
1
+ # 0.2.33
2
+
3
+ ## Fixes
4
+
5
+ * Fix `list_tabledata` to handle "Infinity" and "NaN" value in FLOAT columns.
6
+
1
7
  # 0.2.32
2
8
 
3
9
  ## Enhancements
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["nagachika@ruby-lang.org"]
11
11
 
12
12
  spec.summary = %q{Interface to BigQuery API v2.}
13
- spec.description = %q{Kura is an interfece to BigQuery API v2. It is a wrapper of google-api-client.}
13
+ spec.description = %q{Kura is an interface to BigQuery API v2. It is a wrapper of google-api-client.}
14
14
  spec.homepage = "https://github.com/nagachika/kura/"
15
15
  spec.license = "MIT"
16
16
 
@@ -248,7 +248,16 @@ module Kura
248
248
  when "INTEGER"
249
249
  Integer(x)
250
250
  when "FLOAT"
251
- Float(x)
251
+ case x
252
+ when "Infinity"
253
+ Float::INFINITY
254
+ when "-Infinity"
255
+ -Float::INFINITY
256
+ when "NaN"
257
+ Float::NAN
258
+ else
259
+ Float(x)
260
+ end
252
261
  when "BOOLEAN"
253
262
  x.to_s == "true"
254
263
  when "RECORD"
@@ -1,3 +1,3 @@
1
1
  module Kura
2
- VERSION = "0.2.32"
2
+ VERSION = "0.2.33"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kura
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.32
4
+ version: 0.2.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chikanaga Tomoyuki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-16 00:00:00.000000000 Z
11
+ date: 2019-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-api-client
@@ -108,7 +108,7 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- description: Kura is an interfece to BigQuery API v2. It is a wrapper of google-api-client.
111
+ description: Kura is an interface to BigQuery API v2. It is a wrapper of google-api-client.
112
112
  email:
113
113
  - nagachika@ruby-lang.org
114
114
  executables: []