invitational 1.3.0 → 1.3.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fccb799a01e843caccefb56ff690c2864f56fca7
|
4
|
+
data.tar.gz: f9bdf687a142a029ee04c9fc38cd02c590573a88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ebc2f1a33ded3578e225236bb1d4b62ed035e9dc1daf8e9c0a5f6a14fe50c5f992b82fbef047beccdd5342e2b6ee45828b7c5c334526ab048cad89f90bb336e
|
7
|
+
data.tar.gz: a3f24a43e239f9f13a456375b5e57de16e4cf6ca35c499b6eb08b819b532a1d16baff23e2112f5d47b829c6006654ba001398d52e51abbc9af55e742b31eb402
|
@@ -16,13 +16,15 @@ private
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.specific_invite? user, invitable, roles
|
19
|
-
|
19
|
+
unless invitable.nil?
|
20
|
+
invites = user.invitations.for_invitable(invitable.class.name, invitable.id)
|
20
21
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
if invites.count > 0
|
23
|
+
unless roles.nil?
|
24
|
+
self.role_check invites.first, roles
|
25
|
+
else
|
26
|
+
true
|
27
|
+
end
|
26
28
|
end
|
27
29
|
end
|
28
30
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Description:
|
2
|
-
This generator installs the necessary components for the Invitational gem, and provides the initial
|
3
|
-
to your
|
2
|
+
This generator installs the necessary components for the Invitational gem, and provides the initial relationship
|
3
|
+
to your identity class
|
4
4
|
|
5
5
|
Example:
|
6
6
|
rails generate invitational User
|
data/lib/invitational/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: invitational
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Goerlich
|
8
|
-
- Joe Fiorini
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-10-06 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
@@ -127,7 +126,6 @@ description: Solution that eliminates the tight coupling between user identity/a
|
|
127
126
|
and application functional authorization
|
128
127
|
email:
|
129
128
|
- dave@d-i.co
|
130
|
-
- joe@d-i.co
|
131
129
|
executables: []
|
132
130
|
extensions: []
|
133
131
|
extra_rdoc_files: []
|
@@ -158,7 +156,7 @@ files:
|
|
158
156
|
- lib/invitational/exceptions.rb
|
159
157
|
- lib/invitational/version.rb
|
160
158
|
- lib/tasks/invitational_tasks.rake
|
161
|
-
homepage: http://github.com/
|
159
|
+
homepage: http://github.com/the-refinery/invitational
|
162
160
|
licenses: []
|
163
161
|
metadata: {}
|
164
162
|
post_install_message:
|