spree_core 3.2.4 → 3.2.5
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/product.rb +1 -1
- data/lib/spree/core/version.rb +1 -1
- data/lib/spree/testing_support/common_rake.rb +2 -0
- data/spree_core.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 243e933c3a06a8f8c02f31d845eeae521a606f73
|
4
|
+
data.tar.gz: d179eb93766faa8329e114f2f9dcfaf1764aa632
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3de5dc5e16ce8f1e9da138ac71c3c29f441af13bf0d74deee6202f53d2dc19e9138d0b1b4cfa39895f1c2a555f032f739c691d54e8b8ef0f5af122d8b62f2802
|
7
|
+
data.tar.gz: 2f407e5f4a72493f978ebae47988fea0b1d0edcf5caccac949cb35a947b2a418b985a5fc38187d6a8ddf0dab34eb116b625f3c5fcaae227c8cd83f84016ae69a
|
data/app/models/spree/product.rb
CHANGED
@@ -105,7 +105,7 @@ module Spree
|
|
105
105
|
validates :price, if: proc { Spree::Config[:require_master_price] }
|
106
106
|
end
|
107
107
|
|
108
|
-
validates :slug,
|
108
|
+
validates :slug, presence: true, uniqueness: { allow_blank: true }
|
109
109
|
validate :discontinue_on_must_be_later_than_available_on, if: -> { available_on && discontinue_on }
|
110
110
|
|
111
111
|
attr_accessor :option_values_hash
|
data/lib/spree/core/version.rb
CHANGED
@@ -3,6 +3,7 @@ unless defined?(Spree::InstallGenerator)
|
|
3
3
|
end
|
4
4
|
|
5
5
|
require 'generators/spree/dummy/dummy_generator'
|
6
|
+
require 'rails'
|
6
7
|
|
7
8
|
desc "Generates a dummy app for testing"
|
8
9
|
namespace :common do
|
@@ -11,6 +12,7 @@ namespace :common do
|
|
11
12
|
require ENV['LIB_NAME'].to_s
|
12
13
|
|
13
14
|
ENV['RAILS_ENV'] = 'test'
|
15
|
+
Rails.env = 'test'
|
14
16
|
|
15
17
|
Spree::DummyGenerator.start ["--lib_name=#{ENV['LIB_NAME']}", "--quiet"]
|
16
18
|
Spree::InstallGenerator.start ["--lib_name=#{ENV['LIB_NAME']}", "--auto-accept", "--migrate=false", "--seed=false", "--sample=false", "--quiet", "--user_class=#{args[:user_class]}"]
|
data/spree_core.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
|
|
29
29
|
s.add_dependency 'font-awesome-rails', '~> 4.0'
|
30
30
|
s.add_dependency 'friendly_id', '~> 5.1.0'
|
31
31
|
s.add_dependency 'highline', '~> 1.6.18' # Necessary for the install generator
|
32
|
-
s.add_dependency 'kaminari', '~> 0.
|
32
|
+
s.add_dependency 'kaminari', '~> 1.0.1'
|
33
33
|
s.add_dependency 'monetize', '~> 1.1'
|
34
34
|
s.add_dependency 'paperclip', '~> 4.3.0'
|
35
35
|
s.add_dependency 'paranoia', '~> 2.2.0.pre'
|
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.2.
|
4
|
+
version: 3.2.5
|
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-09-
|
11
|
+
date: 2017-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: 1.0.1
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: 1.0.1
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: monetize
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|