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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16414f6855c1086a9bfef8ce283c9db95bb3e9a5
4
- data.tar.gz: 5685f81df19520b186241ea34e74fa69997ef043
3
+ metadata.gz: 6b8573a5395b8ee35ccc38ccafca080f4baa7a30
4
+ data.tar.gz: c1601e86936e213f7c9e4af57cc6c2c1bf3da87c
5
5
  SHA512:
6
- metadata.gz: 18c9c75d8c266194396bed0975b2f25ea42eb6a01fc82ba3313a629b57ec2c49c560eced3652a99460036a4cf36347fc2a0d6fbb91d62e549fbdedd35db97a52
7
- data.tar.gz: 95b7dd2e2def84145fc170a520b760dbbd94fc405d000f14adab4dce255fcf234988ca4bbcfcb9df72cab82fc211e808eaf349c2241c1bb1ce6cb911e7027370
6
+ metadata.gz: 1d62ce6b4c55ef2cddd31d4c41b8b628c8625ddac0e65b4195dbda6e9253ff1098844a0229a7b4f1de1a5c4e83a84e2c3fd09b1e0ce7629d93e88f4b39752af2
7
+ data.tar.gz: cff2e62012a09c8e85d38ac1de48948067a49e0d7f2a51ef5bc252b3d435051bff5947bc0280713ccaa1ea74924fb8600f577c1f43a0ca3180bc3e14edaae502
@@ -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, :user
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) }
@@ -1,5 +1,5 @@
1
1
  module Sso
2
2
  module Auth
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
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.2
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-03-17 00:00:00.000000000 Z
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