solidus_auth_devise 2.5.6 → 2.5.8

Sign up to get free protection for your applications and to get access to all the features.
data/OLD_CHANGELOG.md ADDED
@@ -0,0 +1,429 @@
1
+ # Changelog
2
+
3
+ ## [v2.5.7](https://github.com/solidusio/solidus_auth_devise/tree/v2.5.7) (2022-10-31)
4
+
5
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v2.5.6...v2.5.7)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Fix the standard generator alias and remove interactivity from seeds [\#233](https://github.com/solidusio/solidus_auth_devise/pull/233) ([elia](https://github.com/elia))
10
+
11
+ ## [v2.5.6](https://github.com/solidusio/solidus_auth_devise/tree/v2.5.6) (2022-09-30)
12
+
13
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v2.5.5...v2.5.6)
14
+
15
+ **Merged pull requests:**
16
+
17
+ - Revert "Utilize Devise location helpers for redirecting" [\#232](https://github.com/solidusio/solidus_auth_devise/pull/232) ([elia](https://github.com/elia))
18
+ - Run the CI on all supported ruby versions [\#229](https://github.com/solidusio/solidus_auth_devise/pull/229) ([elia](https://github.com/elia))
19
+ - Utilize Devise location helpers for redirecting [\#228](https://github.com/solidusio/solidus_auth_devise/pull/228) ([cpfergus1](https://github.com/cpfergus1))
20
+ - Update to use forked solidus\_frontend when needed [\#227](https://github.com/solidusio/solidus_auth_devise/pull/227) ([waiting-for-dev](https://github.com/waiting-for-dev))
21
+ - Fix keyword usage for Ruby 3.x support on specs [\#226](https://github.com/solidusio/solidus_auth_devise/pull/226) ([jtapia](https://github.com/jtapia))
22
+ - Fix locale inconsistence and remove redundant template [\#224](https://github.com/solidusio/solidus_auth_devise/pull/224) ([bitberry-dev](https://github.com/bitberry-dev))
23
+ - Specs and setup process housekeeping [\#222](https://github.com/solidusio/solidus_auth_devise/pull/222) ([elia](https://github.com/elia))
24
+ - Stop using try\_spree\_current\_user [\#221](https://github.com/solidusio/solidus_auth_devise/pull/221) ([elia](https://github.com/elia))
25
+ - Update to the latest solidus\_dev\_support defaults [\#220](https://github.com/solidusio/solidus_auth_devise/pull/220) ([elia](https://github.com/elia))
26
+ - Fix build [\#219](https://github.com/solidusio/solidus_auth_devise/pull/219) ([gsmendoza](https://github.com/gsmendoza))
27
+
28
+ ## [v2.5.5](https://github.com/solidusio/solidus_auth_devise/tree/v2.5.5) (2022-09-19)
29
+
30
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v2.5.4...v2.5.5)
31
+
32
+ ## [v2.5.4](https://github.com/solidusio/solidus_auth_devise/tree/v2.5.4) (2021-11-17)
33
+
34
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v2.5.3...v2.5.4)
35
+
36
+ **Closed issues:**
37
+
38
+ - This line doesn't do anything [\#214](https://github.com/solidusio/solidus_auth_devise/issues/214)
39
+
40
+ **Merged pull requests:**
41
+
42
+ - Bump version and update changelog [\#217](https://github.com/solidusio/solidus_auth_devise/pull/217) ([waiting-for-dev](https://github.com/waiting-for-dev))
43
+ - Remove line that doesn't do anything [\#215](https://github.com/solidusio/solidus_auth_devise/pull/215) ([jarednorman](https://github.com/jarednorman))
44
+ - Allow using auth\_devise with discard [\#209](https://github.com/solidusio/solidus_auth_devise/pull/209) ([kennyadsl](https://github.com/kennyadsl))
45
+
46
+ ## [v2.5.3](https://github.com/solidusio/solidus_auth_devise/tree/v2.5.3) (2021-01-29)
47
+
48
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v2.5.2...v2.5.3)
49
+
50
+ **Fixed bugs:**
51
+
52
+ - Infinte redirection on password change [\#202](https://github.com/solidusio/solidus_auth_devise/issues/202)
53
+
54
+ **Merged pull requests:**
55
+
56
+ - Explicitely require paranoia when needed [\#207](https://github.com/solidusio/solidus_auth_devise/pull/207) ([kennyadsl](https://github.com/kennyadsl))
57
+ - Allow Solidus 3 version [\#205](https://github.com/solidusio/solidus_auth_devise/pull/205) ([peterberkenbosch](https://github.com/peterberkenbosch))
58
+ - Fixes \#202 : infinite redirection bug on password change [\#204](https://github.com/solidusio/solidus_auth_devise/pull/204) ([nomad-mando](https://github.com/nomad-mando))
59
+ - Relax Ruby required version to support Ruby 3.0+ [\#203](https://github.com/solidusio/solidus_auth_devise/pull/203) ([filippoliverani](https://github.com/filippoliverani))
60
+
61
+ ## [v2.5.2](https://github.com/solidusio/solidus_auth_devise/tree/v2.5.2) (2020-11-11)
62
+
63
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v2.5.1...v2.5.2)
64
+
65
+ **Implemented enhancements:**
66
+
67
+ - Replace `I18n.t` with `t` in views [\#200](https://github.com/solidusio/solidus_auth_devise/pull/200) ([spaghetticode](https://github.com/spaghetticode))
68
+
69
+ **Merged pull requests:**
70
+
71
+ - Update migrations to support Rails 5.1 [\#201](https://github.com/solidusio/solidus_auth_devise/pull/201) ([brchristian](https://github.com/brchristian))
72
+ - Point to Solidus wiki for gem release [\#199](https://github.com/solidusio/solidus_auth_devise/pull/199) ([spaghetticode](https://github.com/spaghetticode))
73
+
74
+ ## [v2.5.1](https://github.com/solidusio/solidus_auth_devise/tree/v2.5.1) (2020-10-23)
75
+
76
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v2.5.0...v2.5.1)
77
+
78
+ **Closed issues:**
79
+
80
+ - Asset compilation crashes on 2.5.0 [\#196](https://github.com/solidusio/solidus_auth_devise/issues/196)
81
+
82
+ **Merged pull requests:**
83
+
84
+ - Use proper name for add\_migrations [\#198](https://github.com/solidusio/solidus_auth_devise/pull/198) ([peterberkenbosch](https://github.com/peterberkenbosch))
85
+ - Move AuthConfiguration out of autoloading paths [\#197](https://github.com/solidusio/solidus_auth_devise/pull/197) ([elia](https://github.com/elia))
86
+
87
+ ## [v2.5.0](https://github.com/solidusio/solidus_auth_devise/tree/v2.5.0) (2020-10-07)
88
+
89
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v2.4.0...v2.5.0)
90
+
91
+ **Implemented enhancements:**
92
+
93
+ - Remove admin orders controller specs [\#195](https://github.com/solidusio/solidus_auth_devise/pull/195) ([kennyadsl](https://github.com/kennyadsl))
94
+ - Redirect back if not authorized [\#192](https://github.com/solidusio/solidus_auth_devise/pull/192) ([kennyadsl](https://github.com/kennyadsl))
95
+
96
+ **Closed issues:**
97
+
98
+ - Zeitwerk::NameError [\#193](https://github.com/solidusio/solidus_auth_devise/issues/193)
99
+ - Rails 6 and Solidus AuthDevise issues? [\#189](https://github.com/solidusio/solidus_auth_devise/issues/189)
100
+ - Cant locate devise.rb file to locate secret key. [\#188](https://github.com/solidusio/solidus_auth_devise/issues/188)
101
+ - RuntimeError: Can't modify frozen hash [\#184](https://github.com/solidusio/solidus_auth_devise/issues/184)
102
+ - Bug: NameError [\#174](https://github.com/solidusio/solidus_auth_devise/issues/174)
103
+ - `devise.user_registrations` key is not the same in the view [\#119](https://github.com/solidusio/solidus_auth_devise/issues/119)
104
+ - The update action of the password controller from devise makes my app go into a loop. [\#78](https://github.com/solidusio/solidus_auth_devise/issues/78)
105
+
106
+ **Merged pull requests:**
107
+
108
+ - Add option to skip migrations [\#194](https://github.com/solidusio/solidus_auth_devise/pull/194) ([seand7565](https://github.com/seand7565))
109
+ - Bump solidus\_support to latest 0.5 release [\#191](https://github.com/solidusio/solidus_auth_devise/pull/191) ([peterberkenbosch](https://github.com/peterberkenbosch))
110
+ - Fix tests for Devise's :confirmable module [\#190](https://github.com/solidusio/solidus_auth_devise/pull/190) ([aldesantis](https://github.com/aldesantis))
111
+ - Fix chrome warnings [\#187](https://github.com/solidusio/solidus_auth_devise/pull/187) ([coorasse](https://github.com/coorasse))
112
+ - Fill address names combined when needed [\#186](https://github.com/solidusio/solidus_auth_devise/pull/186) ([kennyadsl](https://github.com/kennyadsl))
113
+ - Allow to really\_destroy! users [\#185](https://github.com/solidusio/solidus_auth_devise/pull/185) ([skukx](https://github.com/skukx))
114
+ - Add paranoia dependency explicitly [\#183](https://github.com/solidusio/solidus_auth_devise/pull/183) ([cedum](https://github.com/cedum))
115
+ - Adopt conditional code loading from solidus\_support [\#182](https://github.com/solidusio/solidus_auth_devise/pull/182) ([aldesantis](https://github.com/aldesantis))
116
+ - Upgrade infrastructure with solidus\_dev\_support [\#181](https://github.com/solidusio/solidus_auth_devise/pull/181) ([aldesantis](https://github.com/aldesantis))
117
+ - Add support for Zeitwerk [\#180](https://github.com/solidusio/solidus_auth_devise/pull/180) ([kennyadsl](https://github.com/kennyadsl))
118
+ - Fix feature\_helper require [\#179](https://github.com/solidusio/solidus_auth_devise/pull/179) ([omnistegan](https://github.com/omnistegan))
119
+ - Update postgresql variable name to reflect CircleCI config [\#177](https://github.com/solidusio/solidus_auth_devise/pull/177) ([kennyadsl](https://github.com/kennyadsl))
120
+
121
+ ## [v2.4.0](https://github.com/solidusio/solidus_auth_devise/tree/v2.4.0) (2019-11-18)
122
+
123
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v2.3.0...v2.4.0)
124
+
125
+ **Implemented enhancements:**
126
+
127
+ - Add an automatic CHANGELOG generator [\#154](https://github.com/solidusio/solidus_auth_devise/issues/154)
128
+
129
+ **Closed issues:**
130
+
131
+ - Rails 6, Production only issue, works fine in dev, tripped up assets:precompile build process on Heroku, compiled fine locally. [\#175](https://github.com/solidusio/solidus_auth_devise/issues/175)
132
+ - Spree.user\_class not using my specific class [\#169](https://github.com/solidusio/solidus_auth_devise/issues/169)
133
+ - Missing `config.secret_key_base` from default devise.rb? [\#33](https://github.com/solidusio/solidus_auth_devise/issues/33)
134
+
135
+ **Merged pull requests:**
136
+
137
+ - Fixes for Zeitwerk [\#176](https://github.com/solidusio/solidus_auth_devise/pull/176) ([kennyadsl](https://github.com/kennyadsl))
138
+ - Update it translations [\#172](https://github.com/solidusio/solidus_auth_devise/pull/172) ([delphaber](https://github.com/delphaber))
139
+ - Relax sqlite3 dependency for Rails 6 support [\#170](https://github.com/solidusio/solidus_auth_devise/pull/170) ([aldesantis](https://github.com/aldesantis))
140
+ - Allow admins to reset an user's password through the admin panel [\#146](https://github.com/solidusio/solidus_auth_devise/pull/146) ([aitbw](https://github.com/aitbw))
141
+
142
+ ## [v2.3.0](https://github.com/solidusio/solidus_auth_devise/tree/v2.3.0) (2019-08-19)
143
+
144
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v2.2.0...v2.3.0)
145
+
146
+ **Closed issues:**
147
+
148
+ - Any plans to release to RubyGems? [\#147](https://github.com/solidusio/solidus_auth_devise/issues/147)
149
+
150
+ **Merged pull requests:**
151
+
152
+ - Add GitHub changelog generator [\#168](https://github.com/solidusio/solidus_auth_devise/pull/168) ([kennyadsl](https://github.com/kennyadsl))
153
+ - Fix CI issues [\#167](https://github.com/solidusio/solidus_auth_devise/pull/167) ([kennyadsl](https://github.com/kennyadsl))
154
+ - Stub preferences in specs instead of resetting [\#166](https://github.com/solidusio/solidus_auth_devise/pull/166) ([kennyadsl](https://github.com/kennyadsl))
155
+ - Add appropriate classes to admin login button [\#164](https://github.com/solidusio/solidus_auth_devise/pull/164) ([jacobeubanks](https://github.com/jacobeubanks))
156
+ - Extension maintenance [\#163](https://github.com/solidusio/solidus_auth_devise/pull/163) ([kennyadsl](https://github.com/kennyadsl))
157
+ - Fix minor grammar concerns in console messages [\#162](https://github.com/solidusio/solidus_auth_devise/pull/162) ([jacobherrington](https://github.com/jacobherrington))
158
+ - Logout with DELETE verb by default [\#161](https://github.com/solidusio/solidus_auth_devise/pull/161) ([kennyadsl](https://github.com/kennyadsl))
159
+ - Use secret\_key\_base for Rails 6 compatibility [\#160](https://github.com/solidusio/solidus_auth_devise/pull/160) ([aldesantis](https://github.com/aldesantis))
160
+ - Improve decorators [\#159](https://github.com/solidusio/solidus_auth_devise/pull/159) ([jacobherrington](https://github.com/jacobherrington))
161
+ - Add rubocop as a development dependency [\#158](https://github.com/solidusio/solidus_auth_devise/pull/158) ([jacobherrington](https://github.com/jacobherrington))
162
+ - Update confusing i18n translation [\#157](https://github.com/solidusio/solidus_auth_devise/pull/157) ([jacobherrington](https://github.com/jacobherrington))
163
+ - Remove flash errors from password recovery [\#156](https://github.com/solidusio/solidus_auth_devise/pull/156) ([jacobherrington](https://github.com/jacobherrington))
164
+ - Remove flash errors from admin password recovery [\#155](https://github.com/solidusio/solidus_auth_devise/pull/155) ([jacobherrington](https://github.com/jacobherrington))
165
+ - Introduce Rubocop for linting [\#148](https://github.com/solidusio/solidus_auth_devise/pull/148) ([aitbw](https://github.com/aitbw))
166
+
167
+ ## [v2.2.0](https://github.com/solidusio/solidus_auth_devise/tree/v2.2.0) (2019-06-13)
168
+
169
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v2.1.0...v2.2.0)
170
+
171
+ **Closed issues:**
172
+
173
+ - Any plan for replacing paranoia with discard? [\#129](https://github.com/solidusio/solidus_auth_devise/issues/129)
174
+ - rake task solidus\_auth:install:migrations [\#121](https://github.com/solidusio/solidus_auth_devise/issues/121)
175
+ - Issue redirecting to Spree routes [\#100](https://github.com/solidusio/solidus_auth_devise/issues/100)
176
+ - Requiring gem, on API only projects, throws LoadError \(sass/rails\) [\#88](https://github.com/solidusio/solidus_auth_devise/issues/88)
177
+ - db index on reset\_password\_token missing [\#83](https://github.com/solidusio/solidus_auth_devise/issues/83)
178
+ - Let's use more Devise defaults for routing [\#55](https://github.com/solidusio/solidus_auth_devise/issues/55)
179
+ - Fix confirmation\_spec [\#24](https://github.com/solidusio/solidus_auth_devise/issues/24)
180
+
181
+ **Merged pull requests:**
182
+
183
+ - Add v2.2.0 CHANGELOG entries [\#153](https://github.com/solidusio/solidus_auth_devise/pull/153) ([kennyadsl](https://github.com/kennyadsl))
184
+ - Add gem-release support [\#152](https://github.com/solidusio/solidus_auth_devise/pull/152) ([kennyadsl](https://github.com/kennyadsl))
185
+ - Add missing pessimistic versioning [\#149](https://github.com/solidusio/solidus_auth_devise/pull/149) ([aitbw](https://github.com/aitbw))
186
+ - Remove CircleCI configuration file [\#145](https://github.com/solidusio/solidus_auth_devise/pull/145) ([kennyadsl](https://github.com/kennyadsl))
187
+ - Fix migration `20101026184950` `down` method [\#144](https://github.com/solidusio/solidus_auth_devise/pull/144) ([spaghetticode](https://github.com/spaghetticode))
188
+ - Run specs on CircleCi with shared configuration [\#143](https://github.com/solidusio/solidus_auth_devise/pull/143) ([kennyadsl](https://github.com/kennyadsl))
189
+ - Lock SQLite3 to version 1.3 [\#142](https://github.com/solidusio/solidus_auth_devise/pull/142) ([aitbw](https://github.com/aitbw))
190
+ - Add Solidus v2.8 to Travis config [\#141](https://github.com/solidusio/solidus_auth_devise/pull/141) ([aitbw](https://github.com/aitbw))
191
+ - Add DB index to `reset_password_token` field [\#140](https://github.com/solidusio/solidus_auth_devise/pull/140) ([spaghetticode](https://github.com/spaghetticode))
192
+ - Remove warnings [\#139](https://github.com/solidusio/solidus_auth_devise/pull/139) ([jtapia](https://github.com/jtapia))
193
+ - Add missing translation [\#137](https://github.com/solidusio/solidus_auth_devise/pull/137) ([spaghetticode](https://github.com/spaghetticode))
194
+ - Allow Spree::Admin::UserPasswordsController to be accessed from admin… [\#136](https://github.com/solidusio/solidus_auth_devise/pull/136) ([acreilly](https://github.com/acreilly))
195
+ - Fix typo of french locale [\#135](https://github.com/solidusio/solidus_auth_devise/pull/135) ([imfaruk](https://github.com/imfaruk))
196
+ - Remove Solidus v2.2 support from Travis config [\#134](https://github.com/solidusio/solidus_auth_devise/pull/134) ([aitbw](https://github.com/aitbw))
197
+ - Replace Spree.t with I18n.t [\#132](https://github.com/solidusio/solidus_auth_devise/pull/132) ([aitbw](https://github.com/aitbw))
198
+ - Fix to not reuse spree\_current\_user as `@user` [\#131](https://github.com/solidusio/solidus_auth_devise/pull/131) ([yono](https://github.com/yono))
199
+ - Fix factory girl dependency for Solidus \< 2.5 [\#130](https://github.com/solidusio/solidus_auth_devise/pull/130) ([tvdeyen](https://github.com/tvdeyen))
200
+ - Add Solidus v2.7 to .travis.yml [\#127](https://github.com/solidusio/solidus_auth_devise/pull/127) ([jacobherrington](https://github.com/jacobherrington))
201
+ - Fix spree routes [\#125](https://github.com/solidusio/solidus_auth_devise/pull/125) ([jtapia](https://github.com/jtapia))
202
+ - Remove unnecessary decorator [\#122](https://github.com/solidusio/solidus_auth_devise/pull/122) ([jhawthorn](https://github.com/jhawthorn))
203
+ - Disable backend footer profile edit link if role cannot edit users [\#120](https://github.com/solidusio/solidus_auth_devise/pull/120) ([cringegnere](https://github.com/cringegnere))
204
+
205
+ ## [v2.1.0](https://github.com/solidusio/solidus_auth_devise/tree/v2.1.0) (2018-01-22)
206
+
207
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v2.0.0...v2.1.0)
208
+
209
+ **Closed issues:**
210
+
211
+ - Error undefined method alias\_method\_chain [\#112](https://github.com/solidusio/solidus_auth_devise/issues/112)
212
+
213
+ **Merged pull requests:**
214
+
215
+ - Remove unused helper include [\#118](https://github.com/solidusio/solidus_auth_devise/pull/118) ([jhawthorn](https://github.com/jhawthorn))
216
+ - update spec according new solidus behaviour for 404 [\#115](https://github.com/solidusio/solidus_auth_devise/pull/115) ([ccarruitero](https://github.com/ccarruitero))
217
+ - Don't require deface for solidus 2.5+ [\#114](https://github.com/solidusio/solidus_auth_devise/pull/114) ([jhawthorn](https://github.com/jhawthorn))
218
+ - Test that we are acting as paranoid not it's behaviour [\#113](https://github.com/solidusio/solidus_auth_devise/pull/113) ([tvdeyen](https://github.com/tvdeyen))
219
+ - Reset api key when assigning password [\#99](https://github.com/solidusio/solidus_auth_devise/pull/99) ([jhawthorn](https://github.com/jhawthorn))
220
+ - RFC: Support Backend-Only Stores [\#96](https://github.com/solidusio/solidus_auth_devise/pull/96) ([stewart](https://github.com/stewart))
221
+
222
+ ## [v2.0.0](https://github.com/solidusio/solidus_auth_devise/tree/v2.0.0) (2017-09-20)
223
+
224
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v1.6.4...v2.0.0)
225
+
226
+ **Merged pull requests:**
227
+
228
+ - Drop Solidus v1.0, v1.1 support [\#111](https://github.com/solidusio/solidus_auth_devise/pull/111) ([swcraig](https://github.com/swcraig))
229
+ - Stop raising an exception when callback in UsersController is undefined [\#110](https://github.com/solidusio/solidus_auth_devise/pull/110) ([swcraig](https://github.com/swcraig))
230
+ - Add ffaker dependency to gemspec [\#109](https://github.com/solidusio/solidus_auth_devise/pull/109) ([swcraig](https://github.com/swcraig))
231
+ - Remove has\_many orders [\#107](https://github.com/solidusio/solidus_auth_devise/pull/107) ([jhawthorn](https://github.com/jhawthorn))
232
+ - Use base spec\_helper from solidus\_support [\#106](https://github.com/solidusio/solidus_auth_devise/pull/106) ([jhawthorn](https://github.com/jhawthorn))
233
+ - Extract \*\_available? to solidus\_support [\#105](https://github.com/solidusio/solidus_auth_devise/pull/105) ([jhawthorn](https://github.com/jhawthorn))
234
+ - Remove references to dash [\#104](https://github.com/solidusio/solidus_auth_devise/pull/104) ([jhawthorn](https://github.com/jhawthorn))
235
+ - match logout route to devise configuration [\#103](https://github.com/solidusio/solidus_auth_devise/pull/103) ([BenMorganIO](https://github.com/BenMorganIO))
236
+
237
+ ## [v1.6.4](https://github.com/solidusio/solidus_auth_devise/tree/v1.6.4) (2017-07-24)
238
+
239
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v1.6.3...v1.6.4)
240
+
241
+ **Closed issues:**
242
+
243
+ - Adding omniauthable to to Spree::User [\#98](https://github.com/solidusio/solidus_auth_devise/issues/98)
244
+ - Use of `helper_method` should be wrapped in `respond_to?` check [\#90](https://github.com/solidusio/solidus_auth_devise/issues/90)
245
+ - Deface Override requires solidus\_frontend [\#85](https://github.com/solidusio/solidus_auth_devise/issues/85)
246
+
247
+ **Merged pull requests:**
248
+
249
+ - Seed improvements [\#102](https://github.com/solidusio/solidus_auth_devise/pull/102) ([cbrunsdon](https://github.com/cbrunsdon))
250
+ - Only apply frontend override if frontend present [\#95](https://github.com/solidusio/solidus_auth_devise/pull/95) ([stewart](https://github.com/stewart))
251
+ - Update outdated development dependencies [\#94](https://github.com/solidusio/solidus_auth_devise/pull/94) ([stewart](https://github.com/stewart))
252
+ - Remove use of deprecated `bypass` opt for sign\_in [\#93](https://github.com/solidusio/solidus_auth_devise/pull/93) ([stewart](https://github.com/stewart))
253
+ - Wrap use of `helper_method` in `respond_to?` [\#92](https://github.com/solidusio/solidus_auth_devise/pull/92) ([stewart](https://github.com/stewart))
254
+ - Remove unused line [\#75](https://github.com/solidusio/solidus_auth_devise/pull/75) ([Murph33](https://github.com/Murph33))
255
+
256
+ ## [v1.6.3](https://github.com/solidusio/solidus_auth_devise/tree/v1.6.3) (2017-05-09)
257
+
258
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v1.6.2...v1.6.3)
259
+
260
+ **Merged pull requests:**
261
+
262
+ - Remove dependency on json, multi\_json [\#91](https://github.com/solidusio/solidus_auth_devise/pull/91) ([jhawthorn](https://github.com/jhawthorn))
263
+ - Remove Unnecessary `require` statements. [\#89](https://github.com/solidusio/solidus_auth_devise/pull/89) ([stewart](https://github.com/stewart))
264
+ - Do not require core email validator [\#87](https://github.com/solidusio/solidus_auth_devise/pull/87) ([tvdeyen](https://github.com/tvdeyen))
265
+ - Fix warnings on Rails 5.0, support Rails 5.1 [\#86](https://github.com/solidusio/solidus_auth_devise/pull/86) ([jhawthorn](https://github.com/jhawthorn))
266
+ - Change deface dependency from `~> 1.0.0` to `~> 1.0` [\#81](https://github.com/solidusio/solidus_auth_devise/pull/81) ([jordan-brough](https://github.com/jordan-brough))
267
+ - Switch to rails 5 spec keyword request syntax [\#80](https://github.com/solidusio/solidus_auth_devise/pull/80) ([jhawthorn](https://github.com/jhawthorn))
268
+ - Add missing translations for already\_authenticated [\#79](https://github.com/solidusio/solidus_auth_devise/pull/79) ([vladstoick](https://github.com/vladstoick))
269
+
270
+ ## [v1.6.2](https://github.com/solidusio/solidus_auth_devise/tree/v1.6.2) (2016-11-18)
271
+
272
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v1.6.1...v1.6.2)
273
+
274
+ **Fixed bugs:**
275
+
276
+ - Don't save addresses inside update\_registration [\#76](https://github.com/solidusio/solidus_auth_devise/pull/76) ([jhawthorn](https://github.com/jhawthorn))
277
+
278
+ **Closed issues:**
279
+
280
+ - Install migration task not working [\#74](https://github.com/solidusio/solidus_auth_devise/issues/74)
281
+
282
+ **Merged pull requests:**
283
+
284
+ - Fix spec order dependencies and run in a random order [\#77](https://github.com/solidusio/solidus_auth_devise/pull/77) ([jhawthorn](https://github.com/jhawthorn))
285
+
286
+ ## [v1.6.1](https://github.com/solidusio/solidus_auth_devise/tree/v1.6.1) (2016-08-24)
287
+
288
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v1.6.0...v1.6.1)
289
+
290
+ **Merged pull requests:**
291
+
292
+ - Replace before\_filter with before\_action [\#73](https://github.com/solidusio/solidus_auth_devise/pull/73) ([jhawthorn](https://github.com/jhawthorn))
293
+
294
+ ## [v1.6.0](https://github.com/solidusio/solidus_auth_devise/tree/v1.6.0) (2016-08-23)
295
+
296
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v1.5.0...v1.6.0)
297
+
298
+ **Merged pull requests:**
299
+
300
+ - Solidus 2.0 and Rails 5 [\#72](https://github.com/solidusio/solidus_auth_devise/pull/72) ([jhawthorn](https://github.com/jhawthorn))
301
+ - Loading of routes can be disabled through config [\#71](https://github.com/solidusio/solidus_auth_devise/pull/71) ([gmacdougall](https://github.com/gmacdougall))
302
+ - Skip admin override for Solidus \>= 1.0 [\#69](https://github.com/solidusio/solidus_auth_devise/pull/69) ([jhawthorn](https://github.com/jhawthorn))
303
+ - Replace spree\_{get,post,put,delete} with normal methods [\#68](https://github.com/solidusio/solidus_auth_devise/pull/68) ([jhawthorn](https://github.com/jhawthorn))
304
+ - Remove load-time manipulation of the secret\_key [\#67](https://github.com/solidusio/solidus_auth_devise/pull/67) ([jhawthorn](https://github.com/jhawthorn))
305
+
306
+ ## [v1.5.0](https://github.com/solidusio/solidus_auth_devise/tree/v1.5.0) (2016-07-18)
307
+
308
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v1.4.0...v1.5.0)
309
+
310
+ **Closed issues:**
311
+
312
+ - AuthenticationHelpers reference routes that may not exist [\#59](https://github.com/solidusio/solidus_auth_devise/issues/59)
313
+ - No CHANGELOG for this repo [\#54](https://github.com/solidusio/solidus_auth_devise/issues/54)
314
+ - Latest release on GitHub is out of date [\#53](https://github.com/solidusio/solidus_auth_devise/issues/53)
315
+
316
+ **Merged pull requests:**
317
+
318
+ - Flesh out installation instructions [\#66](https://github.com/solidusio/solidus_auth_devise/pull/66) ([stewart](https://github.com/stewart))
319
+ - Correct Deprecation Errors in CI [\#65](https://github.com/solidusio/solidus_auth_devise/pull/65) ([stewart](https://github.com/stewart))
320
+ - Add Chinese translations in zh-CN.yml [\#64](https://github.com/solidusio/solidus_auth_devise/pull/64) ([chrisradford](https://github.com/chrisradford))
321
+ - Loosen devise dependency to ~\> 4.1 [\#63](https://github.com/solidusio/solidus_auth_devise/pull/63) ([jhawthorn](https://github.com/jhawthorn))
322
+ - Use routes.draw [\#62](https://github.com/solidusio/solidus_auth_devise/pull/62) ([jhawthorn](https://github.com/jhawthorn))
323
+ - Add guard for frontend-based AuthenticationHelpers [\#60](https://github.com/solidusio/solidus_auth_devise/pull/60) ([stewart](https://github.com/stewart))
324
+ - Misc: Update Dependency Versions [\#58](https://github.com/solidusio/solidus_auth_devise/pull/58) ([stewart](https://github.com/stewart))
325
+ - Backend views should only reference backend routes [\#57](https://github.com/solidusio/solidus_auth_devise/pull/57) ([bbuchalter](https://github.com/bbuchalter))
326
+ - Refactor Spree::Auth::Engine [\#56](https://github.com/solidusio/solidus_auth_devise/pull/56) ([stewart](https://github.com/stewart))
327
+ - Backend views should only reference backend routes [\#52](https://github.com/solidusio/solidus_auth_devise/pull/52) ([bbuchalter](https://github.com/bbuchalter))
328
+ - Call set\_current\_order explicitly where we need it [\#51](https://github.com/solidusio/solidus_auth_devise/pull/51) ([Murph33](https://github.com/Murph33))
329
+ - Misc: Syntax Cleanup [\#50](https://github.com/solidusio/solidus_auth_devise/pull/50) ([stewart](https://github.com/stewart))
330
+
331
+ ## [v1.4.0](https://github.com/solidusio/solidus_auth_devise/tree/v1.4.0) (2016-05-16)
332
+
333
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v1.3.0...v1.4.0)
334
+
335
+ **Merged pull requests:**
336
+
337
+ - Conditional routing [\#49](https://github.com/solidusio/solidus_auth_devise/pull/49) ([bbuchalter](https://github.com/bbuchalter))
338
+ - check\_authorization first in CheckoutController [\#47](https://github.com/solidusio/solidus_auth_devise/pull/47) ([bbuchalter](https://github.com/bbuchalter))
339
+ - Revert "ChcktController checks auth and registration first" [\#46](https://github.com/solidusio/solidus_auth_devise/pull/46) ([bbuchalter](https://github.com/bbuchalter))
340
+ - ChcktController checks auth and registration first [\#44](https://github.com/solidusio/solidus_auth_devise/pull/44) ([bbuchalter](https://github.com/bbuchalter))
341
+ - Remove obsolete regression test [\#43](https://github.com/solidusio/solidus_auth_devise/pull/43) ([jhawthorn](https://github.com/jhawthorn))
342
+ - Improve order association [\#42](https://github.com/solidusio/solidus_auth_devise/pull/42) ([mvz](https://github.com/mvz))
343
+ - Re-add Solidus 1.0 compatability [\#40](https://github.com/solidusio/solidus_auth_devise/pull/40) ([jhawthorn](https://github.com/jhawthorn))
344
+ - Update travis.yml [\#39](https://github.com/solidusio/solidus_auth_devise/pull/39) ([jhawthorn](https://github.com/jhawthorn))
345
+ - Honor guest checkout config [\#36](https://github.com/solidusio/solidus_auth_devise/pull/36) ([bbuchalter](https://github.com/bbuchalter))
346
+ - Update README testing section [\#35](https://github.com/solidusio/solidus_auth_devise/pull/35) ([bbuchalter](https://github.com/bbuchalter))
347
+ - Fix specs now that order's store is required [\#34](https://github.com/solidusio/solidus_auth_devise/pull/34) ([jhawthorn](https://github.com/jhawthorn))
348
+ - Moved the encryptor setting for the User model into the devise config [\#32](https://github.com/solidusio/solidus_auth_devise/pull/32) ([lukepfarrar](https://github.com/lukepfarrar))
349
+
350
+ ## [v1.3.0](https://github.com/solidusio/solidus_auth_devise/tree/v1.3.0) (2016-01-12)
351
+
352
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v1.2.3...v1.3.0)
353
+
354
+ **Merged pull requests:**
355
+
356
+ - Add Capybara screenshot [\#30](https://github.com/solidusio/solidus_auth_devise/pull/30) ([jhawthorn](https://github.com/jhawthorn))
357
+ - Missing translations for German locale [\#29](https://github.com/solidusio/solidus_auth_devise/pull/29) ([pedropereira](https://github.com/pedropereira))
358
+ - Admin navigation sidebar [\#28](https://github.com/solidusio/solidus_auth_devise/pull/28) ([Sinetheta](https://github.com/Sinetheta))
359
+
360
+ ## [v1.2.3](https://github.com/solidusio/solidus_auth_devise/tree/v1.2.3) (2015-11-30)
361
+
362
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v1.2.2...v1.2.3)
363
+
364
+ **Closed issues:**
365
+
366
+ - How to access current\_user? [\#26](https://github.com/solidusio/solidus_auth_devise/issues/26)
367
+
368
+ **Merged pull requests:**
369
+
370
+ - Add an explicit require to deface [\#27](https://github.com/solidusio/solidus_auth_devise/pull/27) ([jhawthorn](https://github.com/jhawthorn))
371
+ - Check if front/backend are available before decorating the controllers [\#25](https://github.com/solidusio/solidus_auth_devise/pull/25) ([nwittstruck](https://github.com/nwittstruck))
372
+ - Rename spree@example.com to admin@example.com [\#23](https://github.com/solidusio/solidus_auth_devise/pull/23) ([jhawthorn](https://github.com/jhawthorn))
373
+ - Fix registration errors [\#22](https://github.com/solidusio/solidus_auth_devise/pull/22) ([jhawthorn](https://github.com/jhawthorn))
374
+
375
+ ## [v1.2.2](https://github.com/solidusio/solidus_auth_devise/tree/v1.2.2) (2015-10-01)
376
+
377
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v1.2.0...v1.2.2)
378
+
379
+ **Closed issues:**
380
+
381
+ - Should Spree::User inherit from Spree::Base [\#18](https://github.com/solidusio/solidus_auth_devise/issues/18)
382
+
383
+ **Merged pull requests:**
384
+
385
+ - Automatically regenerate a user's spree\_api\_key upon password change. [\#21](https://github.com/solidusio/solidus_auth_devise/pull/21) ([athal7](https://github.com/athal7))
386
+ - Inherit from Spree::Base [\#20](https://github.com/solidusio/solidus_auth_devise/pull/20) ([magnusvk](https://github.com/magnusvk))
387
+ - Explicitely add deface to gemfile [\#19](https://github.com/solidusio/solidus_auth_devise/pull/19) ([cbrunsdon](https://github.com/cbrunsdon))
388
+ - Version 1.2.1 [\#17](https://github.com/solidusio/solidus_auth_devise/pull/17) ([jordan-brough](https://github.com/jordan-brough))
389
+ - Remove some redundant includes [\#16](https://github.com/solidusio/solidus_auth_devise/pull/16) ([jordan-brough](https://github.com/jordan-brough))
390
+ - Remove brittle spec [\#15](https://github.com/solidusio/solidus_auth_devise/pull/15) ([adammathys](https://github.com/adammathys))
391
+ - Fix some specs [\#14](https://github.com/solidusio/solidus_auth_devise/pull/14) ([adammathys](https://github.com/adammathys))
392
+
393
+ ## [v1.2.0](https://github.com/solidusio/solidus_auth_devise/tree/v1.2.0) (2015-07-22)
394
+
395
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v1.1.0...v1.2.0)
396
+
397
+ **Merged pull requests:**
398
+
399
+ - Fix spec failures after Solidus changes [\#13](https://github.com/solidusio/solidus_auth_devise/pull/13) ([Senjai](https://github.com/Senjai))
400
+ - Use new access denied extension point. [\#12](https://github.com/solidusio/solidus_auth_devise/pull/12) ([adammathys](https://github.com/adammathys))
401
+ - Skip adding devise.rb if it already exists. [\#11](https://github.com/solidusio/solidus_auth_devise/pull/11) ([adammathys](https://github.com/adammathys))
402
+ - Fix checkout spec [\#10](https://github.com/solidusio/solidus_auth_devise/pull/10) ([jhawthorn](https://github.com/jhawthorn))
403
+ - Minor tweaks and deprecation warning fixes. [\#9](https://github.com/solidusio/solidus_auth_devise/pull/9) ([adammathys](https://github.com/adammathys))
404
+
405
+ ## [v1.1.0](https://github.com/solidusio/solidus_auth_devise/tree/v1.1.0) (2015-06-03)
406
+
407
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/v1.0.0...v1.1.0)
408
+
409
+ **Merged pull requests:**
410
+
411
+ - Version 1.1.0 [\#8](https://github.com/solidusio/solidus_auth_devise/pull/8) ([jhawthorn](https://github.com/jhawthorn))
412
+ - Fixes for latest solidus + add CircleCI [\#7](https://github.com/solidusio/solidus_auth_devise/pull/7) ([jhawthorn](https://github.com/jhawthorn))
413
+ - Use git+ssh for solidus gem [\#6](https://github.com/solidusio/solidus_auth_devise/pull/6) ([jhawthorn](https://github.com/jhawthorn))
414
+ - Remove dead code. [\#5](https://github.com/solidusio/solidus_auth_devise/pull/5) ([adammathys](https://github.com/adammathys))
415
+ - Clean-up frontend registrations and sessions controllers [\#4](https://github.com/solidusio/solidus_auth_devise/pull/4) ([forkata](https://github.com/forkata))
416
+ - Minor update to README.md [\#3](https://github.com/solidusio/solidus_auth_devise/pull/3) ([adammathys](https://github.com/adammathys))
417
+
418
+ ## [v1.0.0](https://github.com/solidusio/solidus_auth_devise/tree/v1.0.0) (2015-05-26)
419
+
420
+ [Full Changelog](https://github.com/solidusio/solidus_auth_devise/compare/8ee9c748ec9bff1d90a61a1192e03fa9999c6dfd...v1.0.0)
421
+
422
+ **Merged pull requests:**
423
+
424
+ - Use solidus gem instead of spree [\#2](https://github.com/solidusio/solidus_auth_devise/pull/2) ([jhawthorn](https://github.com/jhawthorn))
425
+ - The rename! [\#1](https://github.com/solidusio/solidus_auth_devise/pull/1) ([adammathys](https://github.com/adammathys))
426
+
427
+
428
+
429
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/Rakefile CHANGED
@@ -3,6 +3,8 @@
3
3
  # Don't build a dummy app with solidus_bolt enabled
4
4
  ENV['SKIP_SOLIDUS_BOLT'] = 'true'
5
5
 
6
+ require 'bundler/gem_tasks'
7
+
6
8
  require 'solidus_dev_support/rake_tasks'
7
9
  SolidusDevSupport::RakeTasks.install
8
10
 
data/bin/rails CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- if %w[g generate].include? ARGV.first
3
+ if %w[g generate].include?(ARGV.first) && ARGV[1] !~ /^(solidus:auth:|solidus_auth_devise:)/
4
4
  exec "#{__dir__}/rails-engine", *ARGV
5
5
  else
6
6
  exec "#{__dir__}/rails-sandbox", *ARGV
data/bin/sandbox CHANGED
@@ -71,6 +71,7 @@ cat <<RUBY >> Gemfile
71
71
  gem 'solidus', github: 'solidusio/solidus', branch: '$BRANCH'
72
72
  gem 'rails-i18n'
73
73
  gem 'solidus_i18n'
74
+ gem 'net-smtp', require: false
74
75
 
75
76
  gem '$extension_name', path: '..'
76
77
 
data/db/default/users.rb CHANGED
@@ -1,78 +1,38 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # see last line where we create an admin if there is none, asking for email and password
4
- def prompt_for_admin_password
5
- if ENV['ADMIN_PASSWORD']
6
- password = ENV['ADMIN_PASSWORD'].dup
7
- puts "Admin Password #{password}"
8
- else
9
- print "Password [test123]: "
10
- password = STDIN.gets.strip
11
- password = 'test123' if password.blank?
12
- end
3
+ admin_role = Spree::Role.find_or_create_by(name: 'admin')
13
4
 
14
- password
5
+ if Spree::User.admin.any?
6
+ puts 'No admin user created.'
7
+ return
15
8
  end
16
9
 
17
- def prompt_for_admin_email
18
- if ENV['ADMIN_EMAIL']
19
- email = ENV['ADMIN_EMAIL'].dup
20
- puts "Admin User #{email}"
21
- else
22
- print "Email [admin@example.com]: "
23
- email = STDIN.gets.strip
24
- email = 'admin@example.com' if email.blank?
25
- end
10
+ email = ENV['ADMIN_EMAIL'] || 'admin@example.com'
11
+ password = ENV['ADMIN_PASSWORD'] || 'test123'
26
12
 
27
- email
28
- end
29
-
30
- def create_admin_user
31
- if ENV['AUTO_ACCEPT']
32
- password = 'test123'
33
- email = 'admin@example.com'
34
- else
35
- puts 'Create the admin user (press enter for defaults).'
36
- # name = prompt_for_admin_name unless name
37
- email = prompt_for_admin_email
38
- password = prompt_for_admin_password
39
- end
40
- attributes = {
41
- password: password,
42
- password_confirmation: password,
43
- email: email,
44
- login: email
45
- }
46
-
47
- load 'spree/user.rb'
13
+ puts "Creating admin user with:"
14
+ puts " - email: #{email}"
15
+ puts " - password: #{password}"
16
+ puts "(please use the ADMIN_EMAIL and ADMIN_PASSWORD environment variables to control how the default admin user is created)"
48
17
 
49
- if Spree::User.find_by(email: email)
50
- puts "\nWARNING: There is already a user with the email: #{email}, so no account changes were made. If you wish to create an additional admin user, please run rake spree_auth:admin:create again with a different email.\n\n"
51
- else
52
- admin = Spree::User.new(attributes)
53
- if admin.save
54
- role = Spree::Role.find_or_create_by(name: 'admin')
55
- admin.spree_roles << role
56
- admin.save
57
- admin.generate_spree_api_key!
58
- puts "Done!"
59
- else
60
- puts "There were some problems with persisting a new admin user:"
61
- admin.errors.full_messages.each do |error|
62
- puts error
63
- end
64
- end
65
- end
18
+ if Spree::User.find_by(email: email)
19
+ warn "WARNING: There is already a user with the email: #{email}, so no account changes were made."
20
+ return
66
21
  end
67
22
 
68
- if Spree::User.admin.empty?
69
- create_admin_user
23
+ admin = Spree::User.new(
24
+ password: password,
25
+ password_confirmation: password,
26
+ email: email,
27
+ login: email,
28
+ )
29
+
30
+ if admin.save
31
+ admin.spree_roles << admin_role
32
+ admin.save
33
+ admin.generate_spree_api_key!
70
34
  else
71
- puts 'Admin user has already been created.'
72
- puts 'Would you like to create a new admin user? (yes/no)'
73
- if ["yes", "y"].include? STDIN.gets.strip.downcase
74
- create_admin_user
75
- else
76
- puts 'No admin user created.'
77
- end
35
+ warn "There were some problems while creating the admin user:"
36
+ warn(admin.errors.full_messages.map { |m| "- #{m}" })
37
+ warn "(attributes: #{admin.attributes.inspect})"
78
38
  end
@@ -4,31 +4,38 @@ module Solidus
4
4
  module Auth
5
5
  module Generators
6
6
  class InstallGenerator < Rails::Generators::Base
7
- class_option :auto_run_migrations, type: :boolean, default: false
8
- class_option :skip_migrations, type: :boolean, default: false
7
+ class_option :auto_run_migrations, type: :boolean, desc: "Run migrations automatically"
8
+ class_option :skip_migrations, type: :boolean, desc: "Skip migrations"
9
9
 
10
- def self.source_paths
11
- paths = superclass.source_paths
12
- paths << File.expand_path('templates', __dir__)
13
- paths.flatten
14
- end
10
+ class_option :interactive, type: :boolean, default: false, desc: "Enable interactive mode"
11
+ class_option :admin_email, type: :string
12
+ class_option :admin_password, type: :string
13
+
14
+ source_root "#{__dir__}/templates"
15
15
 
16
16
  def generate_devise_key
17
17
  template 'config/initializers/devise.rb', 'config/initializers/devise.rb', skip: true
18
18
  end
19
19
 
20
20
  def add_migrations
21
- run 'bundle exec rake railties:install:migrations FROM=solidus_auth'
21
+ admin_email = options[:admin_email] || (options[:interactive] && ask("Email:", default: 'admin@example.com'))
22
+ admin_password = options[:admin_password] || (options[:interactive] && ask("Password:", default: 'test123'))
23
+
24
+ options = []
25
+ options << "ADMIN_EMAIL=#{admin_email}" if admin_email
26
+ options << "ADMIN_PASSWORD=#{admin_password}" if admin_password
27
+
28
+ rake "railties:install:migrations FROM=solidus_auth #{options.shelljoin}"
22
29
  end
23
30
 
24
31
  def run_migrations
25
- return if options[:skip_migrations]
32
+ if options[:skip_migrations] ||
33
+ options[:auto_run_migrations] == false || # exclude nil
34
+ options[:interactive] && no?('Would you like to run the migrations now?')
26
35
 
27
- run_migrations = options[:auto_run_migrations] || ['', 'y', 'Y'].include?(ask('Would you like to run the migrations now? [Y/n]'))
28
- if run_migrations
29
- run 'bundle exec rake db:migrate'
36
+ say_status :skip, 'Skipping rake db:migrate, don\'t forget to run it!', :yellow
30
37
  else
31
- puts 'Skipping rake db:migrate, don\'t forget to run it!' # rubocop:disable Rails/Output
38
+ rake 'db:migrate'
32
39
  end
33
40
  end
34
41
  end