alchemy-airbrake 0.1.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: 9dbcd303a19f1344bfb4ae7c1e1a60a1b854a97206650a47bc74cfc952dce72e
4
+ data.tar.gz: 28ef11733da57f4d45c2a2649cf90e28bd9389e94b8d987258cd591ac205023d
5
+ SHA512:
6
+ metadata.gz: b5d53bf15f9036ead9eb2bff9f28d994f486b8fea5072ca4f7e5c18b6b779882d452e3c720db3c6c5821fa3f69314917571192302f9f3ab8cd2f77c99bc4e0b7
7
+ data.tar.gz: 7e5feda64b1f450363bf1d8d4a2785d9f74316b123740f9a004fe2cde0660358084c493008f0717244253556da1ff97bb1e578ad4a59093fe2fa330491806d35
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2021 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::Airbrake
2
+ Airbrake and Errbit error reporting extension for AlchemyCMS.
3
+
4
+ ## Installation
5
+ Add this line to your application's Gemfile:
6
+
7
+ ```ruby
8
+ gem 'alchemy-airbrake'
9
+ ```
10
+
11
+ And then execute:
12
+ ```bash
13
+ $ bundle
14
+ ```
data/Rakefile ADDED
@@ -0,0 +1,15 @@
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
@@ -0,0 +1,11 @@
1
+ require_relative "../error_tracking/airbrake_handler"
2
+
3
+ module Alchemy
4
+ module Airbrake
5
+ class Engine < ::Rails::Engine
6
+ initializer "alchemy.airbrake" do
7
+ Alchemy::ErrorTracking.notification_handler = Alchemy::ErrorTracking::AirbrakeHandler
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ module Alchemy
2
+ module Airbrake
3
+ VERSION = '0.1.0'
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ require "airbrake"
2
+ require "alchemy_cms"
3
+ require "alchemy/airbrake/engine"
4
+
5
+ module Alchemy
6
+ module Airbrake
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 AirbrakeHandler < BaseHandler
8
+ def self.call(exception)
9
+ return if ["development", "test"].include?(Rails.env)
10
+
11
+ Airbrake.notify(exception)
12
+ end
13
+ end
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,87 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: alchemy-airbrake
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Thomas von Deyen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-12-27 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: 6.0.0.pre.rc3
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '7'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 6.0.0.pre.rc3
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '7'
33
+ - !ruby/object:Gem::Dependency
34
+ name: airbrake
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '12'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '12'
47
+ description: Adds a Alchemy Airbrake exception notifier.
48
+ email:
49
+ - thomas@vondeyen.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - LICENSE
55
+ - README.md
56
+ - Rakefile
57
+ - lib/alchemy/airbrake.rb
58
+ - lib/alchemy/airbrake/engine.rb
59
+ - lib/alchemy/airbrake/version.rb
60
+ - lib/alchemy/error_tracking/airbrake_handler.rb
61
+ homepage: https://alchemy-cms.com
62
+ licenses:
63
+ - MIT
64
+ metadata:
65
+ homepage_uri: https://alchemy-cms.com
66
+ source_code_uri: https://github.com/AlchemyCMS/alchemy-airbrake
67
+ changelog_uri: https://github.com/AlchemyCMS/alchemy-airbrake/tree/main/CHANGELOG.md
68
+ post_install_message:
69
+ rdoc_options: []
70
+ require_paths:
71
+ - lib
72
+ required_ruby_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ requirements: []
83
+ rubygems_version: 3.1.6
84
+ signing_key:
85
+ specification_version: 4
86
+ summary: Alchemy Airbrake error notifier.
87
+ test_files: []