hanami-router 1.1.0.beta3 → 1.1.0.rc1

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: 0e4ef8eb16235a69dd0b53a9165e5933866f8787
4
- data.tar.gz: d5021a132e249b0cf6e5507c5e5aa9eb76146e09
3
+ metadata.gz: dbe4692fe7b6b298a919aa17d86eeefd1344d71d
4
+ data.tar.gz: 2adc7b005c344a780983e8454424faa62eb62e92
5
5
  SHA512:
6
- metadata.gz: 0dae9861ff2ea044fb35430d578e4f2d049b653cb97e7453990d882e999c0d72b6a2ba201bcda6fa14ec26267bffa178773a97d84481c2ce35f9171a14d33e25
7
- data.tar.gz: e4e8952d28ed4024b1e679dbb307e1f02f59fc6e023cd099e68841f5c88f8cf32ff958da84e0ac11b58709a7ed429f3d0012fb78da58c57463b82c5e1de9f573
6
+ metadata.gz: 40f02fce02f2dc6ee073bb34539d59211fe437bb7351ef0bc735030a7bc7d136e10afa4ceb38edf4360e6ff40db6d9c2a2fc69ec44165eecd1f093af953b77fc
7
+ data.tar.gz: 1e4f87233e0ed4490c53dda7b505a665c9c90c7f2b6087afe3720ead54f797e4c39bd832f24213ebd94244017eb3f37a84448b13e7963c3e965e3c9491608d16
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Hanami::Router
2
2
  Rack compatible HTTP router for Ruby
3
3
 
4
+ ## v1.1.0.rc1 - 2017-10-16
5
+ ### Added
6
+ - [Sergey Fedorov] Allow Rack applications to be mounted inside a namespace. (`namespace "api" { mount V1::App, at: "/v1" }`)
7
+
4
8
  ## v1.1.0.beta3 - 2017-10-04
5
9
 
6
10
  ## v1.1.0.beta2 - 2017-10-03
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_dependency 'rack', '~> 2.0'
23
23
  spec.add_dependency 'http_router', '0.11.2'
24
- spec.add_dependency 'hanami-utils', '1.1.0.beta3'
24
+ spec.add_dependency 'hanami-utils', '1.1.0.rc1'
25
25
 
26
26
  spec.add_development_dependency 'bundler', '~> 1.5'
27
27
  spec.add_development_dependency 'rake', '~> 11'
@@ -1,6 +1,6 @@
1
1
  module Hanami
2
2
  class Router
3
3
  # @since 0.1.0
4
- VERSION = '1.1.0.beta3'.freeze
4
+ VERSION = '1.1.0.rc1'.freeze
5
5
  end
6
6
  end
@@ -81,6 +81,12 @@ module Hanami
81
81
  super(@name.join(path), options.merge(to: @name.join(options[:to])), &endpoint)
82
82
  end
83
83
 
84
+ # @api private
85
+ # @since 1.1.0
86
+ def mount(app, options)
87
+ super(app, options.merge(at: @name.join(options[:at])))
88
+ end
89
+
84
90
  # Supports nested namespaces
85
91
  # @api private
86
92
  # @since 0.1.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-router
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.beta3
4
+ version: 1.1.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-04 00:00:00.000000000 Z
11
+ date: 2017-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 1.1.0.beta3
47
+ version: 1.1.0.rc1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 1.1.0.beta3
54
+ version: 1.1.0.rc1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement