access-granted 1.1.1 → 1.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: 6623e9733f5b953552e36a15583df6521907ec6e
4
- data.tar.gz: bafd828d949b9c72c0f5bf02e35059d4454abfe2
3
+ metadata.gz: b6d400982e35b05842762be3929a3bfb9d1a9de6
4
+ data.tar.gz: 3825d04d00c581e55b21339c92e6b8b3b5e90672
5
5
  SHA512:
6
- metadata.gz: 3ca707e303b4d873afe1b1a7faa5a1d342ca41b42fd866aba43a04313bffd2f56ea8db286d4aeed79e574d463acd1d1ec2f7823b320368cf0b22575df3873bc0
7
- data.tar.gz: 24a03ef14f3283028ec7552c30e4bd2dc1d7688aed840d610c3f017cf7f233b303012876224eda1a3c64e233ad83de35b113a41b6ae7317b11d84229ce465e02
6
+ metadata.gz: f1fa9bad01415dc1642a0d7d4c6396f4db625f88f87c81f59649fb230547da4f32cbbcb01bb3362a4716cdfba702ed97719afc2eecee688a8383c05901e2f9b6
7
+ data.tar.gz: bc6346e03d9d8502f4e42fce4ec0eba1939fd5e3c01846380f480c1e0feb4936af16840d2caf507f8b75e4b66f9e7b9b03841e42cac2c34200d512d409d2e738
@@ -5,7 +5,5 @@ rvm:
5
5
  - 2.0
6
6
  - 2.1
7
7
  - 2.2
8
- - rbx-2
9
- - rbx
10
8
  - jruby-1
11
9
  - jruby
@@ -1,3 +1,7 @@
1
+ # 1.1.2
2
+
3
+ - Expose internal `block` instance variable in Permission class
4
+
1
5
  # 1.1.1
2
6
 
3
7
  - Return detailed information about which permission is duplicate when raising DuplicatePermission exception
data/Gemfile CHANGED
@@ -5,7 +5,6 @@ gemspec
5
5
 
6
6
  group :test, :development do
7
7
  gem 'rb-readline'
8
- gem 'simplecov', require: false
9
8
  gem 'rake'
10
9
  gem 'pry'
11
10
  gem 'cancan'
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "access-granted"
7
- spec.version = "1.1.1"
7
+ spec.version = "1.1.2"
8
8
  spec.authors = ["Piotrek Okoński"]
9
9
  spec.email = ["piotrek@okonski.org"]
10
10
  spec.description = %q{Role based authorization gem}
@@ -1,6 +1,6 @@
1
1
  module AccessGranted
2
2
  class Permission
3
- attr_reader :action, :subject, :granted, :conditions
3
+ attr_reader :action, :subject, :granted, :conditions, :block
4
4
 
5
5
  def initialize(granted, action, subject, user = nil, conditions = {}, block = nil)
6
6
  @action = action
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: access-granted
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotrek Okoński
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-29 00:00:00.000000000 Z
11
+ date: 2017-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler