alchemy-solid_errors 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c09a204a9808ac1af36183102694f839091804e3d0e2c6ac2e9ce9bb8f4355a4
4
- data.tar.gz: 4d3117fe406b678b173938288e6aeafe51d22dcc542d623078a6afb882bc9cd0
3
+ metadata.gz: 548d5ff7bf1510555266d39241cc9a5ef00eae8766d59ffdc1f6ea4523a86c16
4
+ data.tar.gz: df1498be2c17017e2aa326440c0bf09c6ea5333cdd9c1596d618e91f29d1c473
5
5
  SHA512:
6
- metadata.gz: 1857888d7053a75a0224ec0c415f11150e0402e729d394696857767f7468046f1f06b5698db17c3d708eeac0803e18c434940469c35dae41b9b0e58fcf0314c2
7
- data.tar.gz: f8ffcff2e916097213bd0ff044f5dbae8b1cce47ac26679abe10b2c75a51fd263adc6a235e75822a04a3124994e4bc8b5d65e1a1c1b706799c7900c2c843e4cb
6
+ metadata.gz: 03cee31fc84bd14534b984dc417d5efefb3139f017038a04225e77049718c758ab2e0e5900859eefc108c2a81522bceaf53eeb48500734073ae7446144abad4c
7
+ data.tar.gz: 21fe05c5c2e8b7fb6cc9ba8cabc7590fe8b821f6f73ba3f4181f0af1a7d4a9eefd48922d46bc7c3e39855f56210125b57c4e7d1b6fc5ffbdcde6c39a286bf6af
data/README.md CHANGED
@@ -14,6 +14,17 @@ Add the gem to your Gemfile and restart the application.
14
14
  $ bundle add alchemy-solid_errors
15
15
  ```
16
16
 
17
+ Follow the installation instructions of [Solid Errors](https://github.com/fractaledmind/solid_errors?tab=readme-ov-file#installation).
18
+ You have to run the Solid Errors generator:
19
+
20
+ ```shell
21
+ $ rails generate solid_errors:install
22
+ ```
23
+
24
+ > [!NOTE]
25
+ > This will add all necessary configurations for production. The gem will only show the menu item if Solid Errors is enabled in the environment.
26
+ > If you want to use this gem in development, you have to add the configuration manually to your `config/environments/development.rb`.
27
+
17
28
  ## Release a new version
18
29
 
19
30
  First, bump the version with [gem-release](https://bundler.io/guides/creating_gem.html#releasing-the-gem):
@@ -1,18 +1,20 @@
1
1
  Rails.application.config.to_prepare do
2
2
  require "alchemy/solid_errors/ability"
3
3
 
4
- Alchemy.register_ability(Alchemy::SolidErrors::Ability)
5
- Alchemy.admin_stylesheets << "alchemy/solid_errors/alchemy-admin.css"
4
+ if SolidErrors.connects_to.present?
5
+ Alchemy.register_ability(Alchemy::SolidErrors::Ability)
6
+ Alchemy.admin_stylesheets << "alchemy/solid_errors/alchemy-admin.css"
6
7
 
7
- Alchemy::Modules.register_module({
8
- name: "errors",
9
- engine_name: "alchemy",
10
- position: 7.1,
11
- navigation: {
12
- name: "modules.errors",
13
- controller: "/alchemy/admin/errors",
14
- action: "index",
15
- icon: "bug"
16
- }
17
- })
8
+ Alchemy::Modules.register_module({
9
+ name: "errors",
10
+ engine_name: "alchemy",
11
+ position: 7.1,
12
+ navigation: {
13
+ name: "modules.errors",
14
+ controller: "/alchemy/admin/errors",
15
+ action: "index",
16
+ icon: "bug"
17
+ }
18
+ })
19
+ end
18
20
  end
@@ -1,5 +1,5 @@
1
1
  module Alchemy
2
2
  module SolidErrors
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy-solid_errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sascha Karnatz
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  requirements: []
196
- rubygems_version: 3.6.9
196
+ rubygems_version: 4.0.3
197
197
  specification_version: 4
198
198
  summary: A simple integration of Solid Errors into AlchemyCMS
199
199
  test_files: []