access-granted 1.0.1 → 1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1655a3217918c74b918dc7f52cf474a554fe3857
4
- data.tar.gz: e589678196a86628ae844a6fa920824311a4025a
3
+ metadata.gz: ed37f3966694f5aa4708f1b12c13b079f769f6b2
4
+ data.tar.gz: a287e21f67658f36b532f5fe3e4c6e6ab962dbc5
5
5
  SHA512:
6
- metadata.gz: e4091466b976765cd9486124cc1daff3339918c985e02c76fe33093456c98cf41e842444e000a591b2262dc9210c0ae828f3f7bd6078b7a875462cb00ab9400b
7
- data.tar.gz: c984daf5257a27d91c025b9b5e6955b1442da76f452f3344fa7d9d9f7036ebb6c4e25aab3c6cf3230ccd5fe61f02a0174e42d04aca0024516608c33668d583f3
6
+ metadata.gz: 4b25dc3178876c6134cc10b81396588c0d99cff83e320f82196f653e2db817bca124bf539acab62e8f5b01fa02e0ebb55a1253e1654d0ea55d097a6e24a0ed6e
7
+ data.tar.gz: 38e48bf94c3b918421316ea29d3c9b0c5b3072a44192da516a9245f6af713e239b7a656eb7ea3a23aa0048be6a844ec4d4b2be5153dcc1d60c77e554a28e78f7
@@ -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.0.1"
7
+ spec.version = "1.0.2"
8
8
  spec.authors = ["Piotrek Okoński"]
9
9
  spec.email = ["piotrek@okonski.org"]
10
10
  spec.description = %q{Role based authorization gem}
@@ -6,7 +6,7 @@ module AccessGranted
6
6
  end
7
7
 
8
8
  def self.included(base)
9
- base.helper_method :can?, :cannot?, :current_policy
9
+ base.helper_method :can?, :cannot?, :current_policy if base.respond_to? :helper_method
10
10
  end
11
11
 
12
12
  def can?(*args)
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.0.1
4
+ version: 1.0.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: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2015-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler