uri-query_params 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.md +4 -0
- data/lib/uri/query_params/query_params.rb +3 -0
- data/lib/uri/query_params/version.rb +1 -1
- data/spec/query_params_spec.rb +4 -0
- metadata +4 -4
data/ChangeLog.md
CHANGED
data/spec/query_params_spec.rb
CHANGED
@@ -9,6 +9,10 @@ describe URI::QueryParams do
|
|
9
9
|
subject.parse('').should be_empty
|
10
10
|
end
|
11
11
|
|
12
|
+
it "should not parse empty params" do
|
13
|
+
subject.parse('a&&&b').should == {'a' => '', 'b' => ''}
|
14
|
+
end
|
15
|
+
|
12
16
|
it "should parse a single query param name" do
|
13
17
|
subject.parse('x').should have_key('x')
|
14
18
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: uri-query_params
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.5.
|
5
|
+
version: 0.5.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Postmodern
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-19 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -109,6 +109,6 @@ signing_key:
|
|
109
109
|
specification_version: 3
|
110
110
|
summary: Access the query parameters of a URI, just like $_GET in PHP.
|
111
111
|
test_files:
|
112
|
-
- spec/extensions/http_spec.rb
|
113
|
-
- spec/extensions/https_spec.rb
|
114
112
|
- spec/query_params_spec.rb
|
113
|
+
- spec/extensions/https_spec.rb
|
114
|
+
- spec/extensions/http_spec.rb
|