alchemy-bugsnag 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: 4aaf3df8e86693117544dbb75e746cc8d694083f363c65d7944677cfcb9b0613
4
+ data.tar.gz: e72e9a5ae8db5573b1a9eba1b3feb7bb2707d40e8fb19430d5d1751def3d94e0
5
+ SHA512:
6
+ metadata.gz: 39e25ea37d3f465c0bfb61f8a7ccf2073ab17b9eb52f885d71f46d604b42550254651ad99d7da5f2daaec20cdc61b32a22fc9e634a2065f7b20ae45874f0541c
7
+ data.tar.gz: 2e19393b48e98615194958fd3aabceab3e31d9b2c04ec73f040ae849aecadde8595d2bb71ceffd10176ed6bd71ac3b2d093d368d280b707aa5ee2ecdb18a77c2
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::Bugsnag
2
+ Bugsnag error reporting extension for AlchemyCMS.
3
+
4
+ ## Installation
5
+ Add this line to your application's Gemfile:
6
+
7
+ ```ruby
8
+ gem 'alchemy-bugsnag'
9
+ ```
10
+
11
+ And then execute:
12
+ ```bash
13
+ $ bundle
14
+ ```
data/Rakefile ADDED
@@ -0,0 +1,23 @@
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/bugsnag/version"
19
+ GitHubChangelogGenerator::RakeTask.new(:changelog) do |config|
20
+ config.user = "AlchemyCMS"
21
+ config.project = "alchemy-bugsnag"
22
+ config.future_release = "v#{Alchemy::Bugsnag::VERSION}"
23
+ end
@@ -0,0 +1,11 @@
1
+ require_relative "../error_tracking/bugsnag_handler"
2
+
3
+ module Alchemy
4
+ module Bugsnag
5
+ class Engine < ::Rails::Engine
6
+ initializer "alchemy.bugsnag" do
7
+ Alchemy::ErrorTracking.notification_handler = Alchemy::ErrorTracking::BugsnagHandler
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ module Alchemy
2
+ module Bugsnag
3
+ VERSION = "1.0.0"
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ require "bugsnag"
2
+ require "alchemy_cms"
3
+ require "alchemy/bugsnag/engine"
4
+
5
+ module Alchemy
6
+ module Bugsnag
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 BugsnagHandler < BaseHandler
8
+ def self.call(exception)
9
+ return if ["development", "test"].include?(Rails.env)
10
+
11
+ ::Bugsnag.notify(exception)
12
+ end
13
+ end
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: alchemy-bugsnag
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-02-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: '7'
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: '7'
33
+ - !ruby/object:Gem::Dependency
34
+ name: bugsnag
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '6.0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '6.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: github_changelog_generator
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ description: Adds a Bugsnag 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/bugsnag.rb
72
+ - lib/alchemy/bugsnag/engine.rb
73
+ - lib/alchemy/bugsnag/version.rb
74
+ - lib/alchemy/error_tracking/bugsnag_handler.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-bugsnag
81
+ changelog_uri: https://github.com/AlchemyCMS/alchemy-bugsnag/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.3.26
98
+ signing_key:
99
+ specification_version: 4
100
+ summary: Alchemy Bugsnag error notifier.
101
+ test_files: []