solidus_core 2.3.0.beta1 → 2.3.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of solidus_core might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/models/spree/payment_method/credit_card.rb +1 -1
- data/app/models/spree/payment_method.rb +15 -3
- data/config/locales/en.yml +4 -0
- data/lib/spree/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2ca34551a14f2ecff7069245c00c6ad081dbfc5
|
4
|
+
data.tar.gz: 61c04a6fe30136a04a6df1457828747b7306d3aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f3778b6bbfccc251161805b5cb2d1e2eac75bb583c1a6ea8bc93831871f434d809c228fbed5be20b2bf05547a64562d5c6b608a8565b029991a9b184b4aef0b
|
7
|
+
data.tar.gz: d69c079acf67ac53feb8a2737b9dceb50ece535ec25750698496ec9a3cf0d775ee28c7a17d1ee7d3705f25b9d69922733ca44e66578caa0506bd58810debe8b6
|
@@ -156,10 +156,22 @@ module Spree
|
|
156
156
|
# The view that represents your payment method on orders in the backend
|
157
157
|
#
|
158
158
|
def partial_name
|
159
|
-
type.demodulize.downcase
|
159
|
+
deprecated_method_type_override || type.demodulize.downcase
|
160
|
+
end
|
161
|
+
|
162
|
+
# :nodoc:
|
163
|
+
# If method_type has been overridden, call it and return the value, otherwise return nil
|
164
|
+
def deprecated_method_type_override
|
165
|
+
if method(:method_type).owner != Spree::PaymentMethod
|
166
|
+
Spree::Deprecation.warn "overriding PaymentMethod#method_type is deprecated and will be removed from Solidus 3.0 (override partial_name instead)", caller
|
167
|
+
method_type
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
def method_type
|
172
|
+
Spree::Deprecation.warn "method_type is deprecated and will be removed from Solidus 3.0 (use partial_name instead)", caller
|
173
|
+
partial_name
|
160
174
|
end
|
161
|
-
alias_method :method_type, :partial_name
|
162
|
-
deprecate method_type: :partial_name, deprecator: Spree::Deprecation
|
163
175
|
|
164
176
|
def payment_profiles_supported?
|
165
177
|
false
|
data/config/locales/en.yml
CHANGED
@@ -496,6 +496,10 @@ en:
|
|
496
496
|
spree/payment_method:
|
497
497
|
one: Payment Method
|
498
498
|
other: Payment Methods
|
499
|
+
spree/payment_method/check: Check Payments
|
500
|
+
spree/payment_method/store_credit: Store Credit Payments
|
501
|
+
spree/payment_method/bogus_credit_card: Bogus Credit Card Payments
|
502
|
+
spree/payment_method/simple_bogus_credit_card: Simple Bogus Credit Card Payments
|
499
503
|
spree/price:
|
500
504
|
one: Price
|
501
505
|
other: Prices
|
data/lib/spree/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.0.
|
4
|
+
version: 2.3.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|