spree_cod_payment 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/spree/{payment_method/payment_method_decorator.rb → payment_method_decorator.rb} +2 -2
- data/app/views/spree/checkout/payment/_cod_payment.html.erb +3 -0
- data/config/locales/el.yml +5 -0
- data/config/locales/en.yml +5 -0
- data/lib/spree_cod_payment/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39ecf0af456a36d46a4b40b58c816cdccfcae92163a2c124c112df914b6b9911
|
4
|
+
data.tar.gz: 7966157fcf2cb703dda249680996a8788f39d1bbdd608395b18953be97335f6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf8a61dcd4ff396d30dcc8877acc70e9f1105f5b87be01e08e1b7bb33207bf561a80151aaa0bb061f7b6fec8d21fea71716777665f13e60963d8bc6b20e2934d
|
7
|
+
data.tar.gz: c6cb0dccdca0e90d0c24d7a57607e4264742383f42d16633d764f45f9e99f71ee546fd96164c25cb64ec76f4743e8254d7c7bf850468033599584243dbd9dfcd
|
data/app/models/spree/{payment_method/payment_method_decorator.rb → payment_method_decorator.rb}
RENAMED
@@ -1,9 +1,9 @@
|
|
1
1
|
module Spree
|
2
2
|
module PaymentMethodDecorator
|
3
3
|
def available_for_order?(order)
|
4
|
-
return super
|
4
|
+
return cod_payment? && super if order.shipping_method&.cod?
|
5
5
|
|
6
|
-
cod_payment? && super
|
6
|
+
!cod_payment? && super
|
7
7
|
end
|
8
8
|
|
9
9
|
def cod_payment?
|
data/config/locales/el.yml
CHANGED
data/config/locales/en.yml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_cod_payment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OlympusOne
|
@@ -89,12 +89,13 @@ files:
|
|
89
89
|
- README.md
|
90
90
|
- Rakefile
|
91
91
|
- app/models/spree/payment_method/cod_payment.rb
|
92
|
-
- app/models/spree/
|
92
|
+
- app/models/spree/payment_method_decorator.rb
|
93
93
|
- app/views/spree/admin/payment_methods/_cod_payment.html.erb
|
94
94
|
- app/views/spree/admin/payment_methods/descriptions/_cod_payment.html.erb
|
95
95
|
- app/views/spree/admin/payments/source_views/_cod_payment.html.erb
|
96
96
|
- app/views/spree/admin/shipping_methods/_cod_form.html.erb
|
97
97
|
- app/views/spree/admin/spree/checkout/payment/_cod_payment.html.erb
|
98
|
+
- app/views/spree/checkout/payment/_cod_payment.html.erb
|
98
99
|
- config/locales/el.yml
|
99
100
|
- config/locales/en.yml
|
100
101
|
- config/routes.rb
|
@@ -109,10 +110,10 @@ licenses:
|
|
109
110
|
- MIT
|
110
111
|
metadata:
|
111
112
|
bug_tracker_uri: https://github.com/olympusone/spree_cod_payment/issues
|
112
|
-
changelog_uri: https://github.com/olympusone/spree_cod_payment/releases/tag/v2.0.
|
113
|
+
changelog_uri: https://github.com/olympusone/spree_cod_payment/releases/tag/v2.0.2
|
113
114
|
documentation_uri: https://github.com/olympusone/spree_cod_payment
|
114
115
|
homepage_uri: https://github.com/olympusone/spree_cod_payment
|
115
|
-
source_code_uri: https://github.com/olympusone/spree_cod_payment/tree/v2.0.
|
116
|
+
source_code_uri: https://github.com/olympusone/spree_cod_payment/tree/v2.0.2
|
116
117
|
rdoc_options: []
|
117
118
|
require_paths:
|
118
119
|
- lib
|