roda-rest_api 1.1.2 → 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 +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 892c06e51d4f9f8a1425dd93c92a3c4477216f85
4
- data.tar.gz: 0c19846daa092f2850885b45671e428ff4f4a021
3
+ metadata.gz: 18243f3f83d51a37b30d2389674711bca46623ee
4
+ data.tar.gz: 7456b216acbc32c860eca0276365b4cf3604b519
5
5
  SHA512:
6
- metadata.gz: b7615c83d70c81f51fc0439ff8e3b7fdb78aef2326953d236e05baaa3d4e3af67ffdd0e63a83d814b551bbb0ac209003e2cd22ca87cd3bbf12dfa13306a66139
7
- data.tar.gz: 777e4e096055d59137825067ac219c3b1716224d19060b6b8917ddd007bca5a5f514af8817325065cd3c675f0bf28fc6c000095d1038e9712212567254aac132
6
+ metadata.gz: 0d3e364aec4f2ebe92bc00aecd821743c065df73e2ecb37f4ee87ba95a4a861762c483150152ce2fb2c9778abe937a2cdb8d260a8858f97afe547224c9d47e2e
7
+ data.tar.gz: 12f0e8021df214bf30b218a8864ee235e7d3b3251d53eaadf836ce54b40f7eff3a1e7a19d02cec9b04bbb0371bacf6d967177fdd58d2cd73c6ecdb1f37dd4959
@@ -10,6 +10,7 @@ class Roda
10
10
  app.plugin :all_verbs
11
11
  app.plugin :symbol_matchers
12
12
  app.plugin :header_matchers
13
+ app.plugin :static_path_info
13
14
  end
14
15
 
15
16
  class Resource
@@ -27,7 +28,6 @@ class Roda
27
28
  @content_type = options.delete(:content_type) || APPLICATION_JSON
28
29
  if parent
29
30
  @parent = parent
30
- @parent.routes! if @request.path_info.split('/') == 2
31
31
  @path = [':d', @path].join('/') unless bare
32
32
  end
33
33
  end
@@ -60,7 +60,7 @@ class Roda
60
60
  def routes(*routes)
61
61
  @routes = routes
62
62
  end
63
-
63
+
64
64
  def routes!
65
65
  unless @routes
66
66
  @routes = SINGLETON_ROUTES.dup
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.2
4
+ version: '1.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Benevento
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.1'
19
+ version: '1.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.1'
26
+ version: '1.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.5'
33
+ version: '10'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.5'
40
+ version: '10'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement