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: 3d9325b228831e2e7ffb7cfff29337c037bac365c832143f5aa708e8016c8efc
4
- data.tar.gz: dc5cc829ca3e14f53b6b7c8ade18c5050cb6ab37f4b72592c9263769c2a9917d
3
+ metadata.gz: 699750da65c3861d4a04cb90c75cf96cab6c8ac3f7342d8be449869d41775b8f
4
+ data.tar.gz: 531eee39a169791c548a41e2e58cdd541d908a429caec30eff80c5184f2efe0e
5
5
  SHA512:
6
- metadata.gz: 75c76a4703059d39b3a5b160ff32e323951c5d01ffd710d660cd53fba5183b2ea233c09c0262ab2f27cd70f36d19f01f91da26f2db2bf692f8efdfe941236797
7
- data.tar.gz: 6dd988431a614d2e92a02a866ebbd36a246aac964cbd917a6760a051dffd04a9a10cd77e16a8ccf1f5d8b305b83e25219110543c551cd697e928b5137501949a
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spree
4
- VERSION = "2.9.3"
4
+ VERSION = "2.9.4"
5
5
 
6
6
  def self.solidus_version
7
7
  VERSION
@@ -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.3
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: 2019-10-23 00:00:00.000000000 Z
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.6
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.