ndr_error 2.3.0 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +53 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/MIT-LICENSE +1 -1
- data/README.md +3 -3
- data/app/helpers/ndr_error/errors_helper.rb +3 -3
- data/app/models/ndr_error/log.rb +1 -1
- data/app/views/ndr_error/errors/show.html.erb +1 -1
- data/lib/ndr_error/version.rb +1 -1
- metadata +56 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad25fd23b8e80fe8e1d589ae2469dc173cf9cb096998c397247fde98a02b86e8
|
4
|
+
data.tar.gz: 6f4d301417b26aeac14890ee7d3c7e37b210dbcad2f58170baaf7ae5133276ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3035a5f32346bbc6f994124f8f918635596210b008e19ebd15f98b27e61686a6e3ff1316cc791120bea2550fe4c2ffacb4554c83fc4022440dc0166b9ec1de46
|
7
|
+
data.tar.gz: 8a4d63cebac01d6a62f87e0b8496256f354809381d9b89be051bde71975282eb3ceb1a2278d52b618543aecc66b206cf7d66c14185bb9b308a4ddffd74463f6a
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
## [Unreleased]
|
2
|
+
* no unreleased changes
|
3
|
+
|
4
|
+
## 2.3.2 / 2024-11-21
|
5
|
+
### Fixed
|
6
|
+
* Support Ruby 3.2 and 3.3, Rails 7.1 and 7.2. Drop support for Ruby 2.7, Rails 6.0
|
7
|
+
|
8
|
+
## 2.3.1 / 2022-12-02
|
9
|
+
### Fixed
|
10
|
+
* Drop support for Ruby 2.6
|
11
|
+
* Support Ruby 3.1, Rails 7.0
|
12
|
+
* Replace Public Health England naming with NHS Digital
|
13
|
+
|
14
|
+
## 2.3.0 / 2022-01-14
|
15
|
+
### Fixed
|
16
|
+
* Allow basic loading into a host app that doesn't use `sprockets`.
|
17
|
+
* Drop support for Rails 5, Ruby 2.5
|
18
|
+
* Support Ruby 3.0
|
19
|
+
|
20
|
+
## 2.2.1 / 2020-02-26
|
21
|
+
### Fixed
|
22
|
+
* Allow basic loading into a host app that doesn't use `sprockets`.
|
23
|
+
|
24
|
+
## 2.2.0 / 2020-02-26
|
25
|
+
### Added
|
26
|
+
* Add more flexible middleware `NdrError::Recorder` middleware
|
27
|
+
|
28
|
+
## 2.1.0 / 2019-10-08
|
29
|
+
### Added
|
30
|
+
* Add `NdrError.after_log { ... }` callback registration (#20)
|
31
|
+
|
32
|
+
## 2.0.3 / 2019-07-25
|
33
|
+
### Fixed
|
34
|
+
* Add `inverse_of` configuration to the associations
|
35
|
+
|
36
|
+
## 2.0.2 / 2019-05-16
|
37
|
+
### Fixed
|
38
|
+
* fix bug that causes crash on vague search. Resolves #10
|
39
|
+
* Support for Rails 6, Ruby 2.6, dropping support for older versions
|
40
|
+
|
41
|
+
## 2.0.1 / 2018-10-11
|
42
|
+
### Fixed
|
43
|
+
* fix bug with searching integer user column
|
44
|
+
|
45
|
+
## 2.0.0 / 2018-06-05
|
46
|
+
### Added
|
47
|
+
* log causal exceptions too, automatically (#16)
|
48
|
+
* introduce breadcrumbs to the UI
|
49
|
+
|
50
|
+
### Fixed
|
51
|
+
* tidy up controls for navigating between logs
|
52
|
+
* improve behaviour / UI when there are multiple logs. Resolves #14
|
53
|
+
* fix CSS float issue
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# NdrError [![Build Status](https://github.com/
|
1
|
+
# NdrError [![Build Status](https://github.com/NHSDigital/ndr_error/workflows/Test/badge.svg)](https://github.com/NHSDigital/ndr_error/actions?query=workflow%3Atest) [![Gem Version](https://badge.fury.io/rb/ndr_error.svg)](https://rubygems.org/gems/ndr_error)
|
2
2
|
|
3
|
-
This is the
|
3
|
+
This is the NHS Digital (NHS-D) National Disease Registers (NDR) Error ruby gem. It is a
|
4
4
|
Rails engine that provides error logging, viewing, and grouping capabilities.
|
5
5
|
|
6
6
|
Exceptions are logged as `NdrError::Log` records, which can be associated by instances
|
@@ -94,7 +94,7 @@ NdrError.description_fuzzers.unshift(lambda { |description|
|
|
94
94
|
|
95
95
|
## Contributing
|
96
96
|
|
97
|
-
1. Fork it ( https://github.com/
|
97
|
+
1. Fork it ( https://github.com/NHSDigital/ndr_error/fork )
|
98
98
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
99
99
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
100
100
|
4. Push to the branch (`git push origin my-new-feature`)
|
@@ -18,7 +18,7 @@ module NdrError
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def latest_timestamp_for(fingerprint)
|
21
|
-
fingerprint.updated_at.
|
21
|
+
fingerprint.updated_at.to_formatted_s(:db)
|
22
22
|
end
|
23
23
|
|
24
24
|
def latest_user_for(fingerprint, search)
|
@@ -36,7 +36,7 @@ module NdrError
|
|
36
36
|
'class' => 'badge badge-info',
|
37
37
|
'data-toggle' => 'tooltip',
|
38
38
|
'data-placement' => 'right',
|
39
|
-
'title' => "Since #{fingerprint.created_at.
|
39
|
+
'title' => "Since #{fingerprint.created_at.to_formatted_s(:db)}"
|
40
40
|
}
|
41
41
|
|
42
42
|
content_tag(:span, text, opts)
|
@@ -44,7 +44,7 @@ module NdrError
|
|
44
44
|
|
45
45
|
def similar_error_link(error)
|
46
46
|
user = error.user_id && content_tag(:span, error.user_id, class: 'text-muted')
|
47
|
-
text = safe_join([user, error.created_at.
|
47
|
+
text = safe_join([user, error.created_at.to_formatted_s(:db)].compact, ' - ')
|
48
48
|
|
49
49
|
bootstrap_list_link_to text, error_fingerprint_path(error.error_fingerprint, log_id: error)
|
50
50
|
end
|
data/app/models/ndr_error/log.rb
CHANGED
@@ -85,7 +85,7 @@ module NdrError
|
|
85
85
|
|
86
86
|
# Performs a soft-delete of this log.
|
87
87
|
def flag_as_deleted!(time = Time.current)
|
88
|
-
update_attribute(:status, "deleted at #{time.
|
88
|
+
update_attribute(:status, "deleted at #{time.to_formatted_s(:db)}")
|
89
89
|
end
|
90
90
|
|
91
91
|
# Copy across attributes from the exception object.
|
@@ -78,7 +78,7 @@
|
|
78
78
|
<table class="table table-bordered">
|
79
79
|
<tbody>
|
80
80
|
<tr>
|
81
|
-
<th>Time of Error:</th><td><%= @error.created_at.
|
81
|
+
<th>Time of Error:</th><td><%= @error.created_at.to_formatted_s(:db) %></td>
|
82
82
|
<th>User:</th><td><%= @error.user_id %> <small class="text-muted"><%= @error.user_roles %></small></td>
|
83
83
|
</tr>
|
84
84
|
<tr>
|
data/lib/ndr_error/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ndr_error
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NCRS Development Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,20 +16,62 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '6.
|
19
|
+
version: '6.1'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '7'
|
22
|
+
version: '7.3'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '6.
|
29
|
+
version: '6.1'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '7'
|
32
|
+
version: '7.3'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: net-imap
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: net-pop
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: net-smtp
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
33
75
|
- !ruby/object:Gem::Dependency
|
34
76
|
name: will_paginate
|
35
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -176,6 +218,8 @@ executables: []
|
|
176
218
|
extensions: []
|
177
219
|
extra_rdoc_files: []
|
178
220
|
files:
|
221
|
+
- CHANGELOG.md
|
222
|
+
- CODE_OF_CONDUCT.md
|
179
223
|
- MIT-LICENSE
|
180
224
|
- README.md
|
181
225
|
- Rakefile
|
@@ -207,11 +251,11 @@ files:
|
|
207
251
|
- lib/ndr_error/uuid_builder.rb
|
208
252
|
- lib/ndr_error/version.rb
|
209
253
|
- lib/tasks/ndr_error_tasks.rake
|
210
|
-
homepage: https://github.com/
|
254
|
+
homepage: https://github.com/NHSDigital/ndr_error
|
211
255
|
licenses:
|
212
256
|
- MIT
|
213
257
|
metadata: {}
|
214
|
-
post_install_message:
|
258
|
+
post_install_message:
|
215
259
|
rdoc_options: []
|
216
260
|
require_paths:
|
217
261
|
- lib
|
@@ -219,15 +263,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
219
263
|
requirements:
|
220
264
|
- - ">="
|
221
265
|
- !ruby/object:Gem::Version
|
222
|
-
version: '
|
266
|
+
version: '3.0'
|
223
267
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
224
268
|
requirements:
|
225
269
|
- - ">="
|
226
270
|
- !ruby/object:Gem::Version
|
227
271
|
version: '0'
|
228
272
|
requirements: []
|
229
|
-
rubygems_version: 3.
|
230
|
-
signing_key:
|
273
|
+
rubygems_version: 3.3.27
|
274
|
+
signing_key:
|
231
275
|
specification_version: 4
|
232
276
|
summary: Rails exception logging
|
233
277
|
test_files: []
|