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 +4 -4
- data/CHANGELOG.md +4 -0
- data/hanami-router.gemspec +1 -1
- data/lib/hanami/router/version.rb +1 -1
- data/lib/hanami/routing/namespace.rb +6 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbe4692fe7b6b298a919aa17d86eeefd1344d71d
|
4
|
+
data.tar.gz: 2adc7b005c344a780983e8454424faa62eb62e92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/hanami-router.gemspec
CHANGED
@@ -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.
|
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'
|
@@ -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.
|
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-
|
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.
|
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.
|
54
|
+
version: 1.1.0.rc1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|