kura 0.4.2 → 0.4.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2333eaf23a195c96789fec8b1a9f2f7ecae62be3437c1c492d8afa00c1438203
4
- data.tar.gz: 88895cb72f099b98481235903fe3145de8fa07e13b9eb7f12a9ef1b2023a769c
3
+ metadata.gz: 2055945c222e4a141f646ffa69974eb97cd1ce26c5f7bf1910bb57044c573764
4
+ data.tar.gz: b7118e38c616f8fc26c454230586647932b92a68661aece9c38a2bd915b7f430
5
5
  SHA512:
6
- metadata.gz: b830c2859892d4283ab44f583676ba7da8c4f4dfede607a3d9e8d0cf08fd540c08c2c5f56d2d91f6b4d238934f5d4141557dd669f7a7df23ae737fb4183ec479
7
- data.tar.gz: afa73e1709e3310287f64165b5551598c9055646e97c891f669c5cdee6239e615a31890ef232b818910bf49bf33191fed7acece362d36921d08d986cae9e1247
6
+ metadata.gz: 51b8ebfccc735b923c577be770282e7af95ead82502ada51d228f541aa918f27fd8d2ae5b586f5ca55aaaf5e5a309b06a57f2c22b691e2806f102e1088faa0ce
7
+ data.tar.gz: a0ec2909b094a50f3dbbb268e34ed9a78c030cfcd48c61c5c29c5699b9a9aac98579872dfc09050cfb12e92f9e29a4bd8a0ca7863548414c2ef8b0c800fcfb32
@@ -1,3 +1,10 @@
1
+ # 0.4.3
2
+
3
+ ## Fixes
4
+
5
+ * Query job with SCRIPT type could contain `status.errorResult` without `status.errors` property.
6
+ Fix to handle this case properly.
7
+
1
8
  # 0.4.2
2
9
 
3
10
  ## Enhancements
@@ -654,13 +654,21 @@ module Kura
654
654
  def job_finished?(r)
655
655
  if r.status.state == "DONE"
656
656
  if r.status.error_result
657
- raise Kura::ApiError.new(r.status.errors.map(&:reason).join(","),
658
- r.status.errors.map{|e|
659
- msg = "reason=#{e.reason} message=#{e.message}"
660
- msg += " location=#{e.location}" if e.location
661
- msg += " debug_infoo=#{e.debug_info}" if e.debug_info
662
- msg
663
- }.join("\n"))
657
+ if r.status.errors
658
+ raise Kura::ApiError.new(r.status.errors.map(&:reason).join(","),
659
+ r.status.errors.map{|e|
660
+ msg = "reason=#{e.reason} message=#{e.message}"
661
+ msg += " location=#{e.location}" if e.location
662
+ msg += " debug_info=#{e.debug_info}" if e.debug_info
663
+ msg
664
+ }.join("\n"))
665
+ else
666
+ e = r.status.error_result
667
+ msg = "reason=#{e.reason} message=#{e.message}"
668
+ msg += " location=#{e.location}" if e.location
669
+ msg += " debug_info=#{e.debug_info}" if e.debug_info
670
+ raise Kura::ApiError.new(e.reason, msg)
671
+ end
664
672
  end
665
673
  return true
666
674
  end
@@ -1,3 +1,3 @@
1
1
  module Kura
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kura
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chikanaga Tomoyuki