sso-auth 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sso/auth/engine.rb +1 -1
- data/lib/sso/auth/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b8573a5395b8ee35ccc38ccafca080f4baa7a30
|
4
|
+
data.tar.gz: c1601e86936e213f7c9e4af57cc6c2c1bf3da87c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d62ce6b4c55ef2cddd31d4c41b8b628c8625ddac0e65b4195dbda6e9253ff1098844a0229a7b4f1de1a5c4e83a84e2c3fd09b1e0ce7629d93e88f4b39752af2
|
7
|
+
data.tar.gz: cff2e62012a09c8e85d38ac1de48948067a49e0d7f2a51ef5bc252b3d435051bff5947bc0280713ccaa1ea74924fb8600f577c1f43a0ca3180bc3e14edaae502
|
data/lib/sso/auth/engine.rb
CHANGED
@@ -96,7 +96,7 @@ module Sso
|
|
96
96
|
belongs_to :user
|
97
97
|
|
98
98
|
validates_inclusion_of :role, :in => available_roles + available_roles.map(&:to_sym)
|
99
|
-
validates_presence_of :role, :
|
99
|
+
validates_presence_of :role, :user_id
|
100
100
|
validates_uniqueness_of :role, :scope => [:user_id, :context_id, :context_type]
|
101
101
|
|
102
102
|
scope :for_role, ->(role) { where(:role => role) }
|
data/lib/sso/auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sso-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- http://openteam.ru
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cancan
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: activeresource
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: rspec-rails
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|