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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 139d4820503b09e3522e3fbd08a7108d7eec863eab17a98454fa82f9aedba1db
4
- data.tar.gz: 332fd7668c150bd6d7ed02139c18ffafba90ac2a7bc61e160344032adb4edfc0
3
+ metadata.gz: 18245d5d7f264ec81c4391ad9bc38715b1547a2dce087665c06bc4f941e0c2a2
4
+ data.tar.gz: 38f5773efebbe6a45c563cfbfdd8224790a40f453e0dc33c4bb66fdea3b74818
5
5
  SHA512:
6
- metadata.gz: 3082229759187a709502faeae8d51940d0456f94809f2af04111f0225d4d60c803c4f2f33608a34f88e824a7605df9a20fe6e53c7e646eb9acf29ea5ae9875a3
7
- data.tar.gz: 71850d35807b1e3b81f4e19ed785a9107d1fdc5a8ed000c16590dbc6591ff7f9baa93017c8ecf8f94fef07a9ccfc81a9a9398653926fb14a0cebf222d8fce7c1
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
- designed to be simple and easy to use. It integrates the `telebugs` gem with
15
- Rails application, so that any unhandled error occurring in your app will be
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/new/docs/integrations/rails).
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/kyrylo/telebugs-rails.
42
+ Bug reports and pull requests are welcome on GitHub at https://github.com/telebugs/telebugs-rails.
@@ -4,7 +4,7 @@ class TelebugsGenerator < Rails::Generators::Base
4
4
  def create_initializer_file
5
5
  create_file "config/initializers/telebugs.rb", <<~RUBY
6
6
  # frozen_string_literal: true
7
- #
7
+
8
8
  # Telebugs error monitoring.
9
9
  #
10
10
  # Rails integration guide:
@@ -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.middleware.use Middleware::IgnoreDevEnv.new(Rails.env)
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Telebugs
4
4
  module Rails
5
- VERSION = "0.2.0"
5
+ VERSION = "0.3.0"
6
6
  end
7
7
  end
@@ -6,7 +6,6 @@ require "telebugs"
6
6
  require_relative "rails/version"
7
7
  require_relative "rails/railtie"
8
8
 
9
- require_relative "rails/middleware/ignore_dev_env"
10
9
  require_relative "rails/middleware/reporter_info"
11
10
  require_relative "rails/report_errors"
12
11
 
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.2.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-06-23 00:00:00.000000000 Z
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 developers. With Telebugs,
44
- you can track production errors in real-time and report them to Telegram.
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.3
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