g5_authenticatable 1.0.0.pre.2 → 1.0.0.pre.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/g5_authenticatable/role.rb +6 -1
- data/g5_authenticatable.gemspec +1 -1
- data/lib/g5_authenticatable/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a246b8dae52a13e2c97d5718358e8af48ae9c0f2
|
4
|
+
data.tar.gz: 0aa9abb91be99a013ec5f850d3a21337bc706f0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32d101e55c7b5eb1c2422cc65a8d8ea8b9f5867cb9ddc09d6a15ddd888f979580cf9e453eeea5ece3ec8549e54bceed13b98df897ed2fa76f17ef210f0beeb11
|
7
|
+
data.tar.gz: dc17642cd815c28f7e6507cd0f392f861d97edb45007dfef74743e5eb9e85ac39cf49c5799bc2085d8b42c0bf6cca51ba0f5adce6ec3c374b00143e1a254a1bd
|
@@ -4,7 +4,12 @@ module G5Authenticatable
|
|
4
4
|
# A user role (e.g. admin, viewer), optionally scoped to a client or location
|
5
5
|
class Role < ActiveRecord::Base
|
6
6
|
has_and_belongs_to_many :users, join_table: :g5_authenticatable_users_roles
|
7
|
-
|
7
|
+
|
8
|
+
if Rails::VERSION::MAJOR >= 5
|
9
|
+
belongs_to :resource, polymorphic: true, optional: true
|
10
|
+
else
|
11
|
+
belongs_to :resource, polymorphic: true
|
12
|
+
end
|
8
13
|
|
9
14
|
scopify
|
10
15
|
end
|
data/g5_authenticatable.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.add_dependency 'devise_g5_authenticatable', '1.0.0.pre.1'
|
26
26
|
spec.add_dependency 'g5_authenticatable_api', '1.0.0.pre.1'
|
27
|
-
spec.add_dependency 'rolify', '~>
|
27
|
+
spec.add_dependency 'rolify', '~> 5.1.0'
|
28
28
|
spec.add_dependency 'pundit', '~> 1.0'
|
29
29
|
spec.add_dependency 'g5_updatable', '> 0.6.0'
|
30
30
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: g5_authenticatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.
|
4
|
+
version: 1.0.0.pre.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- maeve
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise_g5_authenticatable
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 5.1.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 5.1.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: pundit
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -305,7 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
305
305
|
version: 1.3.1
|
306
306
|
requirements: []
|
307
307
|
rubyforge_project:
|
308
|
-
rubygems_version: 2.
|
308
|
+
rubygems_version: 2.4.8
|
309
309
|
signing_key:
|
310
310
|
specification_version: 4
|
311
311
|
summary: An authentication engine for G5 applications.
|