pretender 0.3.4 → 0.4.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 +11 -7
- data/LICENSE.txt +1 -1
- data/README.md +17 -2
- data/lib/pretender/version.rb +1 -1
- metadata +11 -54
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfd83e017e14b15a69e02ffe5d25c6be57657f06d84b30fa276fedd61efb6d07
|
4
|
+
data.tar.gz: 55d4d73eb2ab7fa9fe87ba5be1b3da4e6264de02b845cb579612c9e8ae549ae2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e7d1306ee4466cf4b9419dbfe71c161d633eb4ded28246252b90404954a57c06597081bbfa1fedfa69effce9cbb3988c2b39043e8abd9db5160b0f652987869
|
7
|
+
data.tar.gz: 422366a35f79040ddb0b104f4d3177b637333c590c65124e58bd5934378d13aebcb92987c6c07224ec16d6a5112087c85c2c6401f1517697b0737f66f462b8de
|
data/CHANGELOG.md
CHANGED
@@ -1,30 +1,34 @@
|
|
1
|
-
## 0.
|
1
|
+
## 0.4.0 (2022-01-10)
|
2
|
+
|
3
|
+
- Dropped support for Ruby < 2.6 and Rails < 5.2
|
4
|
+
|
5
|
+
## 0.3.4 (2019-01-31)
|
2
6
|
|
3
7
|
- Fixed error with Action Cable and eager loading
|
4
8
|
|
5
|
-
## 0.3.3
|
9
|
+
## 0.3.3 (2018-09-21)
|
6
10
|
|
7
11
|
- Added support for Action Cable
|
8
12
|
|
9
|
-
## 0.3.2
|
13
|
+
## 0.3.2 (2018-01-21)
|
10
14
|
|
11
15
|
- Support for Mongoid `BSON::ObjectId` out of the box
|
12
16
|
- Fixed issue with impersonated resource caching
|
13
17
|
|
14
|
-
## 0.3.1
|
18
|
+
## 0.3.1 (2017-06-18)
|
15
19
|
|
16
20
|
- Fixed `stack level too deep` error
|
17
21
|
|
18
|
-
## 0.3.0
|
22
|
+
## 0.3.0 (2017-06-11)
|
19
23
|
|
20
24
|
- Fixed compatibility with Clearance
|
21
25
|
- Added support for Rails API
|
22
26
|
- Added support for custom primary key
|
23
27
|
|
24
|
-
## 0.2.1
|
28
|
+
## 0.2.1 (2016-07-07)
|
25
29
|
|
26
30
|
- Better error message
|
27
31
|
|
28
|
-
## 0.2.0
|
32
|
+
## 0.2.0 (2016-07-07)
|
29
33
|
|
30
34
|
- Started changelog
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
As an admin, there are times you want to see exactly what another user sees. Meet Pretender.
|
4
4
|
|
5
|
-
- Easily
|
5
|
+
- Easily switch between users
|
6
6
|
- Minimal code changes
|
7
7
|
- Plays nicely with Action Cable and auditing tools
|
8
8
|
|
@@ -14,12 +14,14 @@ Works with any authentication system - [Devise](https://github.com/plataformatec
|
|
14
14
|
|
15
15
|
:tangerine: Battle-tested at [Instacart](https://www.instacart.com/opensource)
|
16
16
|
|
17
|
+
[![Build Status](https://github.com/ankane/pretender/workflows/build/badge.svg?branch=master)](https://github.com/ankane/pretender/actions)
|
18
|
+
|
17
19
|
## Installation
|
18
20
|
|
19
21
|
Add this line to your application’s Gemfile:
|
20
22
|
|
21
23
|
```ruby
|
22
|
-
gem
|
24
|
+
gem "pretender"
|
23
25
|
```
|
24
26
|
|
25
27
|
And add this to your `ApplicationController`:
|
@@ -165,6 +167,10 @@ impersonate_account
|
|
165
167
|
stop_impersonating_account
|
166
168
|
```
|
167
169
|
|
170
|
+
## History
|
171
|
+
|
172
|
+
View the [changelog](https://github.com/ankane/pretender/blob/master/CHANGELOG.md)
|
173
|
+
|
168
174
|
## Contributing
|
169
175
|
|
170
176
|
Everyone is encouraged to help improve this project. Here are a few ways you can help:
|
@@ -173,3 +179,12 @@ Everyone is encouraged to help improve this project. Here are a few ways you can
|
|
173
179
|
- Fix bugs and [submit pull requests](https://github.com/ankane/pretender/pulls)
|
174
180
|
- Write, clarify, or fix documentation
|
175
181
|
- Suggest or add new features
|
182
|
+
|
183
|
+
To get started with development:
|
184
|
+
|
185
|
+
```sh
|
186
|
+
git clone https://github.com/ankane/pretender.git
|
187
|
+
cd pretender
|
188
|
+
bundle install
|
189
|
+
bundle exec rake test
|
190
|
+
```
|
data/lib/pretender/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pretender
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -16,58 +16,16 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
27
|
-
|
28
|
-
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
description:
|
70
|
-
email: andrew@chartkick.com
|
26
|
+
version: '5.2'
|
27
|
+
description:
|
28
|
+
email: andrew@ankane.org
|
71
29
|
executables: []
|
72
30
|
extensions: []
|
73
31
|
extra_rdoc_files: []
|
@@ -81,7 +39,7 @@ homepage: https://github.com/ankane/pretender
|
|
81
39
|
licenses:
|
82
40
|
- MIT
|
83
41
|
metadata: {}
|
84
|
-
post_install_message:
|
42
|
+
post_install_message:
|
85
43
|
rdoc_options: []
|
86
44
|
require_paths:
|
87
45
|
- lib
|
@@ -89,16 +47,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
47
|
requirements:
|
90
48
|
- - ">="
|
91
49
|
- !ruby/object:Gem::Version
|
92
|
-
version: '2.
|
50
|
+
version: '2.6'
|
93
51
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
52
|
requirements:
|
95
53
|
- - ">="
|
96
54
|
- !ruby/object:Gem::Version
|
97
55
|
version: '0'
|
98
56
|
requirements: []
|
99
|
-
|
100
|
-
|
101
|
-
signing_key:
|
57
|
+
rubygems_version: 3.3.3
|
58
|
+
signing_key:
|
102
59
|
specification_version: 4
|
103
60
|
summary: Log in as another user in Rails
|
104
61
|
test_files: []
|