solidus_support 0.10.0 → 0.10.1

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
  SHA256:
3
- metadata.gz: f926127a9b132f14cb6f7dac4be0e82abec893a44456eccfbe2a004f4c50dfd2
4
- data.tar.gz: 3348e98e62b43f9c0bd09a9edfc1ee7d67df9e747f3d3e2b99f3808f2c1c3b37
3
+ metadata.gz: b5b49a7bd37ef30d39bd7c4912e32a9e15af56b21910c196163fe9ede1f62ffd
4
+ data.tar.gz: 74c5eb50c814a2ad709b0f80cdc7e6a2fe4a03c0cf902217b61de017d15a7dfc
5
5
  SHA512:
6
- metadata.gz: e6d7a7e0a35333285953d227798f0733ce138c40a1d51f5289ba734c4829603ee6145e5809e9b334afb922e2e6804e5a1cabf631bd03760b10a2c655f2e90775
7
- data.tar.gz: ee5ca26e9dd07f584a40e170a44d084ebd88072527cf5f3b118615f60fcc9c325f028c8ec71a776a50deb89e3ced6f1e3d3265455f5486a246c37daea2bb4a44
6
+ metadata.gz: 1b8607fae6786a81b7f004c6348edce3e30a0eb58720061d31bb3f7770c8eb3b2943770189ab0e5685953cf8c8d78c42e043e15ff356d0e6b4ab2ddf838ce967
7
+ data.tar.gz: '05971f303743131406068faf1654234647994019245385ada4ca4917bb0fb6f14cb42ebb2c102ca13a4a50ed8edfed9db78603942cdd554bba6db2aef4cc78fa'
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SolidusSupport
4
+ class << self
5
+ def deprecator
6
+ @deprecator ||= ActiveSupport::Deprecation.new(Gem::Version.new('1.0'), 'SolidusSupport')
7
+ end
8
+
9
+ def solidus_deprecator
10
+ Spree.solidus_gem_version >= Gem::Version.new('4.2') ? Spree.deprecator : Spree::Deprecation
11
+ end
12
+ end
13
+ end
@@ -3,7 +3,7 @@
3
3
  module SolidusSupport
4
4
  module EngineExtensions
5
5
  include ActiveSupport::Deprecation::DeprecatedConstantAccessor
6
- deprecate_constant 'Decorators', 'SolidusSupport::EngineExtensions'
6
+ deprecate_constant 'Decorators', 'SolidusSupport::EngineExtensions', deprecator: SolidusSupport.deprecator
7
7
 
8
8
  def self.included(engine)
9
9
  engine.extend ClassMethods
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusSupport
4
- VERSION = '0.10.0'
4
+ VERSION = '0.10.1'
5
5
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'solidus_support/version'
4
+ require 'solidus_support/deprecator'
4
5
  require 'solidus_support/migration'
5
6
  require 'solidus_support/legacy_event_compat'
6
7
  require 'solidus_support/engine_extensions'
@@ -8,14 +9,6 @@ require 'solidus_core'
8
9
 
9
10
  module SolidusSupport
10
11
  class << self
11
- def deprecator
12
- @deprecator ||= ActiveSupport::Deprecation.new(Gem::Version.new('1.0'), 'SolidusSupport')
13
- end
14
-
15
- def solidus_deprecator
16
- Spree.solidus_gem_version >= Gem::Version.new('4.2') ? Spree.deprecator : Spree::Deprecation
17
- end
18
-
19
12
  def solidus_gem_version
20
13
  deprecator.warn <<-WARN.squish, caller
21
14
  SolidusSupport.solidus_gem_version is deprecated and will be removed
@@ -14,7 +14,7 @@ module DummyApp
14
14
  class Application < ::Rails::Application
15
15
  config.eager_load = false
16
16
  config.paths['config/database'] = File.expand_path('dummy_app/database.yml', __dir__)
17
- if ActiveRecord::VERSION::MAJOR >= 7
17
+ if ActiveRecord::VERSION::MAJOR >= 7 && ActiveRecord::VERSION::MINOR < 1
18
18
  config.active_record.legacy_connection_handling = false
19
19
  end
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Hawthorn
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-10-06 00:00:00.000000000 Z
12
+ date: 2023-12-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -144,6 +144,7 @@ files:
144
144
  - bin/console
145
145
  - bin/setup
146
146
  - lib/solidus_support.rb
147
+ - lib/solidus_support/deprecator.rb
147
148
  - lib/solidus_support/engine_extensions.rb
148
149
  - lib/solidus_support/legacy_event_compat.rb
149
150
  - lib/solidus_support/legacy_event_compat/bus.rb
@@ -179,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
180
  - !ruby/object:Gem::Version
180
181
  version: '0'
181
182
  requirements: []
182
- rubygems_version: 3.3.23
183
+ rubygems_version: 3.4.10
183
184
  signing_key:
184
185
  specification_version: 4
185
186
  summary: Common runtime helpers for Solidus extensions.