solidus_core 2.9.3 → 2.9.4
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 699750da65c3861d4a04cb90c75cf96cab6c8ac3f7342d8be449869d41775b8f
|
4
|
+
data.tar.gz: 531eee39a169791c548a41e2e58cdd541d908a429caec30eff80c5184f2efe0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e619f4c7ae92bb314568d335579d55593c6ba73e63f4c1d8e1bfbc68db0768b8e483fc7446a1706aa80d1989ccf5364374abbc65b384060e511293519eda3477
|
7
|
+
data.tar.gz: 4a0b76686c143710c4ceec55af1821fef54ae213a43ade809661aad3edccb8b9450bf2c062b0adc3cb4b2bc9f79877c3815d7fde5ff7f990f8eaafcfc627a1f3
|
@@ -58,6 +58,9 @@ module Spree
|
|
58
58
|
|
59
59
|
def setup_assets
|
60
60
|
@lib_name = 'spree'
|
61
|
+
|
62
|
+
empty_directory 'app/assets/images'
|
63
|
+
|
61
64
|
%w{javascripts stylesheets images}.each do |path|
|
62
65
|
empty_directory "vendor/assets/#{path}/spree/frontend" if defined? Spree::Frontend || Rails.env.test?
|
63
66
|
empty_directory "vendor/assets/#{path}/spree/backend" if defined? Spree::Backend || Rails.env.test?
|
@@ -22,6 +22,15 @@ module Spree
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
25
|
+
|
26
|
+
def add_class(name)
|
27
|
+
Spree::Deprecation.warn(
|
28
|
+
'This method is deprecated. ' \
|
29
|
+
"Please use `#{self.class}.add_class_set(#{name.inspect})` instead.",
|
30
|
+
caller,
|
31
|
+
)
|
32
|
+
singleton_class.send(:add_class_set, name)
|
33
|
+
end
|
25
34
|
end
|
26
35
|
end
|
27
36
|
end
|
data/lib/spree/core/version.rb
CHANGED
@@ -4,7 +4,7 @@ require 'spec_helper'
|
|
4
4
|
require 'spree/core/environment_extension'
|
5
5
|
|
6
6
|
RSpec.describe Spree::Core::EnvironmentExtension do
|
7
|
-
let(:base) { Class.new }
|
7
|
+
let(:base) { Class.new { def self.to_s; 'ExampleClass'; end } }
|
8
8
|
subject! { base.include(described_class).new }
|
9
9
|
|
10
10
|
describe '.add_class_set' do
|
@@ -32,4 +32,15 @@ RSpec.describe Spree::Core::EnvironmentExtension do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
35
|
+
|
36
|
+
describe '#add_class' do
|
37
|
+
it 'is deprecated' do
|
38
|
+
expect(Spree::Deprecation).to receive(:warn) do |message, _caller|
|
39
|
+
expect(message).to include('ExampleClass.add_class_set(:foo)')
|
40
|
+
end
|
41
|
+
expect(base).to receive(:add_class_set).with(:foo)
|
42
|
+
|
43
|
+
base.new.add_class(:foo)
|
44
|
+
end
|
45
|
+
end
|
35
46
|
end
|
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.9.
|
4
|
+
version: 2.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|
@@ -1229,7 +1229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1229
1229
|
- !ruby/object:Gem::Version
|
1230
1230
|
version: 1.8.23
|
1231
1231
|
requirements: []
|
1232
|
-
rubygems_version: 3.0.
|
1232
|
+
rubygems_version: 3.0.3
|
1233
1233
|
signing_key:
|
1234
1234
|
specification_version: 4
|
1235
1235
|
summary: Essential models, mailers, and classes for the Solidus e-commerce project.
|