telebugs-rails 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -6
- data/lib/generators/telebugs_generator.rb +1 -1
- data/lib/telebugs/rails/railtie.rb +2 -1
- data/lib/telebugs/rails/version.rb +1 -1
- data/lib/telebugs/rails.rb +0 -1
- metadata +7 -7
- data/lib/telebugs/rails/middleware/ignore_dev_env.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18245d5d7f264ec81c4391ad9bc38715b1547a2dce087665c06bc4f941e0c2a2
|
4
|
+
data.tar.gz: 38f5773efebbe6a45c563cfbfdd8224790a40f453e0dc33c4bb66fdea3b74818
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc72543a35aa6a59e50934e1b4af5ab1858216b633e8dedf22a68cc0c946f48999c737ca0f5b2404780d0e139bc239b7cc23324487c0d88e18206721801eaef3
|
7
|
+
data.tar.gz: 771a82ab8ba11b3a1737e5ead4f6923420a390b2f67814d0bba13e0b73d71afc588b1125017dd977d28ee5050b242600a7ddec3c3b43743280007388b4e71df3
|
data/README.md
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
# Telebugs for Rails
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/telebugs-rails.svg)](https://badge.fury.io/rb/telebugs-rails)
|
4
|
+
|
3
5
|
Simple error monitoring for developers. Monitor production errors in real-time
|
4
6
|
and get them reported to Telegram with Telebugs.
|
5
7
|
|
8
|
+
- [Official Documentation](https://telebugs.com/docs/integrations/rails)
|
6
9
|
- [FAQ](https://telebugs.com/faq)
|
7
10
|
- [Telebugs News](https://t.me/TelebugsNews)
|
8
11
|
- [Telebugs Community](https://t.me/TelebugsCommunity)
|
@@ -10,15 +13,14 @@ and get them reported to Telegram with Telebugs.
|
|
10
13
|
## Introduction
|
11
14
|
|
12
15
|
Any Ruby on Rails application can be integrated with
|
13
|
-
[Telebugs](https://telebugs.com) using the `telebugs-rails` gem. The gem is
|
14
|
-
|
15
|
-
|
16
|
-
reported to Telebugs.
|
16
|
+
[Telebugs](https://telebugs.com) using the [`telebugs-rails`](https://rubygems.org/gems/telebugs-rails) gem. The gem is designed to be simple and easy to use. It integrates the
|
17
|
+
[`telebugs`](https://rubygems.org/gems/telebugs) gem with Rails applications,
|
18
|
+
so that any unhandled error occurring in your app will be reported to Telebugs.
|
17
19
|
|
18
20
|
## Installation
|
19
21
|
|
20
22
|
For the integration details, please refer to the
|
21
|
-
[Telebugs documentation](https://telebugs.com/
|
23
|
+
[Telebugs documentation](https://telebugs.com/docs/integrations/rails).
|
22
24
|
|
23
25
|
## Rails support policy
|
24
26
|
|
@@ -37,4 +39,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
37
39
|
|
38
40
|
## Contributing
|
39
41
|
|
40
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
42
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/telebugs/telebugs-rails.
|
@@ -18,7 +18,8 @@ module Telebugs::Rails
|
|
18
18
|
initializer "telebugs.configure" do
|
19
19
|
Telebugs.configure do |c|
|
20
20
|
c.root_directory = Rails.root.to_s
|
21
|
-
c.
|
21
|
+
c.environment = Rails.env
|
22
|
+
c.ignore_environments = %w[development test]
|
22
23
|
c.middleware.use Middleware::ReporterInfo.new
|
23
24
|
end
|
24
25
|
end
|
data/lib/telebugs/rails.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: telebugs-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyrylo Silin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: telebugs
|
@@ -39,9 +39,10 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '6.1'
|
41
41
|
description: |
|
42
|
-
Telebugs Rails is an integration for Rails applications with Telebugs
|
43
|
-
Telebugs is a simple error monitoring tool for
|
44
|
-
you can track production errors in real-time and
|
42
|
+
Telebugs Rails is an integration for Rails applications with Telebugs
|
43
|
+
(https://telebugs.com). Telebugs is a simple error monitoring tool for
|
44
|
+
developers. With Telebugs, you can track production errors in real-time and
|
45
|
+
report them to Telegram.
|
45
46
|
email:
|
46
47
|
- help@telebugs.com
|
47
48
|
executables: []
|
@@ -55,7 +56,6 @@ files:
|
|
55
56
|
- lib/generators/telebugs_generator.rb
|
56
57
|
- lib/telebugs/rails.rb
|
57
58
|
- lib/telebugs/rails/error_subscriber.rb
|
58
|
-
- lib/telebugs/rails/middleware/ignore_dev_env.rb
|
59
59
|
- lib/telebugs/rails/middleware/reporter_info.rb
|
60
60
|
- lib/telebugs/rails/railtie.rb
|
61
61
|
- lib/telebugs/rails/report_errors.rb
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
|
-
rubygems_version: 3.5.
|
84
|
+
rubygems_version: 3.5.11
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: Report errors to Telebugs from Rails applications.
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Telebugs::Rails::Middleware
|
4
|
-
class IgnoreDevEnv < Telebugs::Middleware
|
5
|
-
def initialize(rails_env)
|
6
|
-
@rails_env = rails_env.to_s
|
7
|
-
end
|
8
|
-
|
9
|
-
def call(report)
|
10
|
-
report.ignored = (@rails_env == "development" || @rails_env == "test")
|
11
|
-
end
|
12
|
-
|
13
|
-
def weight
|
14
|
-
-1000
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|