alchemy-appsignal 1.0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 06c1a587210b28b43e2c133d37a48ab9bdac99fa847deb8ee74002126596bc3c
4
+ data.tar.gz: 3419690c800d14f89c7f4fa88f6014d0deea4e2c1205f6142d08a05253491ad9
5
+ SHA512:
6
+ metadata.gz: 7c966c52204180b920dc9cf3250a872a550c1753ab5255d235612f51514a8daa274b6279d4b2fc21006dc685be70a67c75f4130bb908a48c49bf8bd3dc2fc646
7
+ data.tar.gz: 1b0c2062d5dd44c7a32f36efcfe13884ba46594fda5b4c68d1017e3e0a0a8230a9e8688d11edfa85792faf607e843e9fc9c8109182add8193ae3433bfae2ffca
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2025 Thomas von Deyen
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,16 @@
1
+ [![Tests](https://github.com/AlchemyCMS/alchemy-appsignal/actions/workflows/test.yml/badge.svg)](https://github.com/AlchemyCMS/alchemy-appsignal/actions/workflows/test.yml)
2
+
3
+ # Alchemy::Appsignal
4
+ [AppSignal](https://www.appsignal.com) error reporting extension for AlchemyCMS.
5
+
6
+ ## Installation
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'alchemy-appsignal'
11
+ ```
12
+
13
+ And then execute:
14
+ ```bash
15
+ $ bundle
16
+ ```
data/Rakefile ADDED
@@ -0,0 +1,20 @@
1
+ require "bundler/setup"
2
+ require "bundler/gem_tasks"
3
+
4
+ require "rspec/core"
5
+ require "rspec/core/rake_task"
6
+
7
+ RSpec::Core::RakeTask.new(:spec)
8
+
9
+ task default: :spec
10
+
11
+ require "github_changelog_generator/task"
12
+ require "alchemy/appsignal/version"
13
+
14
+ namespace :changelog do
15
+ GitHubChangelogGenerator::RakeTask.new :update do |config|
16
+ config.user = "AlchemyCMS"
17
+ config.project = "alchemy-appsignal"
18
+ config.future_release = "v#{Alchemy::Appsignal::VERSION}"
19
+ end
20
+ end
@@ -0,0 +1,11 @@
1
+ require_relative "../error_tracking/appsignal_handler"
2
+
3
+ module Alchemy
4
+ module Appsignal
5
+ class Engine < ::Rails::Engine
6
+ initializer "alchemy.appsignal" do
7
+ Alchemy::ErrorTracking.notification_handler = Alchemy::ErrorTracking::AppsignalHandler
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ module Alchemy
2
+ module Appsignal
3
+ VERSION = "1.0.0"
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ require "appsignal"
2
+ require "alchemy_cms"
3
+ require "alchemy/appsignal/engine"
4
+
5
+ module Alchemy
6
+ module Appsignal
7
+ # Your code goes here...
8
+ end
9
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "alchemy/error_tracking"
4
+
5
+ module Alchemy
6
+ module ErrorTracking
7
+ class AppsignalHandler < BaseHandler
8
+ def self.call(exception)
9
+ return if Rails.env.local?
10
+
11
+ ::Appsignal.report_error(exception)
12
+ end
13
+ end
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,126 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: alchemy-appsignal
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Thomas von Deyen
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: alchemy_cms
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: 4.6.7
19
+ - - "<"
20
+ - !ruby/object:Gem::Version
21
+ version: '9'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: 4.6.7
29
+ - - "<"
30
+ - !ruby/object:Gem::Version
31
+ version: '9'
32
+ - !ruby/object:Gem::Dependency
33
+ name: appsignal
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - "~>"
37
+ - !ruby/object:Gem::Version
38
+ version: '4.5'
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - "~>"
44
+ - !ruby/object:Gem::Version
45
+ version: '4.5'
46
+ - !ruby/object:Gem::Dependency
47
+ name: github_changelog_generator
48
+ requirement: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '1.16'
53
+ type: :development
54
+ prerelease: false
55
+ version_requirements: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '1.16'
60
+ - !ruby/object:Gem::Dependency
61
+ name: sqlite3
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '2.6'
67
+ type: :development
68
+ prerelease: false
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '2.6'
74
+ - !ruby/object:Gem::Dependency
75
+ name: rspec-rails
76
+ requirement: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '7.1'
81
+ type: :development
82
+ prerelease: false
83
+ version_requirements: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '7.1'
88
+ description: Adds a AppSignal error notifier to AlchemyCMS.
89
+ email:
90
+ - thomas@vondeyen.com
91
+ executables: []
92
+ extensions: []
93
+ extra_rdoc_files: []
94
+ files:
95
+ - LICENSE
96
+ - README.md
97
+ - Rakefile
98
+ - lib/alchemy/appsignal.rb
99
+ - lib/alchemy/appsignal/engine.rb
100
+ - lib/alchemy/appsignal/version.rb
101
+ - lib/alchemy/error_tracking/appsignal_handler.rb
102
+ homepage: https://alchemy-cms.com
103
+ licenses:
104
+ - MIT
105
+ metadata:
106
+ homepage_uri: https://alchemy-cms.com
107
+ source_code_uri: https://github.com/AlchemyCMS/alchemy-appsignal
108
+ changelog_uri: https://github.com/AlchemyCMS/alchemy-appsignal/tree/main/CHANGELOG.md
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubygems_version: 3.6.7
124
+ specification_version: 4
125
+ summary: Alchemy AppSignal error notifier.
126
+ test_files: []