rack-jquery-params 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18389012615ac37ddcf3655ef105a4cb7a41a02e
4
- data.tar.gz: 38b8a88405e234cf388ed6fcf6968b0933a0e135
3
+ metadata.gz: d484ad7726cfb03ac3316aa9f12f5cee5f7d07e2
4
+ data.tar.gz: cece74f19dc83680c085a36f51125038e1cf60b7
5
5
  SHA512:
6
- metadata.gz: 8486aceb8fc6a32793a62232bdb7c7955393efa8ca66ea2e07bd239cc86b3e5a33318921e0e25e1eeb45c8cf8e194bffb1b5bcc5948cbddb6954ef1cfbb7082f
7
- data.tar.gz: 58e006ec024afea9ad55f6ed97212b064af05b9ff275d4cca550b941bd4eff5b4d42e2b91b7e1f0d68d09eced5f9f667a12376f1845a72062ff0500f317afd1e
6
+ metadata.gz: 258d622a5eaab092a143847bc94eda3a94ca4553c4dca5085b310df187219ef46849b4eb87f53a61ee81af026f7bbc0e3ce612c42b03a2b669086827c72e851b
7
+ data.tar.gz: 30b2f70806ed2ab8ff1289b97822173c4adbf7d3d588908b178c5d26b8f9a96bcee664563fe35fb7bdd1a0b4c3140b1b14b41177dab5642fa0a6b5186af92bc8
@@ -29,6 +29,7 @@ module Rack
29
29
 
30
30
  def self.fix_params(params)
31
31
  if params.is_a?(Hash)
32
+ return params if params.size == 0
32
33
  if params.all?{|k,v| k =~ /^[0-9]+$/}
33
34
  params.sort.inject([]){|result, v| result << fix_params(v[1]) }
34
35
  else
@@ -1,3 +1,3 @@
1
1
  class Rack::JQueryParams
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-jquery-params
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark