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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e721e700a3b37ec73117c35b65774e66c1f9274d249b12b16ea331c62bf34ef9
4
- data.tar.gz: 20ddffdf0b98103b3777544046a271100383bf4720a7cf0d6a66e9075c2ecf1d
3
+ metadata.gz: 51d4798005d97ca29f6b424524594a2397668f574143bd1ea87f9f3992ddc486
4
+ data.tar.gz: a3272d437553c95440775fa69f87fccee90e0c31aaceb3ba834fa58580342b97
5
5
  SHA512:
6
- metadata.gz: 72534f05812764111a22210f39521833ba30651347e1e68cd335f673c2e832258489f742c417191643a1a1e3cb29cd0d0ceb71d1695679c07ca6ce97e84627b1
7
- data.tar.gz: 59b04321d5af06bbcd215290b26f2665ac6b3751bec5d76208041c28358e5a456da6c9be475cbe4bb6b696606fe0062b944561d9d74a277ee88de2bbac261ece
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
  [![Gem Version](https://badge.fury.io/rb/eussiror.svg)](https://badge.fury.io/rb/eussiror)
6
- [![CI](https://github.com/tracyloisel/eussiror/actions/workflows/ci.yml/badge.svg)](https://github.com/tracyloisel/eussiror/actions/workflows/ci.yml)
6
+ [![CI](https://github.com/EquipeTechnique/eussiror/actions/workflows/ci.yml/badge.svg)](https://github.com/EquipeTechnique/eussiror/actions/workflows/ci.yml)
7
7
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](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.1 |
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/tracyloisel/eussiror.git
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
- defined?(Rails) ? Rails.env.to_s : ENV.fetch("RAILS_ENV", "development")
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 = GithubClient.new(
39
- token: config.github_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: issue_title(exception),
50
- body: issue_body(exception, env, fingerprint),
51
- labels: config.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.nil? || env.empty?
95
+ return "" if env.blank?
96
96
 
97
97
  method = env["REQUEST_METHOD"]
98
98
  path = env["PATH_INFO"]
@@ -26,7 +26,7 @@ module Eussiror
26
26
  data = JSON.parse(response.body)
27
27
 
28
28
  return nil unless response.is_a?(Net::HTTPSuccess)
29
- return nil if data["items"].nil? || data["items"].empty?
29
+ return nil if data["items"].blank?
30
30
 
31
31
  data["items"].first["number"]
32
32
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Eussiror
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
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.1.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/tracyloisel/eussiror
50
+ homepage: https://github.com/EquipeTechnique/eussiror
51
51
  licenses:
52
52
  - MIT
53
53
  metadata:
54
- homepage_uri: https://github.com/tracyloisel/eussiror
55
- source_code_uri: https://github.com/tracyloisel/eussiror
56
- changelog_uri: https://github.com/tracyloisel/eussiror/blob/main/CHANGELOG.md
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.1.0
66
+ version: 3.2.0
67
67
  required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="