spree_core 3.1.6 → 3.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/spree/order.rb +0 -14
- data/lib/spree/core/version.rb +1 -1
- data/spree_core.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e678a0621d7fbc38a51385f2e14dac5ac4cbe8a
|
4
|
+
data.tar.gz: 8939c8fea96cfb908fe5e464f13fc879cc5d817f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00de72307c971846acb3fa7ec1b95aff45b46c0c0a2ae7025fa8dea3e4b00b9a31f95dfe97a389a330c566025887725d2218e08e2c49921a23bf88c77b34a4a0
|
7
|
+
data.tar.gz: a6fee69a508d8f3b7ee667c9595f70639b98e361afd16cc11e3aa648c8b58ee0df38c17dfc76826c1f92965b461201d7b9fff57584181d6da7a95b557858ea1a
|
data/app/models/spree/order.rb
CHANGED
@@ -610,20 +610,6 @@ module Spree
|
|
610
610
|
|
611
611
|
private
|
612
612
|
|
613
|
-
def create_store_credit_payment(payment_method, credit, amount)
|
614
|
-
payments.create!(
|
615
|
-
source: credit,
|
616
|
-
payment_method: payment_method,
|
617
|
-
amount: amount,
|
618
|
-
state: 'checkout',
|
619
|
-
response_code: credit.generate_authorization_code
|
620
|
-
)
|
621
|
-
end
|
622
|
-
|
623
|
-
def store_credit_amount(credit, total)
|
624
|
-
[credit.amount_remaining, total].min
|
625
|
-
end
|
626
|
-
|
627
613
|
def link_by_email
|
628
614
|
self.email = user.email if self.user
|
629
615
|
end
|
data/lib/spree/core/version.rb
CHANGED
data/spree_core.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.add_dependency 'awesome_nested_set', '~> 3.0.1'
|
25
25
|
s.add_dependency 'carmen', '~> 1.0.0'
|
26
26
|
s.add_dependency 'cancancan', '~> 1.10.1'
|
27
|
-
s.add_dependency 'deface', '~> 1.0
|
27
|
+
s.add_dependency 'deface', '~> 1.0'
|
28
28
|
s.add_dependency 'ffaker', '~> 2.2.0'
|
29
29
|
s.add_dependency 'font-awesome-rails', '~> 4.0'
|
30
30
|
s.add_dependency 'friendly_id', '~> 5.1.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|
@@ -92,14 +92,14 @@ dependencies:
|
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 1.0
|
95
|
+
version: '1.0'
|
96
96
|
type: :runtime
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 1.0
|
102
|
+
version: '1.0'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: ffaker
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -966,7 +966,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
966
966
|
version: 1.8.23
|
967
967
|
requirements: []
|
968
968
|
rubyforge_project:
|
969
|
-
rubygems_version: 2.6.
|
969
|
+
rubygems_version: 2.6.12
|
970
970
|
signing_key:
|
971
971
|
specification_version: 4
|
972
972
|
summary: The bare bones necessary for Spree.
|