goodguide-gibbon 0.8.2 → 0.8.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
  SHA1:
3
- metadata.gz: a2a7dcf8d9db98045230513edc7c30ebfb44cb98
4
- data.tar.gz: 39c2e0e633bfad5466dd430a415562074199a0ef
3
+ metadata.gz: c61efe121d23db7a49c70a68f0a043a48dd8cc22
4
+ data.tar.gz: 0ba5e9f089eef69f035a5890086b3584c5199212
5
5
  SHA512:
6
- metadata.gz: 2eb0b1a90425591ddb807cf6f7324914c7a39462972ebff03f2beb2b0dde2e305cc931510fb70b854aa05630351f1a8c2d89eec0460e04adf4546dff1dccb510
7
- data.tar.gz: 4c0f224cb2f8c7b5a809b0e4f678b864ebb768aa439a422c93dd5cd9fa4b29564403d3bd8dced49fbdc9761162cf9d6b3fceea6f7643539feceff17f2f0105c6
6
+ metadata.gz: 9808a033ec1fcdc705e4ddfd96b476d4537de9bcca07f0198df3d947da1fa741cc7e862c3d1a16ff7f1289acd486a2e3eb5c44c14ad13a3c8543790a60a17772
7
+ data.tar.gz: 2bb8a4a01ff84e2b29fbcb97bece26eed9ad56fb767aa0d59606b2d69ebe1be83ab3eaf4c4d1cb757f18dc1556b47ebd16af621712780c2894bb6f3beaa0681a
@@ -1,7 +1,7 @@
1
1
  module GoodGuide
2
2
  module Gibbon
3
3
  def self.version
4
- '0.8.2'
4
+ '0.8.3'
5
5
  end
6
6
  end
7
7
  end
@@ -266,9 +266,7 @@ module GoodGuide
266
266
 
267
267
  private
268
268
  def get_query(type)
269
- query = self.class.queries[type.to_s]
270
- raise "no such query #{type}" if query.nil?
271
- query
269
+ self.class.queries[type.to_s]
272
270
  end
273
271
 
274
272
  def proc_for(method)
@@ -309,7 +307,7 @@ module GoodGuide
309
307
  end
310
308
 
311
309
  def analyze_query(input_id, query, t)
312
- query_impl = get_query(query.type)
310
+ query_impl = get_query(query.type) or query_error! "no such query #{query.type.inspect}"
313
311
  analysis = instance_exec(input_id, obj_to_ruby(query.args), t, &query_impl)
314
312
  analysis[:annotations]['_query_type'] = query.type
315
313
  analysis
@@ -332,7 +330,7 @@ module GoodGuide
332
330
  @last_annotations = annotations
333
331
  @last_id = id
334
332
 
335
- query = get_query(query_type)
333
+ query = get_query(query_type) or raise "invalid query type in compiled code: #{query_type.inspect}"
336
334
  instance_exec(id, annotations, &query)
337
335
  end
338
336
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goodguide-gibbon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Adkisson