kant 0.0.2 → 0.0.3
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 +4 -4
- data/README.md +1 -1
- data/lib/kant/all_access.rb +3 -0
- data/lib/kant/no_access.rb +3 -0
- data/lib/kant/version.rb +1 -1
- data/spec/kant/all_access_spec.rb +4 -0
- data/spec/kant/no_access_spec.rb +4 -0
- data/spec/kant/policy_access_spec.rb +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0b65ae77365d3fb81725cb1dad2634d25b51640
|
4
|
+
data.tar.gz: dac368c947e0ab658ce42dbc0570214d218dbec5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a6684cc5fbbe9d9a90a8b14aa7c32b75dfc112eac379630c383646679f9cf0588e932057ad0eb585a2ea6ec7108287342cf73ca458aacad83cc8d82d3338628
|
7
|
+
data.tar.gz: bd2b8391077f3f7ec7b13b03375bf6e4310fe9f57ff3dc957a9be82785cfc2f786a575f35f216eefc0c27a61a3372496d9d2dfa728b063ed911cff30e8362caa
|
data/README.md
CHANGED
data/lib/kant/all_access.rb
CHANGED
data/lib/kant/no_access.rb
CHANGED
data/lib/kant/version.rb
CHANGED
data/spec/kant/no_access_spec.rb
CHANGED
@@ -4,6 +4,12 @@ require 'kant/policy_access'
|
|
4
4
|
describe Kant::PolicyAccess do
|
5
5
|
setup_models
|
6
6
|
|
7
|
+
it "has a #user method" do
|
8
|
+
user = User.create!(email: 'foo@bar.com')
|
9
|
+
policy_access = Kant::PolicyAccess.new(user)
|
10
|
+
expect(policy_access.user).to eq(user)
|
11
|
+
end
|
12
|
+
|
7
13
|
describe "#can?" do
|
8
14
|
let(:user) { User.create!(email: 'foo@bar.com') }
|
9
15
|
subject(:policy_access) { Kant::PolicyAccess.new(user) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Przepiora
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
version: '0'
|
144
144
|
requirements: []
|
145
145
|
rubyforge_project:
|
146
|
-
rubygems_version: 2.
|
146
|
+
rubygems_version: 2.4.5.1
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: A tiny, non-magical authorization library
|