flame 4.5.1 → 4.6.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: d215fb07ad091a79cb1e325c6ea793d390c2fb5a
4
- data.tar.gz: d4cb2d912d928152fbebc7f172094b85ded5fda6
3
+ metadata.gz: 5455cf09e104a2a654c71f1ea4374f12e3dc5bbf
4
+ data.tar.gz: 5775babe34f2cd3bc8beb60611b1e0e24e59224b
5
5
  SHA512:
6
- metadata.gz: c15a5ce9a205d2ad27bb1014cac0d55996b7673863f20136cb8eb7e1a51742248fd46c6c50cadabc49356489c3210a33a77b485872e373a891e789452b4ffc93
7
- data.tar.gz: ce977d36a17d4389af2d93459c7c4ef9b92db205af50c182e303b842fde7c8c3d1bf67cfc15d841073b9c2d2ed39c75599e221ca9ced85e4a3a1304cbb4962bb
6
+ metadata.gz: 2bd0ac08334a9a8fe3cf05b696232ceecf0b70df5b87b9d51e4bb5e786bbcd8fe5fa52997a69460c326289f721e81e4deb733c523dc4282a47d922c53f570da7
7
+ data.tar.gz: 03f649bb5418e2f3d00a19655660e450aee8e693558227d99aae3f695ba5a5af0b49c125fa8072a2b408b6947d18507fbd19ba85a1acb2c02524abf661cda5c5
@@ -93,8 +93,10 @@ module Flame
93
93
  def path_to(ctrl, action = :index, args = {})
94
94
  route = @app.class.router.find_route(controller: ctrl, action: action)
95
95
  raise Errors::RouteNotFoundError.new(ctrl, action) unless route
96
+ params = Rack::Utils.build_nested_query args.delete(:params)
96
97
  path = route.assign_arguments(args)
97
- path.empty? ? '/' : path
98
+ path = '/' if path.empty?
99
+ path << ("?#{params}" if params).to_s
98
100
  end
99
101
 
100
102
  ## Interrupt the execution of route, and set new optional data
data/lib/flame/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Flame
4
- VERSION = '4.5.1'.freeze
4
+ VERSION = '4.6.0'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flame
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.1
4
+ version: 4.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-20 00:00:00.000000000 Z
11
+ date: 2016-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack