rquery_string 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rquery_string/generator.rb +3 -3
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d89b0b51029c24ba1993379bcce516af4213f1f3
|
4
|
+
data.tar.gz: bbd57e2f89f300c0c688cb0007a122e02b79f29e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cd147dbb35dd123aa1281e5683be072e5229578172abafd1446449cc52b0bdb7c9e882d2bd42e97b3db992eb83d19efef22ed7930f8460ac44c683347ca2287
|
7
|
+
data.tar.gz: 21a9fbbcac2a8a7b2b38f317f97ce2fc41e31f8ab7800fdb5dcb24181ba37be5e201d4c2470908aa9932aaf0bd5a319b2236abecbcd0f862e4daab65284ee2ff
|
@@ -7,7 +7,7 @@ module RqueryString
|
|
7
7
|
hash_para.each do |key, value|
|
8
8
|
begin
|
9
9
|
query_string << (send "build_#{value.class.to_s.downcase}_type".to_sym, escape_key(key), value) << "&"
|
10
|
-
rescue NoMethodError
|
10
|
+
rescue NoMethodError
|
11
11
|
query_string << "#{escape_key(key)}=#{value}&"
|
12
12
|
end
|
13
13
|
end
|
@@ -23,7 +23,7 @@ module RqueryString
|
|
23
23
|
begin
|
24
24
|
query_string << (send "build_#{value.class.to_s.downcase}_type".to_sym,
|
25
25
|
"#{new_key}", value) << "&"
|
26
|
-
rescue NoMethodError
|
26
|
+
rescue NoMethodError
|
27
27
|
query_string << "#{new_key}=#{value}&"
|
28
28
|
end
|
29
29
|
end
|
@@ -41,7 +41,7 @@ module RqueryString
|
|
41
41
|
begin
|
42
42
|
query_string << (send "build_#{value[index].class.to_s.downcase}_type".to_sym,
|
43
43
|
"#{key}[]", value[index]) << "&"
|
44
|
-
rescue NoMethodError
|
44
|
+
rescue NoMethodError
|
45
45
|
query_string << "#{key}[]=#{value[index]}&"
|
46
46
|
end
|
47
47
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rquery_string
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grant Chen
|
@@ -14,27 +14,28 @@ dependencies:
|
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 2.14.1
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.14.1
|
27
27
|
description: query string generator and parser gem
|
28
|
-
email:
|
28
|
+
email: grantcss1982@gmail.com
|
29
29
|
executables: []
|
30
30
|
extensions: []
|
31
31
|
extra_rdoc_files: []
|
32
32
|
files:
|
33
|
+
- lib/rquery_string.rb
|
33
34
|
- lib/rquery_string/generator.rb
|
34
35
|
- lib/rquery_string/parser.rb
|
35
|
-
- lib/rquery_string.rb
|
36
36
|
homepage: https://github.com/grantchen/rquery_string
|
37
|
-
licenses:
|
37
|
+
licenses:
|
38
|
+
- MIT
|
38
39
|
metadata: {}
|
39
40
|
post_install_message:
|
40
41
|
rdoc_options: []
|
@@ -42,19 +43,18 @@ require_paths:
|
|
42
43
|
- lib
|
43
44
|
required_ruby_version: !ruby/object:Gem::Requirement
|
44
45
|
requirements:
|
45
|
-
- -
|
46
|
+
- - ">="
|
46
47
|
- !ruby/object:Gem::Version
|
47
48
|
version: '0'
|
48
49
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
50
|
requirements:
|
50
|
-
- -
|
51
|
+
- - ">="
|
51
52
|
- !ruby/object:Gem::Version
|
52
53
|
version: '0'
|
53
54
|
requirements: []
|
54
55
|
rubyforge_project:
|
55
|
-
rubygems_version: 2.
|
56
|
+
rubygems_version: 2.5.1
|
56
57
|
signing_key:
|
57
58
|
specification_version: 4
|
58
59
|
summary: query string generator and parser
|
59
60
|
test_files: []
|
60
|
-
has_rdoc:
|