solidus_support 0.10.1 → 0.10.3

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: b5b49a7bd37ef30d39bd7c4912e32a9e15af56b21910c196163fe9ede1f62ffd
4
- data.tar.gz: 74c5eb50c814a2ad709b0f80cdc7e6a2fe4a03c0cf902217b61de017d15a7dfc
3
+ metadata.gz: a3b8268a446799d2154688de5602aef63f7b5c2317c8584f4cf8f38cf30d3ce8
4
+ data.tar.gz: da32754eaa89c23b6938d6d1885f17b7d9718f58b32ffdcb10037a6aeb1dd3c5
5
5
  SHA512:
6
- metadata.gz: 1b8607fae6786a81b7f004c6348edce3e30a0eb58720061d31bb3f7770c8eb3b2943770189ab0e5685953cf8c8d78c42e043e15ff356d0e6b4ab2ddf838ce967
7
- data.tar.gz: '05971f303743131406068faf1654234647994019245385ada4ca4917bb0fb6f14cb42ebb2c102ca13a4a50ed8edfed9db78603942cdd554bba6db2aef4cc78fa'
6
+ metadata.gz: 58003ca1bf85e2a62b50bafcb6352b726aaa2ec1bbba022b309796311440ee73d286d1e03ba6016a4d320f825aac8d38788fe07e7bbf51fe0f11d027c6f71251
7
+ data.tar.gz: 64e5be70aeb42c9173c6447cb5cd10d8c0aa155fb015c0b75c6c6236b790746046b66d91e898c2e8956c9b86ed395a18e5ebeca54fab56d4f21f19aaf3551375
data/Gemfile CHANGED
@@ -12,7 +12,7 @@ when 'mysql'
12
12
  when 'postgresql'
13
13
  gem 'pg'
14
14
  else
15
- gem 'sqlite3'
15
+ gem 'sqlite3', '~> 1.4'
16
16
  end
17
17
 
18
18
  gemspec
@@ -18,6 +18,7 @@ module SolidusSupport
18
18
  enable_solidus_engine_support('backend')
19
19
  enable_solidus_engine_support('frontend')
20
20
  enable_solidus_engine_support('api')
21
+ enable_solidus_engine_support('admin')
21
22
  end
22
23
  end
23
24
 
@@ -52,7 +53,7 @@ module SolidusSupport
52
53
  # existing classes.
53
54
  def load_solidus_decorators_from(path)
54
55
  path.glob('**/*.rb') do |decorator_path|
55
- require_dependency(decorator_path)
56
+ load(decorator_path)
56
57
  end
57
58
  end
58
59
 
@@ -109,8 +110,10 @@ module SolidusSupport
109
110
  if SolidusSupport.send(:"#{engine}_available?")
110
111
  decorators_path = root.join("lib/decorators/#{engine}")
111
112
  controllers_path = root.join("lib/controllers/#{engine}")
113
+ components_path = root.join("lib/components/#{engine}")
112
114
  config.autoload_paths += decorators_path.glob('*')
113
115
  config.autoload_paths << controllers_path if controllers_path.exist?
116
+ config.autoload_paths << components_path if components_path.exist?
114
117
 
115
118
  engine_context = self
116
119
  config.to_prepare do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusSupport
4
- VERSION = '0.10.1'
4
+ VERSION = '0.10.3'
5
5
  end
@@ -80,5 +80,9 @@ module SolidusSupport
80
80
  def api_available?
81
81
  defined?(Spree::Api::Engine)
82
82
  end
83
+
84
+ def admin_available?
85
+ defined?(SolidusAdmin::Engine)
86
+ end
83
87
  end
84
88
  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.1
4
+ version: 0.10.3
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-12-27 00:00:00.000000000 Z
12
+ date: 2024-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  requirements: []
183
- rubygems_version: 3.4.10
183
+ rubygems_version: 3.5.22
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Common runtime helpers for Solidus extensions.