query_string_filter 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -111,7 +111,7 @@ grammar Filter
111
111
  end
112
112
 
113
113
  rule unquoted_string
114
- [A-Za-z0-9_]+
114
+ [^<>=, ]+
115
115
  {
116
116
  def eval
117
117
  text_value
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{query_string_filter}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David James"]
@@ -12,6 +12,12 @@ describe "QueryStringFilter" do
12
12
  @filter.parse("something")
13
13
  }.should raise_error(QueryStringFilter::ParseError)
14
14
  end
15
+
16
+ it "no quotes or connectives" do
17
+ lambda {
18
+ @filter.parse("name=David James")
19
+ }.should raise_error(QueryStringFilter::ParseError)
20
+ end
15
21
  end
16
22
 
17
23
  describe "keys" do
@@ -26,6 +32,12 @@ describe "QueryStringFilter" do
26
32
  :foo => "bar camp"
27
33
  }
28
34
  end
35
+
36
+ it "value with http://" do
37
+ @filter.parse("url = http://cnn.com").should == {
38
+ :url => "http://cnn.com"
39
+ }
40
+ end
29
41
  end
30
42
 
31
43
  describe "basic operators" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_string_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David James