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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 686e027106a92b44c2ecf739886c1574cd9542d0
4
- data.tar.gz: 9533adcbc7308b0c33b80cd427d21614edb01681
3
+ metadata.gz: 892463d2aab5ec6b70bdbdc416ab63018050a2a2
4
+ data.tar.gz: fa85f545be045222922195623bee3d5ca2778abb
5
5
  SHA512:
6
- metadata.gz: e199e1cc3feaa63cc5c37dd69a8db013243e454a4c087a4c9f819dc40e9210e93d7443c1474bed04efbe885678628da2a1260c2671c857abdc47ceb3e9913927
7
- data.tar.gz: 0ff4ef43c9d6f30631e67faa1a576bc535c21bf228df0519bf401adc4bce2001a5bebbfc257d7bde8eef10f8d02ee7ba6f472def2ee64bbf51476db25d28f764
6
+ metadata.gz: 3c95a5c441e2e1bab92c73fa812ed3541ff7cb8dc98434599061ba5abd100ac87ccb206724b2b64928450f9676b25de4b5bba4831b1afac3e88297eb0275a87f
7
+ data.tar.gz: a874169935b5344438d87d5b05961d1082fa553124214bda2afbc13d79fcf8ce8481fa43fc5d39d3fbd2f2f1de97135804a86f13eb3fc0c8da4ec063da16162b
data/ChangeLog.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.2.20
2
+
3
+ ## Incompatible Changes
4
+
5
+ * `datasts` and `tables` now return `[]` instead of nil if there's no entry.
6
+
1
7
  # 0.2.19
2
8
 
3
9
  ## Fixes
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
@@ -1,3 +1,3 @@
1
1
  module Kura
2
- VERSION = "0.2.19"
2
+ VERSION = "0.2.20"
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.19
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-10-19 00:00:00.000000000 Z
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