spree_gateway 3.3.0 → 3.3.2

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
  SHA1:
3
- metadata.gz: 004df4f3c77bf0c04a3b9d59538ed7dafaea22b6
4
- data.tar.gz: a020217f107e4dbee4c3c19a41681458cf8690b8
3
+ metadata.gz: c09e0bfa461c6bad92ac1262da99c690ee845df6
4
+ data.tar.gz: 7e76566d4e4dbbb85d2afe3208cdde53d290006d
5
5
  SHA512:
6
- metadata.gz: 541ed6c0fe8ff8672158525d467c0bb5ce0f29fe19077d9938820e854039373e1698c59519f7f59978e947998012b9a0e027de2791dfb33345ff1ad398dc6b85
7
- data.tar.gz: 8b2acfe180f5107865211355993a4d5df8245e7d7a77cd373cc251c8ed68a1df63fb54ce0d82d8d6d4c839cb6db1da4b34860f4b06f35ce5154980e3a1d8e945
6
+ metadata.gz: 0baaa6ec006835cd10ad765083f65ad4d8b48454b417b735897100e8fdc7de67457645f760542701dc602f25339440990024b92b8ab42454f896db5abcaede5b
7
+ data.tar.gz: 737ea9cbde27ed85541d866ab5f07def4adde30049a7dd3857f4bb1027856a4675ca3ace00d2bfecac4c89ada719462bb92d7fdbae3932b40b3b5aaf5d2bdae7
data/README.md CHANGED
@@ -16,7 +16,7 @@ need to manually add it to your rails app Gemfile.
16
16
  #### Spree >= 3.1
17
17
 
18
18
  ```ruby
19
- gem 'spree_gateway', github: 'spree/spree_gateway'
19
+ gem 'spree_gateway', '~> 3.3'
20
20
  ```
21
21
 
22
22
  #### Spree 3.0 and Spree 2.x
@@ -0,0 +1,14 @@
1
+ module Spree
2
+ class Gateway::EwayRapid < Gateway
3
+ preference :login, :string
4
+ preference :password, :string
5
+
6
+ def provider_class
7
+ ActiveMerchant::Billing::EwayRapidGateway
8
+ end
9
+
10
+ def options
11
+ super().merge(:test => self.preferred_test_mode)
12
+ end
13
+ end
14
+ end
@@ -16,6 +16,7 @@ module SpreeGateway
16
16
  app.config.spree.payment_methods << Spree::Gateway::DataCash
17
17
  app.config.spree.payment_methods << Spree::Gateway::Epay
18
18
  app.config.spree.payment_methods << Spree::Gateway::Eway
19
+ app.config.spree.payment_methods << Spree::Gateway::EwayRapid
19
20
  app.config.spree.payment_methods << Spree::Gateway::Maxipago
20
21
  app.config.spree.payment_methods << Spree::Gateway::Migs
21
22
  app.config.spree.payment_methods << Spree::Gateway::Moneris
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe Spree::Gateway::EwayRapid do
4
+ let(:gateway) { described_class.create!(name: 'eWAY Rapid') }
5
+
6
+ describe '#provider_class' do
7
+ it 'should be an eWAY Rapid gateway' do
8
+ expect(gateway.provider_class).to eq ::ActiveMerchant::Billing::EwayRapidGateway
9
+ end
10
+ end
11
+
12
+ describe '#options' do
13
+ it 'should flag test option if preferred_test_mode is true' do
14
+ gateway.preferred_test_mode = true
15
+ expect(gateway.options[:test]).to be true
16
+ end
17
+
18
+ it 'should unflag test option if preferred_test_mode is false' do
19
+ gateway.preferred_test_mode = false
20
+ expect(gateway.options[:test]).to be false
21
+ end
22
+ end
23
+ end
data/spec/spec_helper.rb CHANGED
@@ -22,7 +22,7 @@ require 'spree/testing_support/order_walkthrough'
22
22
  require 'spree/testing_support/preferences'
23
23
  require 'spree/testing_support/capybara_ext'
24
24
 
25
- FactoryGirl.find_definitions
25
+ FactoryBot.find_definitions
26
26
 
