alchemy-solid_errors 0.1.1 → 0.3.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: 262cd5285160e521308e6f64cf704d9a772a51bfd92242f95c98a975b151106f
4
- data.tar.gz: c6a849d10bc0778a1fe574949433f51444e2829fbd2c40372ded61ceb8bed80c
3
+ metadata.gz: e7caf3983050ea6ea1ab12690dfe724f54896887c439e0b3be69ce4586b25ac9
4
+ data.tar.gz: 1ff1096a5a30a8fca7355247d5232be984af7c8ad7388cba75a0f2ac0ffbb3a8
5
5
  SHA512:
6
- metadata.gz: efdbb28e2c3cc328763fd0833315b22563b6b939b8acaddeac6332dcda558bcd0d8816cbef5ef9a0b46ba0dc03a2e1c3803173c9d074c10dcfd2f462923338e9
7
- data.tar.gz: 3f7d18a8a227e86e0c99c4ca0688782d5cde41de244148177fb12c048771e4e0bd967e60f7aa6b8bf9ba6ac298c99de9d4d0bcdaaa115461c42bdb37aebca73d
6
+ metadata.gz: 34ac0ea1ca4f565023eb54c77a497b08aab913a4d8ed3f5dd0453107cb0bdd2c5827e5380e41c9d8311c4b7bf4e663d8ee2654a6f414d90c6d1b934b0d3f9d04
7
+ data.tar.gz: 290411ab1069f8395ea1f3be7ac8c1b532934fcb725153d01a5fab9fa75eea13d72206ac15d476f597502be389e8512fbab29db82c169162c1e6e1ac80bb88f4
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.1"
3
+ VERSION = "0.3.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.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sascha Karnatz
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: 7.2.0
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
- version: '8.1'
21
+ version: '9.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: 7.2.0
29
29
  - - "<"
30
30
  - !ruby/object:Gem::Version
31
- version: '8.1'
31
+ version: '9.0'
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: alchemy_cms
34
34
  requirement: !ruby/object:Gem::Requirement
@@ -38,7 +38,7 @@ dependencies:
38
38
  version: 7.4.0
39
39
  - - "<"
40
40
  - !ruby/object:Gem::Version
41
- version: '8.1'
41
+ version: '8.2'
42
42
  type: :runtime
43
43
  prerelease: false
44
44
  version_requirements: !ruby/object:Gem::Requirement
@@ -48,7 +48,7 @@ dependencies:
48
48
  version: 7.4.0
49
49
  - - "<"
50
50
  - !ruby/object:Gem::Version
51
- version: '8.1'
51
+ version: '8.2'
52
52
  - !ruby/object:Gem::Dependency
53
53
  name: solid_errors
54
54
  requirement: !ruby/object:Gem::Requirement