spree_core 3.0.0.rc3 → 3.0.0.rc4
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cbd5f726167f74ffe46561c736107c5da112b96
|
4
|
+
data.tar.gz: ba1d064375e342db1715d81d5405977dec6cf607
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6f1ee67cf444eecc36036df3237aa6c00b51e882df1a838ec34664f4b7faca7e252acfdced21c2d3a56e2778acc98a4d2c8a0470b0e4335ec540805d76a51d4
|
7
|
+
data.tar.gz: 929b702b204003e0e1ce8e90b809285a330b6810deea0e3d610276a9376c203ab4e2bc80d441d1ae229c2796bf5fc39ed8209adb10ce673e04c621fcb58d4a30
|
data/app/models/spree/product.rb
CHANGED
@@ -263,7 +263,8 @@ module Spree
|
|
263
263
|
end
|
264
264
|
|
265
265
|
def punch_slug
|
266
|
-
|
266
|
+
# punch slug with date prefix to allow reuse of original
|
267
|
+
update_column :slug, "#{Time.now.to_i}_#{slug}" unless frozen?
|
267
268
|
end
|
268
269
|
|
269
270
|
def anything_changed?
|
@@ -39,7 +39,8 @@ module Spree
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def self.calculators
|
42
|
-
spree_calculators.send(model_name_without_spree_namespace)
|
42
|
+
spree_calculators.send(model_name_without_spree_namespace)
|
43
|
+
.select { |c| c.to_s.constantize < Spree::ShippingCalculator }
|
43
44
|
end
|
44
45
|
|
45
46
|
# Some shipping methods are only meant to be set via backend
|
data/lib/spree/core/version.rb
CHANGED
@@ -37,7 +37,9 @@ module Spree
|
|
37
37
|
end
|
38
38
|
|
39
39
|
before do
|
40
|
-
|
40
|
+
allow(Spree.user_class).to receive(:find_by).
|
41
|
+
with(hash_including(:spree_api_key)).
|
42
|
+
and_return(Spree.user_class.new)
|
41
43
|
end
|
42
44
|
end
|
43
45
|
|
@@ -56,6 +58,6 @@ module Spree
|
|
56
58
|
end
|
57
59
|
|
58
60
|
RSpec.configure do |config|
|
59
|
-
config.extend Spree::TestingSupport::AuthorizationHelpers::Controller, :
|
60
|
-
config.extend Spree::TestingSupport::AuthorizationHelpers::Request, :
|
61
|
+
config.extend Spree::TestingSupport::AuthorizationHelpers::Controller, type: :controller
|
62
|
+
config.extend Spree::TestingSupport::AuthorizationHelpers::Request, type: :feature
|
61
63
|
end
|
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.0.0.
|
4
|
+
version: 3.0.0.rc4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|