smartscope 0.0.1 → 0.0.2

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.
@@ -8,6 +8,9 @@ module Smartscope
8
8
  end
9
9
 
10
10
  def verify(scope)
11
+ unless @scopes
12
+ return false
13
+ end
11
14
  if @scopes.include?('*') or @scopes.include?(@ns + ':*')
12
15
  true
13
16
  else
@@ -1,3 +1,3 @@
1
1
  module Smartscope
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -14,4 +14,9 @@ describe Smartscope do
14
14
  scope.verify('index').should be_true
15
15
  scope.verify('create').should be_false
16
16
  end
17
+ it "verifies false when scope is nil" do
18
+ scope = Smartscope::Scope.new('test', nil)
19
+ scope.verify('index').should be_false
20
+ scope.verify('create').should be_false
21
+ end
17
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartscope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: