controls 1.6.0 → 1.6.1

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: c454bb91456860e8b28060cca709a3955d7e227e
4
- data.tar.gz: d1069c59e852f48ebb04e6fb3acfa517177dd320
3
+ metadata.gz: bd84e1340b07a318015b19af3f73a94634ff3c52
4
+ data.tar.gz: e6abbd57de98c7f480e346dbc5661b3b4e298158
5
5
  SHA512:
6
- metadata.gz: a61b496ef91f6570129fea1491fca80862715227c5a8556dfd9aaa1c46d81d20e3a4273de70fb96b47d6442872951ebdcf3bc99e9cb87f138fe59b67ad5c8153
7
- data.tar.gz: c2e8ce4004164c97f9650fd6e63c5078a47674f840ee460cfcd7f2075178f0838acfe00e53aea27e3bae40442e6dca7a38a2f8f7988c12c149797ce0062a0762
6
+ metadata.gz: afb6ec669463f9440b712969519d1c754699e086ed4624cc36b1f81cad098e9122032dcf0cdc943c5c5a1de4973aa53211e464ffefd1113e76981dd566dfab27
7
+ data.tar.gz: 64815e5c8c65bf78c9a9f109a1f655442ba71276b6575b72471a27ef862b9eb7cff0229595b79baf756191d44035c7a3775d69f41bbfeab2125a30d5e2bdd7f5
@@ -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.const_get('AssetCollection')
23
- when %r(^/((?:applicable|miconfigured|uncovered|undefended)?_?asset)s/)
24
- Controls.const_get('Asset')
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
@@ -1,4 +1,4 @@
1
1
  module Controls
2
2
  # The version of the Controls gem
3
- VERSION = '1.6.0'
3
+ VERSION = '1.6.1'
4
4
  end
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.0
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-01 00:00:00.000000000 Z
11
+ date: 2014-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dish