action_authorization 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: 4f28b1848154905407d532747347e5a0c33dadc028c5fe84f4d78fc3cf8a14ba
4
- data.tar.gz: 8525ff6cc7f6b9891c27b567c031385cd6a56dc0365847b8b5b8a10214e3e964
3
+ metadata.gz: 2dd0c0e8ef655fea3921497c77e75bec32a3fbdc3650fd975b033ff0e32337bd
4
+ data.tar.gz: 22c012b2d06a2012adcb2777d3f10135212c9cd0890e639c524928ceb51f4d1f
5
5
  SHA512:
6
- metadata.gz: 74efb7d0649a2a9d2474c3df0dd087e86469e3c5257f570a7d3cea093322a5e380c7ba3c5d9bd474b3d668b5014794624753d7f90ff321ac358752f429826f67
7
- data.tar.gz: ce8d61ed43e321016c11780b3075434987d35dfeb780e6b79093b165b06e06b50dd84fb88d5a900f6461e362450287682069a028646268e029397eb5efb1eaa2
6
+ metadata.gz: dc7c5b3e2ed0633de571355990503081de5fe8a9a613f058de7c6907e10311dcd6052754c9e6c157f027abd839a7c199dd84a126d63a93e21dcfc04de856343f
7
+ data.tar.gz: 6117f80e8cd31f19754beefa05ab90a248d29e50adff54f206381a8d8bef10936d1663eac6b6fb25aa2e9ffda5f1c1f309d16fe83b47f25d0df0a1fdd4dac39e
data/README.md CHANGED
@@ -35,7 +35,7 @@ end
35
35
  Create an authorization policy for a resource.
36
36
 
37
37
  ``` ruby
38
- class DocumentPolicy
38
+ class DocumentPolicy < ActionAuthorization::BasePolicy
39
39
  def show?
40
40
  document.owner == user
41
41
  end
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
- spec.add_runtime_dependency "activesupport", "~> 5.0"
24
+ spec.add_runtime_dependency "activesupport", ">= 5.0"
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.14"
27
27
  spec.add_development_dependency "rake", "~> 12.1"
@@ -1,3 +1,3 @@
1
1
  module ActionAuthorization
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_authorization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Baldwin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-11 00:00:00.000000000 Z
11
+ date: 2020-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '5.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
@@ -135,8 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  requirements: []
138
- rubyforge_project:
139
- rubygems_version: 2.7.7
138
+ rubygems_version: 3.0.3
140
139
  signing_key:
141
140
  specification_version: 4
142
141
  summary: Rails controller object-level action authorization.