ramlstyle 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1b112906842c3a5ec171c0bf8c19b0ce3b222b8
4
- data.tar.gz: c8965a05a9a1b4d13a79902f028dc3eee3cad339
3
+ metadata.gz: dc093a913ef34bb1bda40f5d2912315b18950580
4
+ data.tar.gz: e5198bc9be00f4fe434ba8a9f4f99d22d6c2f995
5
5
  SHA512:
6
- metadata.gz: 5688b30823f76bb2fab1a99edd109ff311d51043833676d60748e0bb489f6194c9935e3a03ed7c5ac733a8f1508d3269aff013993d561bd23b10e288dc09dc23
7
- data.tar.gz: dcf1ed3540a59299e2f1cbf2ad4ac902cce2c5e837b717c04081b3d9bb810fe6bf825732c9258e94c3db1485377cab6db90255aead3b4e747f9cb9d2db716745
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 { |s| s.name == "null" } > 0
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
@@ -1,3 +1,3 @@
1
1
  module Ramlstyle
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -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/rackerlabs/ramlstyle"
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.3
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-01 00:00:00.000000000 Z
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/rackerlabs/ramlstyle
241
+ homepage: http://github.com/mmorga/ramlstyle
242
242
  licenses: []
243
243
  metadata: {}
244
244
  post_install_message: