roda-rest_api 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roda/plugins/rest_api.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 892c06e51d4f9f8a1425dd93c92a3c4477216f85
|
4
|
+
data.tar.gz: 0c19846daa092f2850885b45671e428ff4f4a021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7615c83d70c81f51fc0439ff8e3b7fdb78aef2326953d236e05baaa3d4e3af67ffdd0e63a83d814b551bbb0ac209003e2cd22ca87cd3bbf12dfa13306a66139
|
7
|
+
data.tar.gz: 777e4e096055d59137825067ac219c3b1716224d19060b6b8917ddd007bca5a5f514af8817325065cd3c675f0bf28fc6c000095d1038e9712212567254aac132
|
@@ -27,7 +27,7 @@ class Roda
|
|
27
27
|
@content_type = options.delete(:content_type) || APPLICATION_JSON
|
28
28
|
if parent
|
29
29
|
@parent = parent
|
30
|
-
@parent.routes!
|
30
|
+
@parent.routes! if @request.path_info.split('/') == 2
|
31
31
|
@path = [':d', @path].join('/') unless bare
|
32
32
|
end
|
33
33
|
end
|
@@ -101,7 +101,7 @@ class Roda
|
|
101
101
|
on(@resource.path, options) do
|
102
102
|
@resource.captures = captures.dup unless captures.empty?
|
103
103
|
yield @resource
|
104
|
-
|
104
|
+
@resource.routes!
|
105
105
|
response.status = 404
|
106
106
|
end
|
107
107
|
@resource = @resource.parent
|