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: 35c05aee3ab709cc47a1e71a237f376e122a0235
4
- data.tar.gz: cb2dd18f0d4de8fbc32b460aebfb2b4506ff255d
3
+ metadata.gz: fccb799a01e843caccefb56ff690c2864f56fca7
4
+ data.tar.gz: f9bdf687a142a029ee04c9fc38cd02c590573a88
5
5
  SHA512:
6
- metadata.gz: cbebbf65af7035028eadad8fdae4aa0a29e288b057f06aa6ff4d37dcea42cc9b12d7a8b106147d875baec782b1e1e2c9f4d5b27b45b4bb9e9a4a41659b7949ce
7
- data.tar.gz: 5b45c2359e524077bb1ad9ab7695ee6379c88bcf0acfec744ea40364c54422d8158a4fc4db6abe5bd7432319327cbd471c36989445d5c6a9787c80de9d59eeaa
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
- invites = user.invitations.for_invitable(invitable.class.name, invitable.id)
19
+ unless invitable.nil?
20
+ invites = user.invitations.for_invitable(invitable.class.name, invitable.id)
20
21
 
21
- if invites.count > 0
22
- unless roles.nil?
23
- self.role_check invites.first, roles
24
- else
25
- true
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 relatoinship
3
- to your identiy class
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
@@ -1,3 +1,3 @@
1
1
  module Invitational
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
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.0
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: 2014-07-23 00:00:00.000000000 Z
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/d-i/invitational
159
+ homepage: http://github.com/the-refinery/invitational
162
160
  licenses: []
163
161
  metadata: {}
164
162
  post_install_message: