kura 0.2.14 → 0.2.15

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: 9b64ff84a51c177c7078f13079919a2bec0d8464
4
- data.tar.gz: 88b2d75fdb959d40df5b15a1eb73da354b52dda5
3
+ metadata.gz: 65eac9d5648067091ac0044cef32de3380d8f62e
4
+ data.tar.gz: f1dcd2bb07fc74dcda07a498a384a1235d56f397
5
5
  SHA512:
6
- metadata.gz: 6834749b6739a47912c0c5eccbafcda5bb99ae12236795f136c73a1ffdd31c927b0c108a1548f30461f43a815842ccc7b05d28ee40a0dc54827b4ff7dded258d
7
- data.tar.gz: 2ec1fd38e3a700092c551f6f32e5b1a9fc822081e889b05567ed8d90c3c06a3a9a03e632bdd9a4a40d765a34c93e7acad7d7d7bff8a6021fb3c80cccadcc75d1
6
+ metadata.gz: ec490d8df898142805100a9c886bdcb16c9a50ced0164d6c06262b0068dabeb9902c5612faa2fe7b2625c1c7f9456d641be91ed6fa68309860b408e569eab872
7
+ data.tar.gz: 3be96f485e2c5255380ba18d1c15cd80e38ce0d0f94714ddee508f85d41710f8977de31f90e2e38e76adf8090262ef55654da05458bb7fc3f7d223e0b5fd18cd
data/ChangeLog.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.2.15
2
+
3
+ ## Fixes
4
+
5
+ * Fix NoMethodError if #get_job/#cancel_job return nil for job.
6
+
1
7
  # 0.2.14
2
8
 
3
9
  ## Enhancements
data/lib/kura/client.rb CHANGED
@@ -510,11 +510,11 @@ module Kura
510
510
  def job(job_id, project_id: @default_project_id, &blk)
511
511
  if blk
512
512
  @api.get_job(project_id, job_id) do |j, e|
513
- j.kura_api = self
513
+ j.kura_api = self if j
514
514
  blk.call(j, e)
515
515
  end
516
516
  else
517
- @api.get_job(project_id, job_id).tap{|j| j.kura_api = self}
517
+ @api.get_job(project_id, job_id).tap{|j| j.kura_api = self if j }
518
518
  end
519
519
  rescue
520
520
  process_error($!)
@@ -532,11 +532,11 @@ module Kura
532
532
  end
533
533
  if blk
534
534
  @api.cancel_job(project_id, jobid) do |r, e|
535
- r.job.kura_api = self
535
+ r.job.kura_api = self if r.job
536
536
  blk.call(r.job, e)
537
537
  end
538
538
  else
539
- @api.cancel_job(project_id, jobid).job.tap{|j| j.kura_api = self}
539
+ @api.cancel_job(project_id, jobid).job.tap{|j| j.kura_api = self if j }
540
540
  end
541
541
  end
542
542
 
data/lib/kura/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kura
2
- VERSION = "0.2.14"
2
+ VERSION = "0.2.15"
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.14
4
+ version: 0.2.15
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-04-14 00:00:00.000000000 Z
11
+ date: 2016-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-api-client
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  requirements: []
151
151
  rubyforge_project:
152
- rubygems_version: 2.4.5.1
152
+ rubygems_version: 2.5.1
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: Interface to BigQuery API v2.