rack-raml 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86b31081e20fdb366e4f840dc58f44614492b798
4
- data.tar.gz: 9469fc9a148fb16807efb6151b2100e64c9c096d
3
+ metadata.gz: 52471fa21e257a22339d7b59058e817e096c8cc7
4
+ data.tar.gz: f7288ba66b060bfe90ed90ef8b60f91c2d24a7bd
5
5
  SHA512:
6
- metadata.gz: c4b0a8f2c93fa04364c77c5b1d4ab4704836fe5a9aecc8aa0f79303905e5b9db2a83fd7ce60d745109ddc50dabe34a4c8ce4b9f5c414c8f51f66a94eabf1bf63
7
- data.tar.gz: d0ea9ae37ebfa610e60c4787dd8bab21299a969bb14ef55e97007edeb41e79cc8cc1a4f17fc7f8b0beaf84755c214e56a790cf4360617cf9dc84aa952b9a0318
6
+ metadata.gz: 485971a1b4c9e787326a1891737b8bbe078b583be680670506f49d644f2714f4fa3619c7a6997bd4a72c3a619c8f2c6eca6f8d1b46b25016f019edc9b701c22c
7
+ data.tar.gz: dfc05027e205f8701db3a1fca2ab6181501d8b879e8be3c7bca66f02ca88984f5231ea9321aa3dc57ff19ab739421fbf1458e8acc9b683c5290dfeed66ccb0f7
data/lib/rack/raml/app.rb CHANGED
@@ -33,6 +33,8 @@ module Rack
33
33
  end
34
34
 
35
35
  def flatten_resources(node)
36
+ return [] unless node.respond_to?(:children)
37
+
36
38
  node.children.inject([]) do |acc, child|
37
39
  acc << child if child.kind_of?(::Raml::Resource)
38
40
  acc + flatten_resources(child)
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Raml
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-raml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ray Zane
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-13 00:00:00.000000000 Z
11
+ date: 2016-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  requirements: []
139
139
  rubyforge_project:
140
- rubygems_version: 2.6.7
140
+ rubygems_version: 2.4.8
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: A mock RAML server for Rack-based applications.