hanami-router 0.6.1 → 0.6.2

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: cc56c024ff64fe6859c1cfdc6fe54604a71fa806
4
- data.tar.gz: f8679093fe49bd22661e8a086ebc0c33a0845b57
3
+ metadata.gz: 2a2586983782aac1daa6b998207f6b1711ce0b30
4
+ data.tar.gz: 56be6fbaa73b846cd3d531da9747edbbf938cb6f
5
5
  SHA512:
6
- metadata.gz: 12ea74db6fa721e5992470457581a8b26e3545ebeb82c1ccc36454c0644736a013159615755c88584e3474caac627c5156d329dc3b06e54a91f60629f9000b4b
7
- data.tar.gz: 8180e6b31f57aa6c44f268c7fa311d425eeb34c88aba98509ddc16ba3b151fdfb9469903386911f293a3b8df93113fb918c378ddaffbf0de0884dcfb249e07e3
6
+ metadata.gz: d4b100f203d78a140e62830b309f1bf6edca12cd825dfbfde86e6b89645baf7ed61898d06ec38bcf55b15eccb0fc38d3bc63ae9ffa151e6bb9a4dc3232d95650
7
+ data.tar.gz: 807b558c107acf679aef63e26b7b17bf4d7d726e6ae198beb954e9d380ba1ebc3578ea95ce9c589111591ca81f8a4ffcd3050301a4c0c0bcbcc506604d1a8a06
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Hanami::Router
2
2
  Rack compatible HTTP router for Ruby
3
3
 
4
+ ## v0.6.2 - 2016-02-05
5
+ ### Fixed
6
+ - [Anton Davydov] Fix double leading slash for Capybara's `current_path`
7
+
4
8
  ## v0.6.1 - 2016-01-27
5
9
  ### Fixed
6
10
  - [Luca Guidi] Fix body parsers for non Hash requests
@@ -1,6 +1,6 @@
1
1
  module Hanami
2
2
  class Router
3
3
  # @since 0.1.0
4
- VERSION = '0.6.1'.freeze
4
+ VERSION = '0.6.2'.freeze
5
5
  end
6
6
  end
@@ -31,7 +31,7 @@ module Hanami
31
31
  # @since 0.1.0
32
32
  # @api private
33
33
  class HttpRouter < ::HttpRouter
34
- # Script name - rack enviroment variable
34
+ # Script name - rack environment variable
35
35
  #
36
36
  # @since 0.5.0
37
37
  # @api private
@@ -161,7 +161,7 @@ module Hanami
161
161
  # @since 0.5.0
162
162
  def rewrite_path_info(env, request)
163
163
  super
164
- env[SCRIPT_NAME] = @prefix + env[SCRIPT_NAME]
164
+ env[SCRIPT_NAME] = @prefix.join(env[SCRIPT_NAME])
165
165
  end
166
166
 
167
167
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-router
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-01-27 00:00:00.000000000 Z
13
+ date: 2016-02-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: http_router