eussiror 0.1.0 → 0.2.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +3 -3
- data/lib/eussiror/configuration.rb +6 -1
- data/lib/eussiror/error_reporter.rb +6 -6
- data/lib/eussiror/github_client.rb +1 -1
- data/lib/eussiror/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 51d4798005d97ca29f6b424524594a2397668f574143bd1ea87f9f3992ddc486
|
|
4
|
+
data.tar.gz: a3272d437553c95440775fa69f87fccee90e0c31aaceb3ba834fa58580342b97
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9bb0ae83836328b9c23d908a96eddc9b4b07940f5c4e67991b89683fc5ebf6ae6daac079d868ae9251e3ff50feff6da24959cd4e71978e712f2c5bf71739d10
|
|
7
|
+
data.tar.gz: 5920aae760c75985bc51e31565df20668d7aed8babc3bcc4d096b4f306a581582d971f6347c2d5b4450f0b610e6f7b5248ecd183e94ad577a1578f7657905579
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.0] - 2026-02-26
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- Drop Ruby 3.1 support; minimum Ruby is now 3.2.0 (fixes Psych/strscan compatibility issues).
|
|
14
|
+
- Disable Rails/NegateInclude RuboCop rule.
|
|
15
|
+
|
|
10
16
|
## [0.1.0] - 2026-02-26
|
|
11
17
|
|
|
12
18
|
### Added
|
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Maintainer:** [@tracyloisel](https://github.com/tracyloisel)
|
|
4
4
|
|
|
5
5
|
[](https://badge.fury.io/rb/eussiror)
|
|
6
|
-
[](https://github.com/EquipeTechnique/eussiror/actions/workflows/ci.yml)
|
|
7
7
|
[](LICENSE)
|
|
8
8
|
|
|
9
9
|
**Eussiror** automatically creates GitHub issues when your Rails application returns a 500 error in production. If the same error already has an open issue, it adds a comment with the new occurrence timestamp instead — keeping your issue tracker clean and deduplicated.
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
| Dependency | Minimum version |
|
|
30
30
|
|---|---|
|
|
31
|
-
| Ruby | 3.
|
|
31
|
+
| Ruby | 3.2 |
|
|
32
32
|
| Rails | 7.2 |
|
|
33
33
|
|
|
34
34
|
> **Note:** No additional runtime gems are required. Eussiror uses Ruby's built-in `Net::HTTP` to call the GitHub API.
|
|
@@ -276,7 +276,7 @@ Standard `Rails::Generators::Base` subclass. Copies `templates/initializer.rb.tt
|
|
|
276
276
|
|
|
277
277
|
```bash
|
|
278
278
|
# Clone and install
|
|
279
|
-
git clone https://github.com/
|
|
279
|
+
git clone https://github.com/EquipeTechnique/eussiror.git
|
|
280
280
|
cd eussiror
|
|
281
281
|
bundle install
|
|
282
282
|
|
|
@@ -37,7 +37,12 @@ module Eussiror
|
|
|
37
37
|
private
|
|
38
38
|
|
|
39
39
|
def current_environment
|
|
40
|
-
|
|
40
|
+
return ENV.fetch("RAILS_ENV", "development") unless defined?(Rails)
|
|
41
|
+
return Rails.env.to_s if Rails.respond_to?(:env)
|
|
42
|
+
|
|
43
|
+
ENV.fetch("RAILS_ENV", "development")
|
|
44
|
+
rescue NoMethodError
|
|
45
|
+
ENV.fetch("RAILS_ENV", "development")
|
|
41
46
|
end
|
|
42
47
|
end
|
|
43
48
|
end
|
|
@@ -35,8 +35,8 @@ module Eussiror
|
|
|
35
35
|
|
|
36
36
|
def process(exception, env, config)
|
|
37
37
|
fingerprint = Fingerprint.compute(exception)
|
|
38
|
-
client
|
|
39
|
-
token:
|
|
38
|
+
client = GithubClient.new(
|
|
39
|
+
token: config.github_token,
|
|
40
40
|
repository: config.github_repository
|
|
41
41
|
)
|
|
42
42
|
|
|
@@ -46,9 +46,9 @@ module Eussiror
|
|
|
46
46
|
client.add_comment(existing_issue, body: occurrence_comment)
|
|
47
47
|
else
|
|
48
48
|
client.create_issue(
|
|
49
|
-
title:
|
|
50
|
-
body:
|
|
51
|
-
labels:
|
|
49
|
+
title: issue_title(exception),
|
|
50
|
+
body: issue_body(exception, env, fingerprint),
|
|
51
|
+
labels: config.labels,
|
|
52
52
|
assignees: config.assignees
|
|
53
53
|
)
|
|
54
54
|
end
|
|
@@ -92,7 +92,7 @@ module Eussiror
|
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
def build_request_info(env)
|
|
95
|
-
return "" if env.
|
|
95
|
+
return "" if env.blank?
|
|
96
96
|
|
|
97
97
|
method = env["REQUEST_METHOD"]
|
|
98
98
|
path = env["PATH_INFO"]
|
data/lib/eussiror/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eussiror
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Equipe Technique
|
|
@@ -47,13 +47,13 @@ files:
|
|
|
47
47
|
- lib/eussiror/version.rb
|
|
48
48
|
- lib/generators/eussiror/install/install_generator.rb
|
|
49
49
|
- lib/generators/eussiror/install/templates/initializer.rb.tt
|
|
50
|
-
homepage: https://github.com/
|
|
50
|
+
homepage: https://github.com/EquipeTechnique/eussiror
|
|
51
51
|
licenses:
|
|
52
52
|
- MIT
|
|
53
53
|
metadata:
|
|
54
|
-
homepage_uri: https://github.com/
|
|
55
|
-
source_code_uri: https://github.com/
|
|
56
|
-
changelog_uri: https://github.com/
|
|
54
|
+
homepage_uri: https://github.com/EquipeTechnique/eussiror
|
|
55
|
+
source_code_uri: https://github.com/EquipeTechnique/eussiror
|
|
56
|
+
changelog_uri: https://github.com/EquipeTechnique/eussiror/blob/main/CHANGELOG.md
|
|
57
57
|
rubygems_mfa_required: 'true'
|
|
58
58
|
post_install_message:
|
|
59
59
|
rdoc_options: []
|
|
@@ -63,7 +63,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
63
63
|
requirements:
|
|
64
64
|
- - ">="
|
|
65
65
|
- !ruby/object:Gem::Version
|
|
66
|
-
version: 3.
|
|
66
|
+
version: 3.2.0
|
|
67
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
68
|
requirements:
|
|
69
69
|
- - ">="
|