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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  GemSpec ||= Gem::Specification.new do |gem|
4
4
  gem.name = 'scim-query-filter-parser'
5
- gem.version = '0.0.2'
5
+ gem.version = '0.0.3'
6
6
  gem.license = 'MIT'
7
7
  gem.required_ruby_version = '>= 1.9.1'
8
8
 
@@ -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.clone # Save for error msgs
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.2
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-18 00:00:00.000000000 Z
12
+ date: 2013-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake