telebugs-rails 0.2.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 139d4820503b09e3522e3fbd08a7108d7eec863eab17a98454fa82f9aedba1db
4
- data.tar.gz: 332fd7668c150bd6d7ed02139c18ffafba90ac2a7bc61e160344032adb4edfc0
3
+ metadata.gz: a67b1e2157dbca45cd82f279eacde58139029269e3e63bed002956002617dc14
4
+ data.tar.gz: c6478a069c4fce8ee18748d92a7c8951bf460d4698c97668ab7cb337a6612662
5
5
  SHA512:
6
- metadata.gz: 3082229759187a709502faeae8d51940d0456f94809f2af04111f0225d4d60c803c4f2f33608a34f88e824a7605df9a20fe6e53c7e646eb9acf29ea5ae9875a3
7
- data.tar.gz: 71850d35807b1e3b81f4e19ed785a9107d1fdc5a8ed000c16590dbc6591ff7f9baa93017c8ecf8f94fef07a9ccfc81a9a9398653926fb14a0cebf222d8fce7c1
6
+ metadata.gz: b1ff390a81de8992f6433c23aebc99be48893b438a35f9b8aaa3bad7044950b61774857314c785a85cc95dfb603440b043a04bfb911c9f2e748073493a1b8070
7
+ data.tar.gz: e66e812c4000039c75dac463f71bef8f7f57b91bc08b2898fa1db56c7e4eca79a3a789e327f20d37dcc381521c66646232cdfcb1a6577ac7c9f4b615ee6c5ed8
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:
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telebugs::Rails::Middleware
4
- class ReporterInfo < Telebugs::Middleware
4
+ class ReporterInfo < Telebugs::BaseMiddleware
5
5
  REPORTER = {
6
6
  library: {name: "telebugs-rails", version: Telebugs::Rails::VERSION}.freeze,
7
7
  platform: {name: "Rails", version: Rails.version}.freeze
@@ -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.4.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.4.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-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: telebugs
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.8'
19
+ version: '0.10'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.8'
26
+ version: '0.10'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: railties
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -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