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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa6113989b41b3319f4b4d122026259fafa0f7b5
4
- data.tar.gz: 59ae4426b7503ca5232bcb7313d2a98c0ead1e7c
3
+ metadata.gz: a246b8dae52a13e2c97d5718358e8af48ae9c0f2
4
+ data.tar.gz: 0aa9abb91be99a013ec5f850d3a21337bc706f0f
5
5
  SHA512:
6
- metadata.gz: b159d33d5b39c455b72dd18ddb722f9c8ee688c188647b17f9070ac94ae6660ad8a9fb31af83623ffb6fab9bba8c5217dfa307a37d863226249b3f36dfbd56e3
7
- data.tar.gz: 1ff783d13c4b2aa07d92bdec8fe9a1840b14e18dbfef3cd45adc48a8b9de80c8502a8b687d845b3fa04b90d4f3ab82702ab3682cb0de8ebc7d5514bd55f226f4
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
- belongs_to :resource, polymorphic: true
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
@@ -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', '~> 4.0'
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module G5Authenticatable
4
- VERSION = '1.0.0-2'
4
+ VERSION = '1.0.0-3'
5
5
  end
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.2
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-25 00:00:00.000000000 Z
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: '4.0'
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: '4.0'
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.5.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.