alchemy-sentry 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6c8954f282f8749325544fd7d379aa49b39e4fc82d6522e33739dc98d9625788
4
+ data.tar.gz: 75816fd39a081439d131f1b85dca31557ef539f171c4be9d88cd0ef3386b0c67
5
+ SHA512:
6
+ metadata.gz: b55bb7f378b9440ff4629a82c10b7d36648e060424d8e1aa8686a545a2a9bd6d1f6e01b4b28daf289775ec745e7c3c6466e83bea1efc1328d96e56c6a7c8650d
7
+ data.tar.gz: 6ba0ffd1b319f5f33a9c7ef0d3adf12f1b08b7ea1aeb5c5f5cb2d482c8e09de3aee323b112a7e244d68976f45b79a06b65ff300b38e274fb3971a0a960e30c30
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2022 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,14 @@
1
+ # Alchemy::Sentry
2
+ Sentry error reporting extension for AlchemyCMS.
3
+
4
+ ## Installation
5
+ Add this line to your application's Gemfile:
6
+
7
+ ```ruby
8
+ gem 'alchemy-sentry'
9
+ ```
10
+
11
+ And then execute:
12
+ ```bash
13
+ $ bundle
14
+ ```
data/Rakefile ADDED
@@ -0,0 +1,26 @@
1
+ require "bundler/setup"
2
+
3
+ load "rails/tasks/statistics.rake"
4
+
5
+ require "bundler/gem_tasks"
6
+
7
+ require "rake/testtask"
8
+
9
+ Rake::TestTask.new(:test) do |t|
10
+ t.libs << "test"
11
+ t.pattern = "test/**/*_test.rb"
12
+ t.verbose = false
13
+ end
14
+
15
+ task default: :test
16
+
17
+ require "github_changelog_generator/task"
18
+ require "alchemy/sentry/version"
19
+
20
+ namespace :changelog do
21
+ GitHubChangelogGenerator::RakeTask.new :update do |config|
22
+ config.user = "AlchemyCMS"
23
+ config.project = "alchemy-sentry"
24
+ config.future_release = "v#{Alchemy::Sentry::VERSION}"
25
+ end
26
+ 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 SentryHandler < BaseHandler
8
+ def self.call(exception)
9
+ return if ["development", "test"].include?(Rails.env)
10
+
11
+ ::Sentry.capture_exception(exception)
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,11 @@
1
+ require_relative "../error_tracking/sentry_handler"
2
+
3
+ module Alchemy
4
+ module Sentry
5
+ class Engine < ::Rails::Engine
6
+ initializer "alchemy.sentry" do
7
+ Alchemy::ErrorTracking.notification_handler = Alchemy::ErrorTracking::SentryHandler
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ module Alchemy
2
+ module Sentry
3
+ VERSION = "1.0.0"
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ require "sentry-rails"
2
+ require "alchemy_cms"
3
+ require "alchemy/sentry/engine"
4
+
5
+ module Alchemy
6
+ module Sentry
7
+ # Your code goes here...
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: alchemy-sentry
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Thomas von Deyen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-09-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: alchemy_cms
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.6.7
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '8'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 4.6.7
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '8'
33
+ - !ruby/object:Gem::Dependency
34
+ name: sentry-ruby
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '5.0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '5.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: sentry-rails
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '5.0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '5.0'
61
+ description: Adds a Sentry error notifier to AlchemyCMS.
62
+ email:
63
+ - thomas@vondeyen.com
64
+ executables: []
65
+ extensions: []
66
+ extra_rdoc_files: []
67
+ files:
68
+ - LICENSE
69
+ - README.md
70
+ - Rakefile
71
+ - lib/alchemy/error_tracking/sentry_handler.rb
72
+ - lib/alchemy/sentry.rb
73
+ - lib/alchemy/sentry/engine.rb
74
+ - lib/alchemy/sentry/version.rb
75
+ homepage: https://alchemy-cms.com
76
+ licenses:
77
+ - MIT
78
+ metadata:
79
+ homepage_uri: https://alchemy-cms.com
80
+ source_code_uri: https://github.com/AlchemyCMS/alchemy-sentry
81
+ changelog_uri: https://github.com/AlchemyCMS/alchemy-sentry/tree/main/CHANGELOG.md
82
+ post_install_message:
83
+ rdoc_options: []
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ requirements: []
97
+ rubygems_version: 3.4.17
98
+ signing_key:
99
+ specification_version: 4
100
+ summary: Alchemy Sentry error notifier.
101
+ test_files: []