soar_aspects 0.1.1 → 0.1.2

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: 7d0b682714e9d99fbae15114efd7c8eff7099887
4
- data.tar.gz: faaa366817407caa1a51a685f4c1bc5b9802bf46
3
+ metadata.gz: 98b34781c7325e0ca1ed0e1bc3f5f4c94a2c1409
4
+ data.tar.gz: 0fd126ce707a29e087736c8fc9d3d88ae2cb92fa
5
5
  SHA512:
6
- metadata.gz: 5c32dadfb9acbc6ebd5745f29f43d6d190eef17b6d0cae79639e6dc9c43af0359e438abe4618cf0f5dc7fbc0a2e58873290a11b39a7e41397be606584cc4b0a5
7
- data.tar.gz: 31b7a2c323a76d604edf36fb0a000ebf1f292dd4873221353bb3c95b7b220b8a630754e0671f8b2601a96171f98fe03e1d1e5c51e326df103b05a425c82ece00
6
+ metadata.gz: 0663a540b1ebfdd02f253e5608786b003c89a62fe0e4eb9d504d5c4ab2c8fac92d8726c3e3ade3e00801833aa22a77a8703ec96d298ade5715317b5704ef081f
7
+ data.tar.gz: 86565a64aa523847f40d45ec2f4eeed4b4167716c0542f3e7a39796eebedcc4ee40e1cc9fd8ee42979d3ab0100a8e92e1c7750e7c7de50dff9c0f21bb5f2c915
data/README.md CHANGED
@@ -26,10 +26,10 @@ Or install it yourself as:
26
26
  ## Usage
27
27
 
28
28
  ```
29
- SoarAspects::config = @config
30
- SoarAspects::signed_routes = @signed_routes
31
- SoarAspects::auditing = @auditing
32
- use SoarAspects
29
+ SoarAspects::Aspects::config = @config
30
+ SoarAspects::Aspects::signed_routes = @signed_routes
31
+ SoarAspects::Aspects::auditing = @auditing
32
+ use SoarAspects::Aspects
33
33
  ```
34
34
 
35
35
  ### configuration
@@ -48,6 +48,26 @@ SOAR routing middleware is interested in the meta of routes, such as security NF
48
48
 
49
49
  SOAR uses auditors for logging and other reporting. auditing here is an object that adheres to https://rubygems.org/gems/soar_auditor_api
50
50
 
51
+ ### lexicon
52
+
53
+ A lexicon of description and parameter, path and method definitions for a service. For the SOAR architecture, this looks so:
54
+
55
+ ```
56
+ {
57
+ '/route-path' => {
58
+ 'description' => 'Business question answered here',
59
+ 'service_name' => 'business_service',
60
+ 'path' => '/route-path',
61
+ 'method' => 'get',
62
+ 'params' => {
63
+ 'pattern' => {
64
+ 'required' => 'true', 'type' => 'string'
65
+ }
66
+ },
67
+ }
68
+ }
69
+ ```
70
+
51
71
  ## Contributing
52
72
 
53
73
  Please send feedback and comments to the author at:
data/lib/soar_aspects.rb CHANGED
@@ -7,6 +7,7 @@ module SoarAspects
7
7
  @@configuration = nil
8
8
  @@signed_routes = nil
9
9
  @@auditing = nil
10
+ @@lexicon = nil
10
11
 
11
12
  def self.configuration=(configuration)
12
13
  @@configuration = configuration
@@ -32,6 +33,14 @@ module SoarAspects
32
33
  @@auditing
33
34
  end
34
35
 
36
+ def self.lexicon=(lexicon)
37
+ @@lexicon = lexicon
38
+ end
39
+
40
+ def self.lexicon
41
+ @@lexicon
42
+ end
43
+
35
44
  def initialize(app)
36
45
  @app = app
37
46
  end
@@ -40,6 +49,7 @@ module SoarAspects
40
49
  env['configuration'] = @@configuration
41
50
  env['signed_routes'] = @@signed_routes
42
51
  env['auditing'] = @@auditing
52
+ env['lexicon'] = @@lexicon
43
53
  @app.call(env)
44
54
  end
45
55
  end
@@ -1,3 +1,3 @@
1
1
  module SoarAspects
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_aspects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst Van Graan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
11
+ date: 2016-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.5.1
94
+ rubygems_version: 2.4.8
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Library facilitating seeding of SOAR aspects in the rack environment