spree_gateway 2.2.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +5 -17
  3. data/Gemfile +1 -1
  4. data/README.md +9 -3
  5. data/app/models/spree/billing_integration.rb +21 -0
  6. data/app/models/spree/gateway/authorize_net.rb +31 -1
  7. data/app/models/spree/gateway/authorize_net_cim.rb +128 -47
  8. data/app/models/spree/gateway/balanced_gateway.rb +3 -5
  9. data/app/models/spree/gateway/braintree_gateway.rb +55 -18
  10. data/app/models/spree/gateway/cyber_source.rb +10 -0
  11. data/app/models/spree/gateway/migs.rb +11 -0
  12. data/app/models/spree/gateway/payflow_pro.rb +1 -0
  13. data/app/models/spree/gateway/pin_gateway.rb +45 -0
  14. data/app/models/spree/gateway/spreedly_core_gateway.rb +10 -0
  15. data/app/models/spree/gateway/stripe_gateway.rb +29 -6
  16. data/app/models/spree/gateway/usa_epay_transaction.rb +9 -0
  17. data/config/routes.rb +1 -1
  18. data/db/migrate/20111118164631_create_skrill_transactions.rb +1 -2
  19. data/lib/assets/javascripts/spree/frontend/spree_gateway.js +1 -0
  20. data/{app → lib}/assets/stylesheets/spree/frontend/spree_gateway.css +0 -0
  21. data/{app/controllers → lib/controllers/frontend}/spree/checkout_controller_decorator.rb +1 -1
  22. data/{app/controllers → lib/controllers/frontend}/spree/skrill_status_controller.rb +0 -0
  23. data/lib/spree_gateway.rb +1 -1
  24. data/lib/spree_gateway/engine.rb +56 -25
  25. data/{app/views → lib/views/backend}/spree/admin/log_entries/_braintree.html.erb +0 -0
  26. data/{app/views → lib/views/backend}/spree/admin/log_entries/_stripe.html.erb +0 -0
  27. data/{app/views → lib/views/backend}/spree/admin/payments/source_forms/_quickcheckout.html.erb +0 -0
  28. data/lib/views/backend/spree/admin/payments/source_forms/_stripe.html.erb +1 -0
  29. data/{app/views → lib/views/backend}/spree/admin/payments/source_views/_quickcheckout.html.erb +0 -0
  30. data/{app/views → lib/views/backend}/spree/admin/payments/source_views/_stripe.html.erb +0 -0
  31. data/{app/views → lib/views/frontend}/spree/checkout/payment/_quickcheckout.html.erb +2 -2
  32. data/lib/views/frontend/spree/checkout/payment/_stripe.html.erb +90 -0
  33. data/spec/factories/payment_method_factory.rb +0 -1
  34. data/spec/features/stripe_checkout_spec.rb +15 -4
  35. data/spec/models/gateway/authorize_net_cim_spec.rb +6 -6
  36. data/spec/models/gateway/authorize_net_spec.rb +6 -6
  37. data/spec/models/gateway/balanced_gateway_spec.rb +1 -1
  38. data/spec/models/gateway/beanstream_spec.rb +1 -1
  39. data/spec/models/gateway/braintree_gateway_spec.rb +147 -31
  40. data/spec/models/gateway/cyber_source_spec.rb +11 -0
  41. data/spec/models/gateway/eway_spec.rb +3 -3
  42. data/spec/models/gateway/maxipago_spec.rb +1 -1
  43. data/spec/models/gateway/pay_junction_spec.rb +2 -2
  44. data/spec/models/gateway/payflow_pro_spec.rb +2 -2
  45. data/spec/models/gateway/pin_gateway_spec.rb +4 -6
  46. data/spec/models/gateway/stripe_gateway_spec.rb +90 -9
  47. data/spec/models/gateway/{usa_epay_spec.rb → usa_epay_transaction_spec.rb} +9 -9
  48. data/spec/spec_helper.rb +5 -2
  49. data/spree_gateway.gemspec +15 -16
  50. metadata +89 -98
  51. data/Versionfile +0 -7
  52. data/app/assets/javascripts/spree/frontend/spree_gateway.js +0 -3
  53. data/app/assets/javascripts/store/gateway/stripe.js.coffee +0 -58
  54. data/app/assets/javascripts/store/spree_gateway.js +0 -2
  55. data/app/models/spree/gateway/fatzebra.rb +0 -15
  56. data/app/models/spree/gateway/linkpoint.rb +0 -28
  57. data/app/models/spree/gateway/samurai.rb +0 -63
  58. data/app/models/spree/gateway/usa_epay.rb +0 -9
  59. data/app/views/spree/admin/payments/source_forms/_stripe.html.erb +0 -1
  60. data/app/views/spree/checkout/payment/_stripe.html.erb +0 -21
  61. data/config/initializers/savon.rb +0 -3
  62. data/spec/models/gateway/fatzebra_spec.rb +0 -51
  63. data/spec/models/gateway/linkpoint_spec.rb +0 -62
  64. data/spec/models/gateway/samurai_spec.rb +0 -17
  65. data/spec/models/savon_spec.rb +0 -9