27
27
  RSpec.configure do |config|
28
28
  config.infer_spec_type_from_file_location!
@@ -34,7 +34,7 @@ RSpec.configure do |config|
34
34
  #config.filter_run focus: true
35
35
  #config.filter_run_excluding slow: true
36
36
 
37
- config.include FactoryGirl::Syntax::Methods
37
+ config.include FactoryBot::Syntax::Methods
38
38
  config.include Spree::TestingSupport::Preferences
39
39
 
40
40
  config.before :suite do
@@ -2,13 +2,13 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_gateway'
5
- s.version = '3.3.0'
5
+ s.version = '3.3.2'
6
6
  s.summary = 'Additional Payment Gateways for Spree Commerce'
7
7
  s.description = s.summary
8
8
 
9
9
  s.author = 'Spree Commerce'
10
10
  s.email = 'gems@spreecommerce.com'
11
- s.homepage = 'http://www.spreecommerce.com'
11
+ s.homepage = 'https://spreecommerce.org'
12
12
  s.license = 'BSD-3-Clause'
13
13
 
14
14
  s.files = `git ls-files`.split("\n")
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.add_development_dependency 'capybara-screenshot'
26
26
  s.add_development_dependency 'coffee-rails'
27
27
  s.add_development_dependency 'database_cleaner'
28
- s.add_development_dependency 'factory_girl'
28
+ s.add_development_dependency 'factory_bot'
29
29
  s.add_development_dependency 'ffaker'
30
30
  s.add_development_dependency 'guard-rspec'
31
31
  s.add_development_dependency 'launchy'
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.3.0
4
+ version: 3.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spree Commerce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-24 00:00:00.000000000 Z
11
+ date: 2017-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_core
@@ -115,7 +115,7 @@ dependencies:
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  - !ruby/object:Gem::Dependency
118
- name: factory_girl
118
+ name: factory_bot
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - ">="
@@ -365,6 +365,7 @@ files:
365
365
  - app/models/spree/gateway/data_cash.rb
366
366
  - app/models/spree/gateway/epay.rb
367
367
  - app/models/spree/gateway/eway.rb
368
+ - app/models/spree/gateway/eway_rapid.rb
368
369
  - app/models/spree/gateway/maxipago.rb
369
370
  - app/models/spree/gateway/migs.rb
370
371
  - app/models/spree/gateway/moneris.rb
@@ -415,6 +416,7 @@ files:
415
416
  - spec/models/gateway/cyber_source_spec.rb
416
417
  - spec/models/gateway/data_cache_spec.rb
417
418
  - spec/models/gateway/epay_spec.rb
419
+ - spec/models/gateway/eway_rapid_spec.rb
418
420
  - spec/models/gateway/eway_spec.rb
419
421
  - spec/models/gateway/maxipago_spec.rb
420
422
  - spec/models/gateway/moneris_spec.rb
@@ -432,7 +434,7 @@ files:
432
434
  - spec/spec_helper.rb
433
435
  - spec/support/wait_for_stripe.rb
434
436
  - spree_gateway.gemspec
435
- homepage: http://www.spreecommerce.com
437
+ homepage: https://spreecommerce.org
436
438
  licenses:
437
439
  - BSD-3-Clause
438
440
  metadata: {}
@@ -453,7 +455,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
453
455
  requirements:
454
456
  - none
455
457
  rubyforge_project:
456
- rubygems_version: 2.6.11
458
+ rubygems_version: 2.6.12
457
459
  signing_key:
458
460
  specification_version: 4
459
461
  summary: Additional Payment Gateways for Spree Commerce
@@ -469,6 +471,7 @@ test_files:
469
471
  - spec/models/gateway/cyber_source_spec.rb
470
472
  - spec/models/gateway/data_cache_spec.rb
471
473
  - spec/models/gateway/epay_spec.rb
474
+ - spec/models/gateway/eway_rapid_spec.rb
472
475
  - spec/models/gateway/eway_spec.rb
473
476
  - spec/models/gateway/maxipago_spec.rb
474
477
  - spec/models/gateway/moneris_spec.rb