spree_auth_devise 4.3.0 → 4.3.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of spree_auth_devise might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91d6026f95c5de39d8065c441df4c64af29eccd78bf0aeafebfea951bbf87a91
4
- data.tar.gz: 67f50ef5c962e5248621d94311a704db4c0081b6dc8864a1c01892adb5374a26
3
+ metadata.gz: 8b4a6cf62ece3fa34c1fd91a3c20bfeb10ec5a658d15f28d9bd250f4e730314b
4
+ data.tar.gz: 4b16aef83401692f7468b7090e3f4e4184b3f45c4761655a256c7c269b6f1a3a
5
5
  SHA512:
6
- metadata.gz: 7a8bd6c26af9821c350b367937f93901d1fc94c89b3e8fc99f2b1c583332455b4f66f23f7c015f2c94a43cca7af940fc11cae6dbab21656d05c3b57db5efec72
7
- data.tar.gz: 6796f33284e8c55fa71045d39c0e8209d59550a044cb7c92efaf441a3bc8c70d4d68dcaface2ea6be690ebafbe1ed6a68f2e0bbbfa539c6a118d2d359b46a0a7
6
+ metadata.gz: 623b257e40aff603cec630bab6e2fb87b878fcf8fd42f9b462282234fb0ad885caaada7236ef9da8248de71bc6046041550145a0542c7ae6e15fea718802d27e
7
+ data.tar.gz: cd851d1dd8a27b4c3dd9c27f4f3e8ad39e152551fc5e5429bd125c5f714d34f59a623954485f96f410f0f6c9afdf9f287602af809377af79cfad4dd03b3e0a34
@@ -8,15 +8,17 @@ class Spree::UserConfirmationsController < Devise::ConfirmationsController
8
8
 
9
9
  before_action :set_current_order
10
10
 
11
- # POST /resource/confirmation
12
- def create
13
- self.resource = resource_class.send_confirmation_instructions(resource_params, current_store)
14
- yield resource if block_given?
15
-
16
- if successfully_sent?(resource)
17
- respond_with({}, location: after_resending_confirmation_instructions_path_for(resource_name))
18
- else
19
- respond_with(resource)
11
+ if Spree.version.to_f >= 4.2
12
+ # POST /resource/confirmation
13
+ def create
14
+ self.resource = resource_class.send_confirmation_instructions(resource_params, current_store)
15
+ yield resource if block_given?
16
+
17
+ if successfully_sent?(resource)
18
+ respond_with({}, location: after_resending_confirmation_instructions_path_for(resource_name))
19
+ else
20
+ respond_with(resource)
21
+ end
20
22
  end
21
23
  end
22
24
 
@@ -3,7 +3,7 @@
3
3
  Gem::Specification.new do |s|
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.name = 'spree_auth_devise'
6
- s.version = '4.3.0'
6
+ s.version = '4.3.1'
7
7
  s.summary = 'Provides authentication and authorization services for use with Spree by using Devise and CanCan.'
8
8
  s.description = s.summary
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_auth_devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0
4
+ version: 4.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-01-14 00:00:00.000000000 Z
12
+ date: 2021-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: devise
@@ -221,9 +221,9 @@ licenses:
221
221
  - BSD-3-Clause
222
222
  metadata:
223
223
  bug_tracker_uri: https://github.com/spree/spree_auth_devise/issues
224
- changelog_uri: https://github.com/spree/spree_auth_devise/releases/tag/v4.3.0
224
+ changelog_uri: https://github.com/spree/spree_auth_devise/releases/tag/v4.3.1
225
225
  documentation_uri: https://guides.spreecommerce.org/
226
- source_code_uri: https://github.com/spree/spree_auth_devise/tree/v4.3.0
226
+ source_code_uri: https://github.com/spree/spree_auth_devise/tree/v4.3.1
227
227
  post_install_message:
228
228
  rdoc_options: []
229
229
  require_paths: