spree_core 3.0.0.rc3 → 3.0.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8039d6ead846bc4fa735aa26d8388a62d5c86a3c
4
- data.tar.gz: 5ee17fff4d41214804b660bbf57f528d8f65855a
3
+ metadata.gz: 4cbd5f726167f74ffe46561c736107c5da112b96
4
+ data.tar.gz: ba1d064375e342db1715d81d5405977dec6cf607
5
5
  SHA512:
6
- metadata.gz: 8ed7452b11a0af1096c325d9f63eaf74bc928e82acce258d3fa5e46d5a9cc3b0d3a5a5251bb84ebb1e7732f1ea4038ed06dee1c0f83476e0055df4f69bec9f7d
7
- data.tar.gz: 6d904ef3437a05af9bbe5355a566f9659c5828ccf19d57e0a1ef0be9829085d47e4129ab8b908fa688fcc2258049168fe021dd253e2f0313b9907b04e55dade8
6
+ metadata.gz: a6f1ee67cf444eecc36036df3237aa6c00b51e882df1a838ec34664f4b7faca7e252acfdced21c2d3a56e2778acc98a4d2c8a0470b0e4335ec540805d76a51d4
7
+ data.tar.gz: 929b702b204003e0e1ce8e90b809285a330b6810deea0e3d610276a9376c203ab4e2bc80d441d1ae229c2796bf5fc39ed8209adb10ce673e04c621fcb58d4a30
@@ -263,7 +263,8 @@ module Spree
263
263
  end
264
264
 
265
265
  def punch_slug
266
- update_column :slug, "#{Time.now.to_i}_#{slug}" # punch slug with date prefix to allow reuse of original
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).select{ |c| c < Spree::ShippingCalculator }
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
@@ -1,5 +1,5 @@
1
1
  module Spree
2
2
  def self.version
3
- "3.0.0.rc3"
3
+ "3.0.0.rc4"
4
4
  end
5
5
  end
@@ -37,7 +37,9 @@ module Spree
37
37
  end
38
38
 
39
39
  before do
40
- allow_any_instance_of(Api::BaseController).to receive(:try_spree_current_user).and_return(Spree.user_class.new)
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, :type => :controller
60
- config.extend Spree::TestingSupport::AuthorizationHelpers::Request, :type => :feature
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.rc3
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-02-23 00:00:00.000000000 Z
11
+ date: 2015-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant