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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/roda/plugins/rest_api.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80e8b5e484fe53a1f4fb788f1b626588dd4267d6
4
- data.tar.gz: 330493a7f67ce9f21f23622c9e7f6959d5ba68f3
3
+ metadata.gz: 892c06e51d4f9f8a1425dd93c92a3c4477216f85
4
+ data.tar.gz: 0c19846daa092f2850885b45671e428ff4f4a021
5
5
  SHA512:
6
- metadata.gz: b131711f5a1d500221c2830f63eba6b2c79a0494a3ed365a4ec4fa1c0453115fa7bd58d153a48c4f91d17009eeb23fce675b4062b3c1618bd04ec3e638cb3c07
7
- data.tar.gz: 526075155bf5c1662de80353a5826df7a44bf99e1a4dcf5cc82b0168150d554069d50dd098ad7ee67470cb5736fd35a02fd5a08b524ec38382e42e1a1062dee3
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
- @resource.routes!
104
+ @resource.routes!
105
105
  response.status = 404
106
106
  end
107
107
  @resource = @resource.parent
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roda-rest_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Benevento