ramlstyle 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ramlstyle/documentation/erb_context.rb +2 -2
- data/lib/ramlstyle/version.rb +1 -1
- data/ramlstyle.gemspec +1 -1
- 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: dc093a913ef34bb1bda40f5d2912315b18950580
|
4
|
+
data.tar.gz: e5198bc9be00f4fe434ba8a9f4f99d22d6c2f995
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ec27a2a683aea26f23cd3070394c207e92628383bd1fa4f9170a0f05eea379376a69f569166b639f13049ebcd2fcc009c6aa477148fc4ff147031ac35b3e578
|
7
|
+
data.tar.gz: cfa296375d21c1f2670ff101fb1037e6d215b42e85b3a6f766ea6e3aa53a8c7fdebfdfef04f68612757d440f493fc4a355718d98df0c4509709d7f92507724ce
|
@@ -35,13 +35,13 @@ module Ramlstyle
|
|
35
35
|
|
36
36
|
def secured?(obj)
|
37
37
|
return true if obj.secured_by.count { |s| s.name == "null" } > 0
|
38
|
-
return true if obj.security_scheme_declarations.count { |
|
38
|
+
return true if obj.security_scheme_declarations.count { |name, scheme| name == "null" } > 0
|
39
39
|
false
|
40
40
|
end
|
41
41
|
|
42
42
|
def security_scheme_names(obj)
|
43
43
|
return obj.secured_by.map(&:name) if obj.secured_by.length > 0
|
44
|
-
obj.security_scheme_declarations.map(&:name)
|
44
|
+
obj.security_scheme_declarations.values.map(&:name)
|
45
45
|
end
|
46
46
|
|
47
47
|
def context_binding
|
data/lib/ramlstyle/version.rb
CHANGED
data/ramlstyle.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.summary = "Cmd line tool to validate, lint, and document a RAML API."
|
13
13
|
spec.description =
|
14
14
|
"Validates RAML file (and JSON schema), runs a configurable set of linting rules, and produces HTML documentation."
|
15
|
-
spec.homepage = "http://github.com/
|
15
|
+
spec.homepage = "http://github.com/mmorga/ramlstyle"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
18
|
spec.bindir = "exe"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ramlstyle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Morga
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redcarpet
|
@@ -238,7 +238,7 @@ files:
|
|
238
238
|
- templates/item.html.erb
|
239
239
|
- templates/resource.html.erb
|
240
240
|
- templates/template.html.erb
|
241
|
-
homepage: http://github.com/
|
241
|
+
homepage: http://github.com/mmorga/ramlstyle
|
242
242
|
licenses: []
|
243
243
|
metadata: {}
|
244
244
|
post_install_message:
|