spree_unified_payment 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile
CHANGED
@@ -4,7 +4,7 @@ gem 'mysql2'
|
|
4
4
|
gem 'sqlite3'
|
5
5
|
|
6
6
|
|
7
|
-
gem 'spree', :git => 'git://github.com/spree/spree.git', :tag => 'v2.0.
|
7
|
+
gem 'spree', :git => 'git://github.com/spree/spree.git', :tag => 'v2.0.8'
|
8
8
|
gem 'spree_wallet', :git => 'git://github.com/vinsol/spree_wallet.git'
|
9
9
|
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-0-stable'
|
10
10
|
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Spree-Unified-Payments [![Code Climate](https://codeclimate.com/github/vinsol/Spree-Unified-Payments.png)](https://codeclimate.com/github/vinsol/Spree-Unified-Payments)
|
1
|
+
Spree-Unified-Payments [![Code Climate](https://codeclimate.com/github/vinsol/Spree-Unified-Payments.png)](https://codeclimate.com/github/vinsol/Spree-Unified-Payments) [![Build Status](https://travis-ci.org/vinsol/Spree-Unified-Payments.png?branch=master)](https://travis-ci.org/vinsol/Spree-Unified-Payments)
|
2
2
|
================
|
3
3
|
Enable spree store to allow payment via UnifiedPayment
|
4
4
|
|
@@ -15,12 +15,7 @@ module SpreeUnifiedPayment
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def run_migrations
|
18
|
-
|
19
|
-
if res == "" || res.downcase == "y"
|
20
|
-
run 'bundle exec rake db:migrate'
|
21
|
-
else
|
22
|
-
puts "Skiping rake db:migrate, don't forget to run it!"
|
23
|
-
end
|
18
|
+
run 'bundle exec rake db:migrate'
|
24
19
|
end
|
25
20
|
end
|
26
21
|
end
|
@@ -4,7 +4,7 @@ describe Spree::CheckoutController do
|
|
4
4
|
let(:user) { mock_model(Spree.user_class) }
|
5
5
|
let(:role) { mock_model(Spree::Role) }
|
6
6
|
let(:roles) { [role] }
|
7
|
-
let(:order) {
|
7
|
+
let(:order) { Spree::Order.new }
|
8
8
|
let(:payment) { mock_model(Spree::Payment) }
|
9
9
|
let(:variant) { mock_model(Spree::Variant, :name => 'test-variant') }
|
10
10
|
|
@@ -18,7 +18,6 @@ describe Spree::CheckoutController do
|
|
18
18
|
role.stub(:ability).and_return(true)
|
19
19
|
user.stub(:last_incomplete_spree_order).and_return(nil)
|
20
20
|
controller.stub(:load_order).and_return(true)
|
21
|
-
|
22
21
|
controller.stub(:ensure_order_not_completed).and_return(true)
|
23
22
|
controller.stub(:ensure_checkout_allowed).and_return(true)
|
24
23
|
controller.stub(:ensure_sufficient_stock_lines).and_return(true)
|
@@ -36,6 +35,10 @@ describe Spree::CheckoutController do
|
|
36
35
|
order.stub(:update_attributes).with('object_params').and_return(false)
|
37
36
|
@payments = [payment]
|
38
37
|
@payments.stub(:reload).and_return(true)
|
38
|
+
@payments.stub(:completed).and_return([])
|
39
|
+
@payments.stub(:valid).and_return([])
|
40
|
+
@payment_method = mock_model(Spree::PaymentMethod, :type => 'Spree::PaymentMethod::UnifiedPaymentMethod')
|
41
|
+
payment.stub(:payment_method).and_return(@payment_method)
|
39
42
|
order.stub(:payments).and_return(@payments)
|
40
43
|
order.stub(:next).and_return(true)
|
41
44
|
order.stub(:completed?).and_return(false)
|
@@ -49,7 +52,6 @@ describe Spree::CheckoutController do
|
|
49
52
|
|
50
53
|
context 'if payment state' do
|
51
54
|
before do
|
52
|
-
@payment_method = mock_model(Spree::PaymentMethod, :type => 'Spree::PaymentMethod::UnifiedPaymentMethod')
|
53
55
|
@payment_method.stub(:is_a?).with(Spree::PaymentMethod::UnifiedPaymentMethod).and_return(true)
|
54
56
|
end
|
55
57
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_unified_payment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Manish Kangia
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2014-03-
|
19
|
+
date: 2014-03-13 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: spree_core
|