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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a087121fb3aba124dd840763df1271ecb433c0a
|
4
|
+
data.tar.gz: 509c64f5319fe52ebd8b3c1815f304f47adba949
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c2686942356b4634cb45a274452e9c2cd904b50dbe9ffc4bf5e683e5e9408166727acd69582593bc0a17eeee72da04de210ccd4e6bf2dd0fa71928d1efa556f
|
7
|
+
data.tar.gz: d8a01cad0a44fe84227aff6c6c3bac94a62ed3d8288fd4002ecfa1e301169d680002d0ece27a84b01602250a455da81e6d5f90bd475c7315c5a356bccb261bc4
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
6.
|
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::
|
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::
|
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
|
data/lib/rack/app/test/utils.rb
CHANGED
@@ -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::
|
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.
|
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-
|
11
|
+
date: 2017-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|