pretender 0.5.0 → 0.6.0

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
  SHA256:
3
- metadata.gz: 624438bfbdcef436923e6f49129b0a9ea5720e40f0ddb00c01049a2550142d53
4
- data.tar.gz: 2791622f97f44d0235e4b49df110710236311f8a6ddec028c09a5635f8d7510c
3
+ metadata.gz: bcd26313b594c0e35b8f5be82b0e724aa5629b147da5a743d64ff7907a07b233
4
+ data.tar.gz: 81f30c834fb760997334f05136e997b1162a23b308da5b212eb54be06c940d58
5
5
  SHA512:
6
- metadata.gz: fadb24776c856be26bbf61b7c374b9720388aacbd334b31727d54a6ee9685e5b8a87dff97d884ac7690c7279c55276ebf703bdd22b927ed3271dd3f15ba7c3cb
7
- data.tar.gz: d347f12d73ad8618e82bdcae16101271689810ba1b90cbb83c08b7cf4b9e3513bebeb51d76645b71b2793661f0e0e8414b32379841844d9287b89d4b9cf79afc
6
+ metadata.gz: 65a034a0a0c2046d970c0b197ec04d3cfb6646462c9e556d50d023ff3e62b5373a2cb018b83f4aac67302b6dd0466490f0eba31922f832e2c27c866235f1fcfd
7
+ data.tar.gz: 2404ca71aee62086f204c2ec70658da01fd1e4b4d57cb594a6f089f21488f810fd9ec7a1acc4af84f47ee32290ed17737e2b19bf4cc21d6e415622c2481f027c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.6.0 (2025-04-03)
2
+
3
+ - Dropped support for Ruby < 3.2 and Rails < 7.1
4
+
1
5
  ## 0.5.0 (2023-07-02)
2
6
 
3
7
  - Dropped support for Ruby < 3 and Rails < 6.1
@@ -35,4 +39,20 @@
35
39
 
36
40
  ## 0.2.0 (2016-07-07)
37
41
 
38
- - Started changelog
42
+ - Fixed error when `current_user` is overridden in `ApplicationController`
43
+
44
+ ## 0.1.0 (2014-06-23)
45
+
46
+ - Removed need to call `stop_impersonating_user` before signing out
47
+
48
+ ## 0.0.3 (2013-03-09)
49
+
50
+ - Added security warning
51
+
52
+ ## 0.0.2 (2013-03-09)
53
+
54
+ - Ensure user is logged in
55
+
56
+ ## 0.0.1 (2013-03-05)
57
+
58
+ - First release
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013-2023 Andrew Kane
1
+ Copyright (c) 2013-2025 Andrew Kane
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -14,7 +14,7 @@ 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)
17
+ [![Build Status](https://github.com/ankane/pretender/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/pretender/actions)
18
18
 
19
19
  ## Installation
20
20
 
@@ -93,7 +93,7 @@ Create an index view
93
93
  ```erb
94
94
  <ul>
95
95
  <% @users.each do |user| %>
96
- <li>Sign in as <%= link_to user.name, impersonate_user_path(user), method: :post %></li>
96
+ <li>Sign in as <%= button_to user.name, impersonate_user_path(user), data: {turbo: false} %></li>
97
97
  <% end %>
98
98
  </ul>
99
99
  ```
@@ -103,7 +103,7 @@ And show when someone is signed in as another user in your application layout
103
103
  ```erb
104
104
  <% if current_user != true_user %>
105
105
  You (<%= true_user.name %>) are signed in as <%= current_user.name %>
106
- <%= link_to "Back to admin", stop_impersonating_users_path, method: :post %>
106
+ <%= button_to "Back to admin", stop_impersonating_users_path, data: {turbo: false} %>
107
107
  <% end %>
108
108
  ```
109
109
 
@@ -1,3 +1,3 @@
1
1
  module Pretender
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretender
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-07-02 00:00:00.000000000 Z
10
+ date: 2025-04-03 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: actionpack
@@ -16,15 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '6.1'
18
+ version: '7.1'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '6.1'
27
- description:
25
+ version: '7.1'
28
26
  email: andrew@ankane.org
29
27
  executables: []
30
28
  extensions: []
@@ -39,7 +37,6 @@ homepage: https://github.com/ankane/pretender
39
37
  licenses:
40
38
  - MIT
41
39
  metadata: {}
42
- post_install_message:
43
40
  rdoc_options: []
44
41
  require_paths:
45
42
  - lib
@@ -47,15 +44,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
47
44
  requirements:
48
45
  - - ">="
49
46
  - !ruby/object:Gem::Version
50
- version: '3'
47
+ version: '3.2'
51
48
  required_rubygems_version: !ruby/object:Gem::Requirement
52
49
  requirements:
53
50
  - - ">="
54
51
  - !ruby/object:Gem::Version
55
52
  version: '0'
56
53
  requirements: []
57
- rubygems_version: 3.4.10
58
- signing_key:
54
+ rubygems_version: 3.6.2
59
55
  specification_version: 4
60
56
  summary: Log in as another user in Rails
61
57
  test_files: []