solidus_support 0.10.1 → 0.10.2

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: 9a0741932321e5bc770d8d9fa4c4d178eaa71268ca2ffafddb03a269d48bb9ee
4
+ data.tar.gz: 32b5a77f1610a7695a32a9bfe9ebf1ea632d14aefce3a7552c6ecbe09f881e33
5
5
  SHA512:
6
- metadata.gz: 1b8607fae6786a81b7f004c6348edce3e30a0eb58720061d31bb3f7770c8eb3b2943770189ab0e5685953cf8c8d78c42e043e15ff356d0e6b4ab2ddf838ce967
7
- data.tar.gz: '05971f303743131406068faf1654234647994019245385ada4ca4917bb0fb6f14cb42ebb2c102ca13a4a50ed8edfed9db78603942cdd554bba6db2aef4cc78fa'
6
+ metadata.gz: 0d05ddfde94137a189d0b11dd88774c753d271142e91df0576d886a0e36268f6c59430e880dbc1eb5249418d464f9805a17b4dd56fcc65081dff44ef61350726
7
+ data.tar.gz: 4322be2a95d7e24ad6c41b9f789d71d092aa8847b795182bf8d84a776fbaada9452f3e330416955d3bd06b2d23ba6d2b978aab171803bfa3c36c7342ee3b0804
@@ -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
 
@@ -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.2'
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.2
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-04-18 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.3
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Common runtime helpers for Solidus extensions.