sso-auth 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b8573a5395b8ee35ccc38ccafca080f4baa7a30
4
- data.tar.gz: c1601e86936e213f7c9e4af57cc6c2c1bf3da87c
3
+ metadata.gz: f4cd284dfbb8efce2a4612c70356087080a98b3c
4
+ data.tar.gz: a1ce9d9bd384c4268c62f7dd3b2a8a4656229776
5
5
  SHA512:
6
- metadata.gz: 1d62ce6b4c55ef2cddd31d4c41b8b628c8625ddac0e65b4195dbda6e9253ff1098844a0229a7b4f1de1a5c4e83a84e2c3fd09b1e0ce7629d93e88f4b39752af2
7
- data.tar.gz: cff2e62012a09c8e85d38ac1de48948067a49e0d7f2a51ef5bc252b3d435051bff5947bc0280713ccaa1ea74924fb8600f577c1f43a0ca3180bc3e14edaae502
6
+ metadata.gz: 9bbd6480a2acfb3d2bd88ff8ef6bbbb3188a51939a1e618daa85dd1965969b040e112c8bc5e452c46627857fc13ab9dc0d9805268c85d1b90f7e26e7cd877d56
7
+ data.tar.gz: fecb971958b77f930e4ad7713edd3a56d2647dcb1f14bdd5aaee9088f8bb943f0f91bf6c9cda41801e0363fe19efd8838d5d377d70a8446f02c17a63745cb0fc
@@ -95,9 +95,8 @@ module Sso
95
95
  belongs_to :context, :polymorphic => true
96
96
  belongs_to :user
97
97
 
98
- validates_inclusion_of :role, :in => available_roles + available_roles.map(&:to_sym)
99
- validates_presence_of :role, :user_id
100
- validates_uniqueness_of :role, :scope => [:user_id, :context_id, :context_type]
98
+ validates_inclusion_of :role, :in => available_roles + available_roles.map(&:to_sym)
99
+ validates_presence_of :role
101
100
 
102
101
  scope :for_role, ->(role) { where(:role => role) }
103
102
  scope :for_context, ->(context) { where(:context_id => context.try(:id), :context_type => context.try(:class)) }
@@ -1,5 +1,5 @@
1
1
  module Sso
2
2
  module Auth
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sso-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - http://openteam.ru