scim-query-filter-parser 0.0.2 → 0.0.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.
- data/.gemspec +1 -1
- data/lib/scim/query/filter/parser.rb +3 -2
- metadata +2 -2
data/.gemspec
CHANGED
|
@@ -33,7 +33,7 @@ class SCIM::Query::Filter::Parser
|
|
|
33
33
|
#----------------------------------------------------------------------------
|
|
34
34
|
# Parse SCIM filter query into RPN stack:
|
|
35
35
|
def parse input
|
|
36
|
-
@input = input
|
|
36
|
+
@input = input # Save for error msgs
|
|
37
37
|
@tokens = lex input
|
|
38
38
|
@rpn = parse_expr
|
|
39
39
|
assert_eos
|
|
@@ -60,10 +60,11 @@ class SCIM::Query::Filter::Parser
|
|
|
60
60
|
|
|
61
61
|
# Split input into tokens
|
|
62
62
|
def lex input
|
|
63
|
+
input = input.clone
|
|
63
64
|
tokens = []
|
|
64
65
|
while ! input.empty? do
|
|
65
66
|
input.sub! NextToken, '' \
|
|
66
|
-
or fail "Can't lex input here '#{input}'"
|
|
67
|
+
or fail "Can't lex input here: '#{input}'"
|
|
67
68
|
tokens.push $1
|
|
68
69
|
end
|
|
69
70
|
tokens
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: scim-query-filter-parser
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-09-
|
|
12
|
+
date: 2013-09-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake
|