lotus-router 0.2.0 → 0.2.1
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/LICENSE.md +1 -1
- data/README.md +1 -1
- data/lib/lotus/router/version.rb +2 -1
- data/lib/lotus/routing/endpoint_resolver.rb +7 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f107f75de95beb2c60e374aa29060d63aca3d70
|
4
|
+
data.tar.gz: deae89af0716937eedbbf8fcc8b515fc72740e26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 484220d7305ec7efcd59e4453a03d45d306b643761f5dd2df5c06f7b5a06e6a06bb414d6921c0c0089b6e868620f7cd268184412ce5d62c36af39a2ea544597d
|
7
|
+
data.tar.gz: bd6aa7be6fcbfb0adb483d912757a68a46e3a71dcc0961d3efa72906db6bfeab042e9d382c7aa7d7e8bb7be105d5d2ffaeea300671794f8770df6a3b6a83778f
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Lotus::Router
|
2
2
|
Rack compatible HTTP router for Ruby
|
3
3
|
|
4
|
+
## v0.2.1 - 2015-01-30
|
5
|
+
### Added
|
6
|
+
- [Alfonso Uceda Pompa] Lotus::Action compat: invoke `.call` if defined, otherwise fall back to `#call`.
|
7
|
+
|
4
8
|
## v0.2.0 - 2014-12-23
|
5
9
|
### Added
|
6
10
|
- [Luca Guidi & Alfonso Uceda Pompa] Introduced routes inspector for CLI
|
data/LICENSE.md
CHANGED
data/README.md
CHANGED
data/lib/lotus/router/version.rb
CHANGED
@@ -183,11 +183,14 @@ module Lotus
|
|
183
183
|
end
|
184
184
|
|
185
185
|
def constantize(string)
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
186
|
+
klass = Utils::Class.load!(string, @namespace)
|
187
|
+
if klass.respond_to?(:call)
|
188
|
+
Endpoint.new(klass)
|
189
|
+
else
|
190
|
+
ClassEndpoint.new(klass)
|
190
191
|
end
|
192
|
+
rescue NameError
|
193
|
+
LazyEndpoint.new(string, @namespace)
|
191
194
|
end
|
192
195
|
|
193
196
|
def classify(string)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lotus-router
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http_router
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.
|
137
|
+
rubygems_version: 2.4.5
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: Rack compatible HTTP router for Ruby and Lotus
|