spree_gateway 3.4.0 → 3.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/spree/order_decorator.rb +12 -11
- data/lib/spree_gateway.rb +0 -1
- data/lib/spree_gateway/engine.rb +0 -6
- data/spree_gateway.gemspec +2 -2
- metadata +5 -7
- data/lib/assets/javascripts/spree/frontend/spree_gateway.js +0 -1
- data/lib/assets/stylesheets/spree/frontend/spree_gateway.css +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab0af879a6877329f9bf577c68c4be1c24970bf5b966f29e1b08f2b00f1072c4
|
4
|
+
data.tar.gz: 8cef017de3de845ac500f50c2e2ee8f67be8c620bff0eb646134730dfe5a79b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e353d5f589c1586bbfb149313f4a222858254415ce6d973a2c371c6ef28780ce07d82723d683d35d4403f2cceb249ff13bff14dee2f6cb9b5e0ca673325d17e
|
7
|
+
data.tar.gz: f8ea33e2365305a84153714ba96fc10c04827aac9140ec36a9c5fe2de6414bfc9742da53cb7b73a7e77c777bf388fe5e73eabc9839a371d367fc1e602afca93a
|
@@ -1,15 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
return false if paid_with_apple_pay?
|
1
|
+
Spree::Order.class_eval do
|
2
|
+
def confirmation_required?
|
3
|
+
return false if paid_with_apple_pay?
|
5
4
|
|
6
|
-
|
7
|
-
|
5
|
+
Spree::Config[:always_include_confirm_step] ||
|
6
|
+
payments.valid.map(&:payment_method).compact.any?(&:payment_profiles_supported?) ||
|
7
|
+
# Little hacky fix for #4117
|
8
|
+
# If this wasn't here, order would transition to address state on confirm failure
|
9
|
+
# because there would be no valid payments any more.
|
10
|
+
confirm?
|
11
|
+
end
|
8
12
|
|
9
|
-
|
10
|
-
|
11
|
-
end
|
13
|
+
def paid_with_apple_pay?
|
14
|
+
payments.valid.any?(&:apple_pay?)
|
12
15
|
end
|
13
16
|
end
|
14
|
-
|
15
|
-
Spree::Order.prepend SpreeGateway::ApplePayOrderDecorator
|
data/lib/spree_gateway.rb
CHANGED
data/lib/spree_gateway/engine.rb
CHANGED
@@ -37,12 +37,6 @@ module SpreeGateway
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def self.activate
|
40
|
-
if SpreeGateway::Engine.frontend_available?
|
41
|
-
Rails.application.config.assets.precompile += [
|
42
|
-
'lib/assets/javascripts/spree/frontend/spree_gateway.js',
|
43
|
-
'lib/assets/stylesheets/spree/frontend/spree_gateway.css',
|
44
|
-
]
|
45
|
-
end
|
46
40
|
Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/spree/*_decorator*.rb')) do |c|
|
47
41
|
Rails.application.config.cache_classes ? require(c) : load(c)
|
48
42
|
end
|
data/spree_gateway.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.platform = Gem::Platform::RUBY
|
4
4
|
s.name = 'spree_gateway'
|
5
|
-
s.version = '3.4.
|
5
|
+
s.version = '3.4.1'
|
6
6
|
s.summary = 'Additional Payment Gateways for Spree Commerce'
|
7
7
|
s.description = s.summary
|
8
8
|
|
@@ -37,7 +37,7 @@ Gem::Specification.new do |s|
|
|
37
37
|
s.add_development_dependency 'puma'
|
38
38
|
s.add_development_dependency 'rspec-activemodel-mocks'
|
39
39
|
s.add_development_dependency 'rspec-rails'
|
40
|
-
s.add_development_dependency 'sass-rails'
|
40
|
+
s.add_development_dependency 'sass-rails'
|
41
41
|
s.add_development_dependency 'selenium-webdriver'
|
42
42
|
s.add_development_dependency 'simplecov'
|
43
43
|
s.add_development_dependency 'sqlite3'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_gateway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Spree Commerce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|
@@ -288,14 +288,14 @@ dependencies:
|
|
288
288
|
requirements:
|
289
289
|
- - ">="
|
290
290
|
- !ruby/object:Gem::Version
|
291
|
-
version: '
|
291
|
+
version: '0'
|
292
292
|
type: :development
|
293
293
|
prerelease: false
|
294
294
|
version_requirements: !ruby/object:Gem::Requirement
|
295
295
|
requirements:
|
296
296
|
- - ">="
|
297
297
|
- !ruby/object:Gem::Version
|
298
|
-
version: '
|
298
|
+
version: '0'
|
299
299
|
- !ruby/object:Gem::Dependency
|
300
300
|
name: selenium-webdriver
|
301
301
|
requirement: !ruby/object:Gem::Requirement
|
@@ -399,8 +399,6 @@ files:
|
|
399
399
|
- gemfiles/spree_3_5.gemfile
|
400
400
|
- gemfiles/spree_3_6.gemfile
|
401
401
|
- gemfiles/spree_master.gemfile
|
402
|
-
- lib/assets/javascripts/spree/frontend/spree_gateway.js
|
403
|
-
- lib/assets/stylesheets/spree/frontend/spree_gateway.css
|
404
402
|
- lib/controllers/spree/apple_pay_domain_verification_controller.rb
|
405
403
|
- lib/generators/spree_gateway/install/install_generator.rb
|
406
404
|
- lib/spree_gateway.rb
|
@@ -467,7 +465,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
467
465
|
requirements:
|
468
466
|
- none
|
469
467
|
rubyforge_project:
|
470
|
-
rubygems_version: 2.7.
|
468
|
+
rubygems_version: 2.7.8
|
471
469
|
signing_key:
|
472
470
|
specification_version: 4
|
473
471
|
summary: Additional Payment Gateways for Spree Commerce
|
@@ -1 +0,0 @@
|
|
1
|
-
//= require spree/frontend
|