switch_user 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -6
- data/lib/switch_user/data_source.rb +1 -1
- data/lib/switch_user/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 703c786469cf8a796e024e2ec4cca3037d75c944
|
4
|
+
data.tar.gz: dc4d80d1a338401476ef22205bfee5bc215b07ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df717cc06e736487dde734d3f19fb390c0a2ffde9f69adbbd3a0ba365912e9a2c0d211ef9f865ae5b0740cd1fe558c3c72dd85160bc0ba6ec344fc464c75b7a3
|
7
|
+
data.tar.gz: c47e07ed11ff0bb6a0b0f7e6514e92f963c6eb5d526750d77136dff973571bd94635c9ac08faacccc2f6495f04742c4cb21f7df0f72d944a858a862a59d3b3c3
|
data/CHANGELOG.md
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
# Next Release
|
2
2
|
|
3
|
-
## 1.0
|
3
|
+
## 1.1.0 (07/01/2015)
|
4
4
|
|
5
|
-
*
|
6
|
-
|
7
|
-
## 1.0.1
|
8
|
-
|
9
|
-
* Fix typo in `GuestDataSource`
|
5
|
+
* Rails 3.x compatibility
|
6
|
+
* Don't attempt to query db if scope str isn't in `scope_id` str
|
10
7
|
* Allow custom method as `available_users_names`
|
11
8
|
|
12
9
|
## 1.0.0 (06/22/2015)
|
@@ -33,7 +33,7 @@ module SwitchUser
|
|
33
33
|
scope_regexp = /\A#{scope}_/
|
34
34
|
return unless scope_id =~ scope_regexp
|
35
35
|
|
36
|
-
user = loader.call.
|
36
|
+
user = loader.call.where(identifier => scope_id.sub(scope_regexp, '')).first
|
37
37
|
Record.new(user, self)
|
38
38
|
end
|
39
39
|
end
|
data/lib/switch_user/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: switch_user
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Huang
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-07-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|