goodguide-gibbon 0.7.1 → 0.8.1

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: d1cfc211611af030db79283ed6f89abec9957553
4
- data.tar.gz: dbdfcd341d94df018b8c3a6b8c56598e11860415
3
+ metadata.gz: 28406c6cb9eeb1238f8b2c4067a6d94c543703c0
4
+ data.tar.gz: 5ed6b1199bc4311c807e5081cde53345f78c760d
5
5
  SHA512:
6
- metadata.gz: 6f3d7d5ace0c22e100983b29887c572e6bb88178dbee10c8b3710860b3ae782556dd1fa9f22035630e2a0403218b11ce12f82669b1d62736697657258ba8ccb3
7
- data.tar.gz: 620680f65d6a32b9b29592a1bf8225441f040184e62a25d6151a91a4886ec0999df8c22b6a7b1953b6571712b4208f7ae2a93125f69b85c289578112c4e49679
6
+ metadata.gz: 9b8cf52d575d06c142adf1a457d88160754c8e10870289784df55cc7d8d032c19bebac6df9cbf95bccc0038e0acdeb33cb2924818062589792bc657d01c120b3
7
+ data.tar.gz: 46840e7791e9a052a6ee646bdb590fecf13d2aa0fcddadc5baf10a1b5f467351d3bd9d7ac4eaa6557d83d741ec574db31067cec9d876cfd4c84315c958bb57ed
@@ -1,7 +1,7 @@
1
1
  module GoodGuide
2
2
  module Gibbon
3
3
  def self.version
4
- '0.7.1'
4
+ '0.8.1'
5
5
  end
6
6
  end
7
7
  end
@@ -240,8 +240,14 @@ module GoodGuide
240
240
  def call(runtime_client, entity_id)
241
241
  values, error = @context.run_compiled(@compiled, entity_id, runtime_client.to_js)
242
242
 
243
- raise error if error
244
- values
243
+ case error
244
+ when String
245
+ raise GoodGuide::Gibbon::RuntimeError.new(error)
246
+ when nil
247
+ values
248
+ else
249
+ raise error
250
+ end
245
251
  end
246
252
  end
247
253