vigilante 1.0.9 → 1.0.10

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: 3492684e01ee48fe7be5c1042f7c06f6a79a3c63
4
- data.tar.gz: 67920dce5f11f2ab5d5fe321a62c3adcf966a1fd
3
+ metadata.gz: 9c47bb2c2a104991b53df9ecc048899a9a93b370
4
+ data.tar.gz: 9c4219672cf511c8f692dc5ed5993f0f8b3b2371
5
5
  SHA512:
6
- metadata.gz: f0b8fe16ecb9819067cca4ebf434a875e6d0dd129945099cb937d869ddc5a76cca6534668aafe396b571228771eb3157cabedb54d5352dea9a62a50ebf9ea054
7
- data.tar.gz: 24db66173f4cb3e60ec458b92f5623599ba6171598543889f8ea4acc7e19513615353c8db119cbc0c6045f0a39e164e88f8022f6cda05fff0a4cf05ac91c09e9
6
+ metadata.gz: e1ef2897e1d320f414b1a926c5da2fd80daf9d8311d4fcdcbca3fe24630b60eea8d1df3a6c6a976eecb65e24f3c2c3f1e30d193cbeee23ae05ae6e3eaa190e11
7
+ data.tar.gz: 437aff407168bde60364bcdc5ab959cd25f23fddc7cd4be86e44e37dfb660789bd3bae6a0d345f993d2a8bde7b48c684a4d8118302b56a67bffba0adfb0e4e8a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.9
1
+ 1.0.10
@@ -5,6 +5,10 @@ class PermissionHash < HashWithIndifferentAccess
5
5
  }
6
6
  })
7
7
 
8
+ def self.default
9
+ PermissionHash.new(DEFAULT_PERMISSIONS)
10
+ end
11
+
8
12
  # default initialization
9
13
  def initialize(default_start = DEFAULT_PERMISSIONS)
10
14
  new_start = HashWithIndifferentAccess.new
@@ -122,7 +122,7 @@ module Vigilante
122
122
  @permits = if get_protectee
123
123
  get_protectee.permits
124
124
  else
125
- PermissionHash::DEFAULT_PERMISSIONS
125
+ PermissionHash.default
126
126
  end
127
127
  session[:permits] = @permits
128
128
  elsif @permits.class.name != "PermissionHash"
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: vigilante 1.0.9 ruby lib
5
+ # stub: vigilante 1.0.10 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "vigilante"
9
- s.version = "1.0.9"
9
+ s.version = "1.0.10"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Nathan Van der Auwera"]
14
- s.date = "2016-07-28"
14
+ s.date = "2016-07-29"
15
15
  s.description = "Vigilante is a db-backed authorisation, completely configurable and dynamic; where permissions can be limited to extents."
16
16
  s.email = "nathan@dixis.com"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vigilante
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Van der Auwera
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-28 00:00:00.000000000 Z
11
+ date: 2016-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails