kura 0.2.19 → 0.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +6 -0
- data/lib/kura/client.rb +4 -4
- data/lib/kura/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 892463d2aab5ec6b70bdbdc416ab63018050a2a2
|
4
|
+
data.tar.gz: fa85f545be045222922195623bee3d5ca2778abb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c95a5c441e2e1bab92c73fa812ed3541ff7cb8dc98434599061ba5abd100ac87ccb206724b2b64928450f9676b25de4b5bba4831b1afac3e88297eb0275a87f
|
7
|
+
data.tar.gz: a874169935b5344438d87d5b05961d1082fa553124214bda2afbc13d79fcf8ce8481fa43fc5d39d3fbd2f2f1de97135804a86f13eb3fc0c8da4ec063da16162b
|
data/ChangeLog.md
CHANGED
data/lib/kura/client.rb
CHANGED
@@ -93,12 +93,12 @@ module Kura
|
|
93
93
|
all = normalize_parameter(all)
|
94
94
|
if blk
|
95
95
|
@api.list_datasets(project_id, all: all, max_results: limit) do |result, err|
|
96
|
-
result &&= result.datasets
|
96
|
+
result &&= (result.datasets || [])
|
97
97
|
blk.call(result, err)
|
98
98
|
end
|
99
99
|
else
|
100
100
|
result = @api.list_datasets(project_id, all: all, max_results: limit)
|
101
|
-
result.datasets
|
101
|
+
result.datasets || []
|
102
102
|
end
|
103
103
|
rescue
|
104
104
|
process_error($!)
|
@@ -150,12 +150,12 @@ module Kura
|
|
150
150
|
def tables(dataset_id, project_id: @default_project_id, limit: 1000, &blk)
|
151
151
|
if blk
|
152
152
|
@api.list_tables(project_id, dataset_id, max_results: limit) do |result, err|
|
153
|
-
result &&= result.tables
|
153
|
+
result &&= (result.tables || [])
|
154
154
|
blk.call(result, err)
|
155
155
|
end
|
156
156
|
else
|
157
157
|
result = @api.list_tables(project_id, dataset_id, max_results: limit)
|
158
|
-
result.tables
|
158
|
+
result.tables || []
|
159
159
|
end
|
160
160
|
rescue
|
161
161
|
process_error($!)
|
data/lib/kura/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chikanaga Tomoyuki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-api-client
|