@@ -4,7 +4,7 @@ describe Spree::Gateway::PinGateway do
4
4
 
5
5
  before do
6
6
  Spree::Gateway.update_all(active: false)
7
- @gateway = described_class.create!(name: 'Pin Gateway', environment: 'sandbox', active: true)
7
+ @gateway = described_class.create!(name: 'Pin Gateway', active: true)
8
8
  @gateway.set_preference(:api_key, 'W_VzkRCZSILiKWUS-dndUg')
9
9
  @gateway.save!
10
10
 
@@ -30,13 +30,11 @@ describe Spree::Gateway::PinGateway do
30
30
  number: '5520000000000000',
31
31
  month: 5,
32
32
  year: Time.now.year + 1,
33
- first_name: 'Ronald C',
34
- last_name: 'Robot',
33
+ name: 'Ronald C Robot',
35
34
  cc_type: 'mastercard'
36
35
  )
37
36
 
38
37
  @payment = create(:payment, source: credit_card, order: order, payment_method: @gateway, amount: 10.00)
39
- @payment.payment_method.environment = 'test'
40
38
  end
41
39
 
42
40
  it 'can purchase' do
@@ -46,11 +44,11 @@ describe Spree::Gateway::PinGateway do
46
44
 
47
45
  # Regression test for #106
48
46
  it 'uses auto capturing' do
49
- expect(@gateway.auto_capture?).to be_true
47
+ expect(@gateway.auto_capture?).to be true
50
48
  end
51
49
 
52
50
  it 'always uses purchase' do
53
51
  @payment.should_receive(:purchase!)
54
52
  @payment.process!
55
53
  end
56
- end
54
+ end
@@ -3,10 +3,11 @@ require 'spec_helper'
3
3
  describe Spree::Gateway::StripeGateway do
4
4
  let(:secret_key) { 'key' }
5
5
  let(:email) { 'customer@example.com' }
6
+ let(:source) { Spree::CreditCard.new }
6
7
 
