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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d015fdadf3dd41148e17b69ff2432090071c998
4
- data.tar.gz: cf60f2cdfa6b33eccb82886b942a23b3253a5557
3
+ metadata.gz: c2ca34551a14f2ecff7069245c00c6ad081dbfc5
4
+ data.tar.gz: 61c04a6fe30136a04a6df1457828747b7306d3aa
5
5
  SHA512:
6
- metadata.gz: dbd5d9fc8a47b9470a406e28e8f7427ab0c005893c6179e908d50e6310f375216a2c933a4d56a26b5695beb8a5a46ed2e2996ec34caeccceb9c8d41eb44affc9
7
- data.tar.gz: 2d86cd376c2341b82ca020ed126c4633151d99918775863c2223bcb4e6da88259f9e5dcf80d5ed8a18cb02fcc50949e8bb4a0800c0929d0d34b441e3457bbe95
6
+ metadata.gz: 0f3778b6bbfccc251161805b5cb2d1e2eac75bb583c1a6ea8bc93831871f434d809c228fbed5be20b2bf05547a64562d5c6b608a8565b029991a9b184b4aef0b
7
+ data.tar.gz: d69c079acf67ac53feb8a2737b9dceb50ece535ec25750698496ec9a3cf0d775ee28c7a17d1ee7d3705f25b9d69922733ca44e66578caa0506bd58810debe8b6
@@ -12,7 +12,7 @@ module Spree
12
12
  end
13
13
 
14
14
  def partial_name
15
- 'gateway'
15
+ deprecated_method_type_override || 'gateway'
16
16
  end
17
17
 
18
18
  def supports?(source)
@@ -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
@@ -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
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  def self.solidus_version
3
- "2.3.0.beta1"
3
+ "2.3.0.rc1"
4
4
  end
5
5
 
6
6
  def self.solidus_gem_version
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.beta1
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-12 00:00:00.000000000 Z
11
+ date: 2017-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant