rack-app 6.6.0 → 6.7.0

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: cad14178359dceac489ae805f37311a2e3ad94df
4
- data.tar.gz: 1998a8d3712146d3b616f2df5349dc479d6ec1db
3
+ metadata.gz: 6a087121fb3aba124dd840763df1271ecb433c0a
4
+ data.tar.gz: 509c64f5319fe52ebd8b3c1815f304f47adba949
5
5
  SHA512:
6
- metadata.gz: a095e9a6cf6d2a86dab1b93d85ea4f39700c73d86d8ad9582d786db6934eb04ee54ed534115f9a9db80964a925f8a90e606ca54cdd3a56b34cca4e8ce1c61707
7
- data.tar.gz: 9ea4d0301bee2df34c1e7f8d1778cfee04d6a0f128c7ddcf69cc72b39f11f1dc4d0635f26899335566f19018bc9c56fbd54afc18578bbe9aed0e294903ade76a
6
+ metadata.gz: 3c2686942356b4634cb45a274452e9c2cd904b50dbe9ffc4bf5e683e5e9408166727acd69582593bc0a17eeee72da04de210ccd4e6bf2dd0fa71928d1efa556f
7
+ data.tar.gz: d8a01cad0a44fe84227aff6c6c3bac94a62ed3d8288fd4002ecfa1e301169d680002d0ece27a84b01602250a455da81e6d5f90bd475c7315c5a356bccb261bc4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.6.0
1
+ 6.7.0
@@ -19,7 +19,7 @@ module Rack::App::InstanceMethods::PathTo
19
19
  end
20
20
 
21
21
  unless query_string_hash.empty?
22
- final_path.concat("?" + Rack::App::Utils.encode_www_form(query_string_hash))
22
+ final_path.concat("?" + Rack::Utils.build_nested_query(query_string_hash))
23
23
  end
24
24
 
25
25
  final_path
@@ -1,11 +1,11 @@
1
- module Rack::App::InstanceMethods::RedirectTo
1
+ module Rack::App::InstanceMethods::RedirectTo
2
2
 
3
3
  def redirect_to(url, params={})
4
4
 
5
5
  if params.empty?
6
6
  url = [url, request.env['QUERY_STRING']].join('?') unless request.env['QUERY_STRING'].empty?
7
7
  else
8
- query_string = Rack::App::Utils.encode_www_form(params.to_a)
8
+ query_string = Rack::Utils.build_nested_query(params)
9
9
  url = [url, query_string].join('?')
10
10
  end
11
11
 
@@ -1,6 +1,5 @@
1
1
  class Rack::App::Middlewares::Params::Definition
2
-
3
- require "rack/app/middlewares/params/definition/options"
2
+ require 'rack/app/middlewares/params/definition/options'
4
3
 
5
4
  def initialize(&descriptor)
6
5
  @required = {}
@@ -8,15 +7,15 @@ class Rack::App::Middlewares::Params::Definition
8
7
  instance_exec(&descriptor)
9
8
  end
10
9
 
11
- def required(params_key,options)
12
- @required[params_key.to_s]= self.class::Options.new(options).formatted
10
+ def required(params_key, options)
11
+ @required[params_key.to_s] = self.class::Options.new(options).formatted
13
12
  end
14
13
 
15
- def optional(params_key,options)
16
- @optional[params_key.to_s]= self.class::Options.new(options).formatted
14
+ def optional(params_key, options)
15
+ @optional[params_key.to_s] = self.class::Options.new(options).formatted
17
16
  end
18
17
 
19
18
  def to_descriptor
20
- {:required => @required, :optional => @optional}
19
+ { :required => @required, :optional => @optional }
21
20
  end
22
21
  end
@@ -24,7 +24,7 @@ module Rack::App::Test::Utils
24
24
 
25
25
  def query_string_by(uri, params={})
26
26
  uri_based = URI.parse(uri).query.to_s
27
- prop_based = Rack::App::Utils.encode_www_form(params.to_a)
27
+ prop_based = Rack::Utils.build_nested_query(params)
28
28
 
29
29
  parts = [uri_based, prop_based]
30
30
  parts.delete("")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.6.0
4
+ version: 6.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Luzsi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-23 00:00:00.000000000 Z
11
+ date: 2017-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler