controls 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/controls/response.rb +6 -3
- data/lib/controls/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd84e1340b07a318015b19af3f73a94634ff3c52
|
4
|
+
data.tar.gz: e6abbd57de98c7f480e346dbc5661b3b4e298158
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afb6ec669463f9440b712969519d1c754699e086ed4624cc36b1f81cad098e9122032dcf0cdc943c5c5a1de4973aa53211e464ffefd1113e76981dd566dfab27
|
7
|
+
data.tar.gz: 64815e5c8c65bf78c9a9f109a1f655442ba71276b6575b72471a27ef862b9eb7cff0229595b79baf756191d44035c7a3775d69f41bbfeab2125a30d5e2bdd7f5
|
data/lib/controls/response.rb
CHANGED
@@ -18,10 +18,13 @@ module Controls
|
|
18
18
|
Controls.const_get(Regexp.last_match[1].split('_').map(&:capitalize).join)
|
19
19
|
when %r(^(?:/\d.\d)?\/(assessment|configuration|guidance|security_control|threat|threat_vector)s?)
|
20
20
|
Controls.const_get(Regexp.last_match[1].split('_').map(&:capitalize).join)
|
21
|
+
# [todo] - these asset related endpoints are inconsisteny create a better regex?
|
22
|
+
when %r(^(?:/\d.\d)?/assets/search)
|
23
|
+
Controls::AssetCollection
|
21
24
|
when /((?:applicable|miconfigured|uncovered|undefended)?_?asset)s$/
|
22
|
-
Controls
|
23
|
-
when %r(
|
24
|
-
Controls
|
25
|
+
Controls::AssetCollection
|
26
|
+
when %r(^(?:/\d.\d)?/((?:applicable|miconfigured|uncovered|undefended)?_?asset)s/)
|
27
|
+
Controls::Asset
|
25
28
|
else
|
26
29
|
Dish::Plate
|
27
30
|
end
|
data/lib/controls/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: controls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erran Carey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dish
|