soar_sc_routing 0.1.5 → 0.1.6

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: 6b395bec68949c930873f54e86f299196f3f1dea
4
- data.tar.gz: c7438b89623dfebec5738b2f29162c35c8cd3cb8
3
+ metadata.gz: 891ece3dcea44d840af6368216d9e21ddbdecf74
4
+ data.tar.gz: 6592a06ade0f0db34f191cd3be9e9cf20373fb87
5
5
  SHA512:
6
- metadata.gz: ac2983f767f9a0f3bddb3bdf1bc9a61e5da351f2303c6829cf869521d330afb6281d8595871900c1efc29bd1ef7c1ac228777511da900c20a3f666ae002cb920
7
- data.tar.gz: c1c19eadc76e72b0dcad204cffb56443706f4f79ddbf8f67d93960df90d92677786c812020cc4c7817ce021a48a9fd2614b6e17df81538208cdeebc9e51d4351
6
+ metadata.gz: 02f58e8fe7f9d8b773d800f80e7b4dec71436d33623df0dbe77f257eb1ea50bb8143a163ba91812987cb515e6fb1cf903047ff24fae88883ed0bc822300ec106
7
+ data.tar.gz: 2dd5b2a535ec82ddcafc97825ebe6f72ab63ae16410b276ab673d11644952d4d52e8525f626719ac7e29757be1a47faca0f31f64306f4c4d2ed2afbdf30831a4
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ## Features
4
4
 
5
5
  ### RouterMeta
6
- This library facilitates the registration of routes and their meta for use by a router. The SOAR reference implementation uses this library to register routes and meta for soar_sc routers.
6
+ This library facilitates the registration of routes and their meta for use by a router. The SOAR reference implementation uses this library to register routes and meta for soar_sc routers.
7
7
 
8
8
  When a route is registered, control is delegated as appropriate to the controller, renderer and access manager indicated in the meta.
9
9
 
@@ -123,6 +123,12 @@ class SoarScRouter < SoarScRouting::BaseRouter
123
123
  end
124
124
  ```
125
125
 
126
+ ## Testing
127
+
128
+ Testing can be performed:
129
+
130
+ $ bundle exec rspec -cfd spec/*
131
+
126
132
  ## Contributing
127
133
 
128
134
  Please send feedback and comments to the author at:
@@ -134,4 +140,3 @@ This gem is sponsored by Hetzner (Pty) Ltd - http://hetzner.co.za
134
140
  ## License
135
141
 
136
142
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
137
-
@@ -83,6 +83,7 @@ module SoarScRouting
83
83
  def validate_detail(detail)
84
84
  raise ArgumentError.new("detail must not be nil") if detail.nil?
85
85
  raise ArgumentError.new("path must be provided") if detail['path'].nil?
86
+ raise ArgumentError.new("path must start with /") if detail['path'][0] != '/'
86
87
  raise ArgumentError.new("description must be provided") if detail['description'].nil?
87
88
  raise ArgumentError.new("method must be provided") if detail['method'].nil?
88
89
  raise ArgumentError.new("service_name must be provided") if detail['service_name'].nil?
@@ -1,3 +1,3 @@
1
1
  module SoarScRouting
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_sc_routing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst Van Graan