7
8
  let(:payment) {
8
9
  double('Spree::Payment',
9
- source: double('Source', gateway_customer_profile_id: nil).as_null_object,
10
+ source: source,
10
11
  order: double('Spree::Order',
11
12
  email: email,
12
13
  bill_address: bill_address
@@ -23,12 +24,16 @@ describe Spree::Gateway::StripeGateway do
23
24
  end
24
25
 
25
26
  before do
26
- subject.set_preference :secret_key, secret_key
27
+ subject.preferences = { secret_key: secret_key }
27
28
  subject.stub(:options_for_purchase_or_auth).and_return(['money','cc','opts'])
28
29
  subject.stub(:provider).and_return provider
29
30
  end
30
31
 
31
32
  describe '#create_profile' do
33
+ before do
34
+ payment.source.stub(:update_attributes!)
35
+ end
36
+
32
37
  context 'with an order that has a bill address' do
33
38
  let(:bill_address) {
34
39
  double('Spree::Address',
@@ -71,6 +76,43 @@ describe Spree::Gateway::StripeGateway do
71
76
 
72
77
  subject.create_profile payment
73
78
  end
79
+
80
+ # Regression test for #141
81
+ context "correcting the card type" do
82
+ before do
83
+ # We don't care about this method for these tests
84
+ subject.provider.stub(:store).and_return(double.as_null_object)
85
+ end
86
+
87
+ it "converts 'American Express' to 'american_express'" do
88
+ payment.source.cc_type = 'American Express'
89
+ subject.create_profile(payment)
90
+ expect(payment.source.cc_type).to eq('american_express')
91
+ end
92
+
93
+ it "converts 'Diners Club' to 'diners_club'" do
94
+ payment.source.cc_type = 'Diners Club'
95
+ subject.create_profile(payment)
96
+ expect(payment.source.cc_type).to eq('diners_club')
97
+ end
98
+
99
+ it "converts 'Visa' to 'visa'" do
100
+ payment.source.cc_type = 'Visa'
101
+ subject.create_profile(payment)
102
+ expect(payment.source.cc_type).to eq('visa')
103
+ end
104
+ end
105
+ end
106
+
107
+ context 'with a card represents payment_profile' do
108
+ let(:source) { Spree::CreditCard.new(gateway_payment_profile_id: 'tok_profileid') }
109
+ let(:bill_address) { nil }
110
+
111
+ it 'stores the profile_id as a card' do
112
+ subject.provider.should_receive(:store).with(source.gateway_payment_profile_id, anything).and_return double.as_null_object
113
+
114
+ subject.create_profile payment
115
+ end
74
116
  end
75
117
  end
76
118
 
@@ -95,15 +137,9 @@ describe Spree::Gateway::StripeGateway do
95
137
  end
96
138
 
97
139
  context 'capturing' do
98
- let(:payment) do
99
- double('payment').tap do |p|
100
- p.stub(:amount).and_return(12.34)
101
- p.stub(:response_code).and_return('response_code')
102
- end
103
- end
104
140
 
105
141
  after do
106
- subject.capture(payment, 'credit card', {})
142
+ subject.capture(1234, 'response_code', {})
107
143
  end
108
144
 
109
145
  it 'convert the amount to cents' do
@@ -114,4 +150,49 @@ describe Spree::Gateway::StripeGateway do
114
150
  provider.should_receive(:capture).with(anything,'response_code',anything)
115
151
  end
116
152
  end
153
+
154
+ context 'capture with payment class' do
155
+ let(:gateway) do
156
+ gateway = described_class.new(active: true)
157
+ gateway.set_preference :secret_key, secret_key
158
+ gateway.stub(:options_for_purchase_or_auth).and_return(['money','cc','opts'])
159
+ gateway.stub(:provider).and_return provider
160
+ gateway.stub :source_required => true
161
+ gateway
162
+ end
163
+
164
+ let(:order) { Spree::Order.create }
165
+
166
+ let(:card) do
167
+ # mock_model(Spree::CreditCard, :gateway_customer_profile_id => 'cus_abcde',
168
+ # :imported => false)
169
+ create :credit_card, gateway_customer_profile_id: 'cus_abcde', imported: false
170
+ end
171
+
172
+ let(:payment) do
173
+ payment = Spree::Payment.new
174
+ payment.source = card
175
+ payment.order = order
176
+ payment.payment_method = gateway
177
+ payment.amount = 98.55
178
+ payment.state = 'pending'
179
+ payment.response_code = '12345'
180
+ payment
181
+ end
182
+
183
+ let!(:success_response) do
184
+ double('success_response', :success? => true,
185
+ :authorization => '123',
186
+ :avs_result => { 'code' => 'avs-code' },
187
+ :cvv_result => { 'code' => 'cvv-code', 'message' => "CVV Result"})
188
+ end
189
+
190
+ after do
191
+ payment.capture!
192
+ end
193
+
194
+ it 'gets correct amount' do
195
+ provider.should_receive(:capture).with(9855,'12345',anything).and_return(success_response)
196
+ end
197
+ end
117
198
  end
@@ -1,9 +1,9 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe Spree::Gateway::UsaEpay do
3
+ describe Spree::Gateway::UsaEpayTransaction do
4
4
  before do
5
5
  Spree::Gateway.update_all(active: false)
6
- @gateway = Spree::Gateway::UsaEpay.create!(name: 'USA EPay Gateway', environment: 'sandbox', active: true)
6
+ @gateway = Spree::Gateway::UsaEpayTransaction.create!(name: 'USA EPay Gateway', active: true)
7
7
  @gateway.set_preference(:login, '0r19zQBdp5nS8i3t4hFxz0di13yf56q1')
8
8
  @gateway.save!
9
9
 
@@ -28,22 +28,22 @@ describe Spree::Gateway::UsaEpay do
28
28
  number: '4111111111111111',
29
29
  month: 9,
30
30
  year: Time.now.year + 1,
31
- first_name: 'John',
32
- last_name: 'Doe')
31
+ name: 'John Doe',
32
+ cc_type: '')
33
33
 
34
34
  @payment = create(:payment, source: credit_card, order: order, payment_method: @gateway, amount: 10.00)
35
- @payment.payment_method.environment = 'test'
36
35
  end
37
36
 
38
37
  context 'purchasing' do
39
38
  it 'can purchase a payment' do
40
- expect { @payment.purchase! }.to be_true
39
+ skip 'login key is no longer valid'
40
+ expect(@payment.purchase!).to be_truthy
41
41
  end
42
42
  end
43
43
 
44
44
  context '.provider_class' do
45
- it 'is a Worldpay gateway' do
46
- expect(@gateway.provider_class).to eq ::ActiveMerchant::Billing::UsaEpayGateway
45
+ it 'is a UsaEpayTransaction gateway' do
46
+ expect(@gateway.provider_class).to eq ::ActiveMerchant::Billing::UsaEpayTransactionGateway
47
47
  end
48
48
  end
49
- end
49
+ end
@@ -6,11 +6,13 @@ ENV["RAILS_ENV"] = "test"
6
6
  require File.expand_path("../dummy/config/environment.rb", __FILE__)
7
7
 
8
8
  require 'rspec/rails'
9
+ require 'rspec/active_model/mocks'
9
10
  require 'capybara/rspec'
10
11
  require 'capybara/rails'
11
12
  require 'capybara/poltergeist'
12
13
  require 'database_cleaner'
13
14
  require 'ffaker'
15
+ require 'rspec/active_model/mocks'
14
16
 
15
17
  Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
16
18
 
@@ -21,9 +23,10 @@ require 'spree/testing_support/preferences'
21
23
  FactoryGirl.find_definitions
22
24
 
23
25
  RSpec.configure do |config|
26
+ config.infer_spec_type_from_file_location!
24
27
  config.mock_with :rspec
28
+ config.raise_errors_for_deprecations!
25
29
  config.use_transactional_fixtures = false
26
-
27
30
  #config.filter_run focus: true
28
31
  #config.filter_run_excluding slow: true
29
32
 
@@ -36,7 +39,7 @@ RSpec.configure do |config|
36
39
  end
37
40
 
38
41
  config.before do
39
- DatabaseCleaner.strategy = example.metadata[:js] ? :truncation : :transaction
42
+ DatabaseCleaner.strategy = RSpec.current_example.metadata[:js] ? :truncation : :transaction
40
43
  DatabaseCleaner.start
41
44
  reset_spree_preferences
42
45
  end
@@ -2,10 +2,9 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_gateway'
5
- s.version = '2.2.1'
5
+ s.version = '3.0.0'
6
6
  s.summary = 'Additional Payment Gateways for Spree Commerce'
7
7
  s.description = s.summary
8
- s.required_ruby_version = '>= 1.9.3'
9
8
 
10
9
  s.author = 'Spree Commerce'
11
10
  s.email = 'gems@spreecommerce.com'
@@ -17,24 +16,24 @@ Gem::Specification.new do |s|
17
16
  s.require_path = 'lib'
18
17
  s.requirements << 'none'
19
18
 
20
- s.add_dependency 'spree_core', '~> 2.2.0'
21
- s.add_dependency 'savon', '~> 1.2'
19
+ s.add_dependency 'spree_core', '~> 3.0.0'
22
20
 
23
- s.add_development_dependency 'factory_girl', '~> 4.4'
24
- s.add_development_dependency 'rspec-rails', '~> 2.14'
25
- s.add_development_dependency 'capybara', '2.2.1'
26
- s.add_development_dependency 'launchy'
27
- s.add_development_dependency 'ffaker'
21
+ s.add_development_dependency 'braintree'
22
+ s.add_development_dependency 'capybara'
28
23
  s.add_development_dependency 'coffee-rails', '~> 4.0.0'
29
- s.add_development_dependency 'sass-rails', '~> 4.0.0'
30
- s.add_development_dependency 'poltergeist', '1.5.0'
31
- s.add_development_dependency 'selenium-webdriver'
32
24
  s.add_development_dependency 'database_cleaner', '1.2.0'
33
- s.add_development_dependency 'simplecov', '~> 0.7.1'
25
+ s.add_development_dependency 'factory_girl', '~> 4.4'
26
+ s.add_development_dependency 'ffaker'
34
27
  s.add_development_dependency 'guard-rspec'
35
- s.add_development_dependency 'sqlite3'
36
- s.add_development_dependency 'pg'
28
+ s.add_development_dependency 'launchy'
37
29
  s.add_development_dependency 'mysql2'
30
+ s.add_development_dependency 'pg'
31
+ s.add_development_dependency 'poltergeist', '~> 1.6.0'
38
32
  s.add_development_dependency 'pry'
39
- s.add_development_dependency 'braintree'
33
+ s.add_development_dependency 'rspec-activemodel-mocks'
34
+ s.add_development_dependency 'rspec-rails', '~> 2.99'
35
+ s.add_development_dependency 'sass-rails', '~> 4.0.2'
36
+ s.add_development_dependency 'selenium-webdriver'
37
+ s.add_development_dependency 'simplecov'
38
+ s.add_development_dependency 'sqlite3'
40
39
  end
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: 2.2.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spree Commerce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-03 00:00:00.000000000 Z
11
+ date: 2016-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_core
@@ -16,84 +16,84 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.0
19
+ version: 3.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.2.0
26
+ version: 3.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: savon
28
+ name: braintree
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.2'
34
- type: :runtime
33
+ version: '0'
34
+ type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.2'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: factory_girl
42
+ name: capybara
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '4.4'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '4.4'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rspec-rails
56
+ name: coffee-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.14'
61
+ version: 4.0.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '2.14'
68
+ version: 4.0.0
69
69
  - !ruby/object:Gem::Dependency
70
- name: capybara
70
+ name: database_cleaner
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 2.2.1
75
+ version: 1.2.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 2.2.1
82
+ version: 1.2.0
83
83
  - !ruby/object:Gem::Dependency
84
- name: launchy
84
+ name: factory_girl
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '4.4'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '4.4'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: ffaker
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -109,49 +109,49 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: coffee-rails
112
+ name: guard-rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: 4.0.0
117
+ version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: 4.0.0
124
+ version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: sass-rails
126
+ name: launchy
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: 4.0.0
131
+ version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: 4.0.0
138
+ version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: poltergeist
140
+ name: mysql2
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 1.5.0
145
+ version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 1.5.0
152
+ version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: selenium-webdriver
154
+ name: pg
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
@@ -165,35 +165,35 @@ dependencies:
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
- name: database_cleaner
168
+ name: poltergeist
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '='
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 1.2.0
173
+ version: 1.6.0
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '='
178
+ - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 1.2.0
180
+ version: 1.6.0
181
181
  - !ruby/object:Gem::Dependency
182
- name: simplecov
182
+ name: pry
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - "~>"
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
- version: 0.7.1
187
+ version: '0'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - "~>"
192
+ - - ">="
193
193
  - !ruby/object:Gem::Version
194
- version: 0.7.1
194
+ version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
- name: guard-rspec
196
+ name: rspec-activemodel-mocks
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - ">="
@@ -207,35 +207,35 @@ dependencies:
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
209
  - !ruby/object:Gem::Dependency
210
- name: sqlite3
210
+ name: rspec-rails
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - ">="
213
+ - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: '0'
215
+ version: '2.99'
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - ">="
220
+ - - "~>"
221
221
  - !ruby/object:Gem::Version
222
- version: '0'
222
+ version: '2.99'
223
223
  - !ruby/object:Gem::Dependency
224
- name: pg
224
+ name: sass-rails
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - ">="
227
+ - - "~>"
228
228
  - !ruby/object:Gem::Version
229
- version: '0'
229
+ version: 4.0.2
230
230
  type: :development
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - ">="
234
+ - - "~>"
235
235
  - !ruby/object:Gem::Version
236
- version: '0'
236
+ version: 4.0.2
237
237
  - !ruby/object:Gem::Dependency
238
- name: mysql2
238
+ name: selenium-webdriver
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
241
  - - ">="
@@ -249,7 +249,7 @@ dependencies:
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
251
  - !ruby/object:Gem::Dependency
252
- name: pry
252
+ name: simplecov
253
253
  requirement: !ruby/object:Gem::Requirement
254
254
  requirements:
255
255
  - - ">="
@@ -263,7 +263,7 @@ dependencies:
263
263
  - !ruby/object:Gem::Version
264
264
  version: '0'
265
265
  - !ruby/object:Gem::Dependency
266
- name: braintree
266
+ name: sqlite3
267
267
  requirement: !ruby/object:Gem::Requirement
268
268
  requirements:
269
269
  - - ">="
@@ -290,13 +290,7 @@ files:
290
290
  - LICENSE.md
291
291
  - README.md
292
292
  - Rakefile
293
- - Versionfile
294
- - app/assets/javascripts/spree/frontend/spree_gateway.js
295
- - app/assets/javascripts/store/gateway/stripe.js.coffee
296
- - app/assets/javascripts/store/spree_gateway.js
297
- - app/assets/stylesheets/spree/frontend/spree_gateway.css
298
- - app/controllers/spree/checkout_controller_decorator.rb
299
- - app/controllers/spree/skrill_status_controller.rb
293
+ - app/models/spree/billing_integration.rb
300
294
  - app/models/spree/billing_integration/skrill/quick_checkout.rb
301
295
  - app/models/spree/gateway/authorize_net.rb
302
296
  - app/models/spree/gateway/authorize_net_cim.rb
@@ -305,11 +299,11 @@ files:
305
299
  - app/models/spree/gateway/beanstream.rb
306
300
  - app/models/spree/gateway/braintree_gateway.rb
307
301
  - app/models/spree/gateway/card_save.rb
302
+ - app/models/spree/gateway/cyber_source.rb
308
303
  - app/models/spree/gateway/data_cash.rb
309
304
  - app/models/spree/gateway/eway.rb
310
- - app/models/spree/gateway/fatzebra.rb
311
- - app/models/spree/gateway/linkpoint.rb
312
305
  - app/models/spree/gateway/maxipago.rb
306
+ - app/models/spree/gateway/migs.rb
313
307
  - app/models/spree/gateway/moneris.rb
314
308
  - app/models/spree/gateway/pay_junction.rb
315
309
  - app/models/spree/gateway/pay_pal_gateway.rb
@@ -317,21 +311,12 @@ files:
317
311
  - app/models/spree/gateway/paymill.rb
318
312
  - app/models/spree/gateway/pin_gateway.rb
319
313
  - app/models/spree/gateway/sage_pay.rb
320
- - app/models/spree/gateway/samurai.rb
321
314
  - app/models/spree/gateway/secure_pay_au.rb
315
+ - app/models/spree/gateway/spreedly_core_gateway.rb
322
316
  - app/models/spree/gateway/stripe_gateway.rb
323
- - app/models/spree/gateway/usa_epay.rb
317
+ - app/models/spree/gateway/usa_epay_transaction.rb
324
318
  - app/models/spree/gateway/worldpay.rb
325
319
  - app/models/spree/skrill_transaction.rb
326
- - app/views/spree/admin/log_entries/_braintree.html.erb
327
- - app/views/spree/admin/log_entries/_stripe.html.erb
328
- - app/views/spree/admin/payments/source_forms/_quickcheckout.html.erb
329
- - app/views/spree/admin/payments/source_forms/_stripe.html.erb
330
- - app/views/spree/admin/payments/source_views/_quickcheckout.html.erb
331
- - app/views/spree/admin/payments/source_views/_stripe.html.erb
332
- - app/views/spree/checkout/payment/_quickcheckout.html.erb
333
- - app/views/spree/checkout/payment/_stripe.html.erb
334
- - config/initializers/savon.rb
335
320
  - config/locales/bg.yml
336
321
  - config/locales/de.yml
337
322
  - config/locales/en.yml
@@ -344,9 +329,21 @@ files:
344
329
  - db/migrate/20131008221012_update_paypal_payment_method_type.rb
345
330
  - db/migrate/20131112133401_migrate_stripe_preferences.rb
346
331
  - lib/active_merchant/billing/skrill.rb
332
+ - lib/assets/javascripts/spree/frontend/spree_gateway.js
333
+ - lib/assets/stylesheets/spree/frontend/spree_gateway.css
334
+ - lib/controllers/frontend/spree/checkout_controller_decorator.rb
335
+ - lib/controllers/frontend/spree/skrill_status_controller.rb
347
336
  - lib/generators/spree_gateway/install/install_generator.rb
348
337
  - lib/spree_gateway.rb
349
338
  - lib/spree_gateway/engine.rb
339
+ - lib/views/backend/spree/admin/log_entries/_braintree.html.erb
340
+ - lib/views/backend/spree/admin/log_entries/_stripe.html.erb
341
+ - lib/views/backend/spree/admin/payments/source_forms/_quickcheckout.html.erb
342
+ - lib/views/backend/spree/admin/payments/source_forms/_stripe.html.erb
343
+ - lib/views/backend/spree/admin/payments/source_views/_quickcheckout.html.erb
344
+ - lib/views/backend/spree/admin/payments/source_views/_stripe.html.erb
345
+ - lib/views/frontend/spree/checkout/payment/_quickcheckout.html.erb
346
+ - lib/views/frontend/spree/checkout/payment/_stripe.html.erb
350
347
  - script/rails
351
348
  - spec/controllers/spree/checkout_controller_spec.rb
352
349
  - spec/controllers/spree/skrill_status_controller_spec.rb
@@ -362,10 +359,9 @@ files:
362
359
  - spec/models/gateway/beanstream_spec.rb
363
360
  - spec/models/gateway/braintree_gateway_spec.rb
364
361
  - spec/models/gateway/card_save_spec.rb
362
+ - spec/models/gateway/cyber_source_spec.rb
365
363
  - spec/models/gateway/data_cache_spec.rb
366
364
  - spec/models/gateway/eway_spec.rb
367
- - spec/models/gateway/fatzebra_spec.rb
368
- - spec/models/gateway/linkpoint_spec.rb
369
365
  - spec/models/gateway/maxipago_spec.rb
370
366
  - spec/models/gateway/moneris_spec.rb
371
367
  - spec/models/gateway/pay_junction_spec.rb
@@ -374,12 +370,10 @@ files:
374
370
  - spec/models/gateway/paymill_spec.rb
375
371
  - spec/models/gateway/pin_gateway_spec.rb
376
372
  - spec/models/gateway/sage_pay_spec.rb
377
- - spec/models/gateway/samurai_spec.rb
378
373
  - spec/models/gateway/secure_pay_au_spec.rb
379
374
  - spec/models/gateway/stripe_gateway_spec.rb
380
- - spec/models/gateway/usa_epay_spec.rb
375
+ - spec/models/gateway/usa_epay_transaction_spec.rb
381
376
  - spec/models/gateway/worldpay_spec.rb
382
- - spec/models/savon_spec.rb
383
377
  - spec/models/skrill_transaction_spec.rb
384
378
  - spec/spec_helper.rb
385
379
  - spree_gateway.gemspec
@@ -395,7 +389,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
395
389
  requirements:
396
390
  - - ">="
397
391
  - !ruby/object:Gem::Version
398
- version: 1.9.3
392
+ version: '0'
399
393
  required_rubygems_version: !ruby/object:Gem::Requirement
400
394
  requirements:
401
395
  - - ">="
@@ -404,7 +398,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
404
398
  requirements:
405
399
  - none
406
400
  rubyforge_project:
407
- rubygems_version: 2.2.0
401
+ rubygems_version: 2.4.8
408
402
  signing_key:
409
403
  specification_version: 4
410
404
  summary: Additional Payment Gateways for Spree Commerce
@@ -423,10 +417,9 @@ test_files:
423
417
  - spec/models/gateway/beanstream_spec.rb
424
418
  - spec/models/gateway/braintree_gateway_spec.rb
425
419
  - spec/models/gateway/card_save_spec.rb
420
+ - spec/models/gateway/cyber_source_spec.rb
426
421
  - spec/models/gateway/data_cache_spec.rb
427
422
  - spec/models/gateway/eway_spec.rb
428
- - spec/models/gateway/fatzebra_spec.rb
429
- - spec/models/gateway/linkpoint_spec.rb
430
423
  - spec/models/gateway/maxipago_spec.rb
431
424
  - spec/models/gateway/moneris_spec.rb
432
425
  - spec/models/gateway/pay_junction_spec.rb
@@ -435,11 +428,9 @@ test_files:
435
428
  - spec/models/gateway/paymill_spec.rb
436
429
  - spec/models/gateway/pin_gateway_spec.rb
437
430
  - spec/models/gateway/sage_pay_spec.rb
438
- - spec/models/gateway/samurai_spec.rb
439
431
  - spec/models/gateway/secure_pay_au_spec.rb
440
432
  - spec/models/gateway/stripe_gateway_spec.rb
441
- - spec/models/gateway/usa_epay_spec.rb
433
+ - spec/models/gateway/usa_epay_transaction_spec.rb
442
434
  - spec/models/gateway/worldpay_spec.rb
443
- - spec/models/savon_spec.rb
444
435
  - spec/models/skrill_transaction_spec.rb
445
436
  - spec/spec_helper.rb