queryfy 0.2.0 → 0.2.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: 1621b2220459fea7e19fa27f275fe16b98bd9f19
4
- data.tar.gz: 352af1d4a2943ca33225cab60eeb693181c98e28
3
+ metadata.gz: 368215a8be8f5391e12fa5babd34d4459ad3febc
4
+ data.tar.gz: c43ec411ac08e1019479d627c136c671c91ac592
5
5
  SHA512:
6
- metadata.gz: 07f183a177ec38c678e539e6ef9dc8f7775c44eb5eb18bdc2ba0ca8bbdae6d1323cedf6787d5b520b67d45e46b8ed6bebb51293cb68b52373b07e0c1ad8e1237
7
- data.tar.gz: ff5b817d584fe4014783c17334aaba2772799f81f3352301b3f2856d3e10b63570853c2cbec31a5a0297c83a53e65200d0bd71c26170788fb00a29298ed0a7dd
6
+ metadata.gz: 27e9e000df4807311b61519bf5e767b784e248688962c5721ab991cd14ec6fdf5748ad9c47adab659083bb0c3f4a9597f0bdfb565999f155959d77020220c1c9
7
+ data.tar.gz: e1e8b6aced6759749fa8e571d8774dc2c0707e2d9378e5d632b407ab5567ea7c0c8374db74de979f89b8a0bff94103fcc6f0dd71619626e12fd3f11e6550e059
@@ -13,7 +13,7 @@ module FilterLexer
13
13
 
14
14
  # Field does not exist, fail
15
15
  if field_index.nil?
16
- raise NoSuchFieldError, "Unknown field #{ field }"
16
+ raise NoSuchFieldError.new("Unknown field #{ field }", field)
17
17
  else
18
18
  # Get the arel field name from our input, just to make sure
19
19
  # there is nothing weird is in the input
@@ -6,6 +6,11 @@ class FilterParseError < QueryfyError
6
6
  end
7
7
 
8
8
  class NoSuchFieldError < QueryfyError
9
+ attr_accessor :field
10
+ def initialize(message = nil, field = nil)
11
+ super(message)
12
+ self.field = field
13
+ end
9
14
  end
10
15
 
11
16
  class InvalidFilterFormat < QueryfyError
@@ -1,3 +1,3 @@
1
1
  module Queryfy
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queryfy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bonemind
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-30 00:00:00.000000000 Z
11
+ date: 2015-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: filter_lexer