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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aad9aebb297d8d3075838334fa28add9b8d814ff823221b9c45dde589e8ef854
4
- data.tar.gz: f31ea14dab0e47a5d046b7890c351c257e5eecdd779300efc1251b63527cf6ef
3
+ metadata.gz: ab0af879a6877329f9bf577c68c4be1c24970bf5b966f29e1b08f2b00f1072c4
4
+ data.tar.gz: 8cef017de3de845ac500f50c2e2ee8f67be8c620bff0eb646134730dfe5a79b9
5
5
  SHA512:
6
- metadata.gz: d88b3801880261fb8ad09ca80549f436c2dd71a6c47319dd4a6f22b5bf6b0dd88300028b4c5f859018fa0f9c221ddaf49e22091da5208d8054b48d10ce05d149
7
- data.tar.gz: 2be4ce4186492ad74826a4d58b1f5415078457aa380373e592cbd80dc2116443a9d1de04fec68c0d51abe47af5e2486ea1240524fd3e79cea7a2fd9bb1a9182e
6
+ metadata.gz: 0e353d5f589c1586bbfb149313f4a222858254415ce6d973a2c371c6ef28780ce07d82723d683d35d4403f2cceb249ff13bff14dee2f6cb9b5e0ca673325d17e
7
+ data.tar.gz: f8ea33e2365305a84153714ba96fc10c04827aac9140ec36a9c5fe2de6414bfc9742da53cb7b73a7e77c777bf388fe5e73eabc9839a371d367fc1e602afca93a
@@ -1,15 +1,16 @@
1
- module SpreeGateway
2
- module ApplePayOrderDecorator
3
- def confirmation_required?
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
- super
7
- end
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
- def paid_with_apple_pay?
10
- payments.valid.any?(&:apple_pay?)
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
@@ -1,4 +1,3 @@
1
1
  require 'spree_core'
2
2
  require 'spree_gateway/engine'
3
- require 'sass/rails'
4
3
  require 'spree_extension'
@@ -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
@@ -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.0'
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', '>= 3.2'
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.0
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-08 00:00:00.000000000 Z
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: '3.2'
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: '3.2'
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.6
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
@@ -1,3 +0,0 @@
1
- /*
2
- *= require spree/frontend
3
- */