ndr_error 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/models/ndr_error/fingerprint.rb +5 -7
- data/lib/ndr_error/engine.rb +7 -5
- data/lib/ndr_error/version.rb +1 -1
- data/lib/ndr_error.rb +1 -1
- metadata +22 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 905684f0ea130a6c5613e2df87f46d0e098fe6d16ebcc5647594318bc55cf4a1
|
4
|
+
data.tar.gz: cc8defe0ac32639a4b3b86d7756e6bdbd9fac7a8f0c1923ec2f4982cdfe5f076
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee098ccf9dab59e79c533139b754a41306c2cf7d0425098ffeb338dd770d16b53ebb7b818f4976b5c92235831205a8a6e18aa4c39c8c2fc01aab6c05cb120c98
|
7
|
+
data.tar.gz: f8fed40535c7289b0375393518bcca2017dd6f7dea525d4fdc9e22d185cf86f9f23ac5b25a98c60106e8489d2eec1b10399406097ad65586962ff8c49f9504dc
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# NdrError [![Build Status](https://
|
1
|
+
# NdrError [![Build Status](https://github.com/publichealthengland/ndr_error/workflows/Test/badge.svg)](https://github.com/publichealthengland/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
3
|
This is the Public Health England (PHE) National Disease Registers (NDR) Error ruby gem. It is a
|
4
4
|
Rails engine that provides error logging, viewing, and grouping capabilities.
|
@@ -6,13 +6,11 @@ module NdrError
|
|
6
6
|
|
7
7
|
self.primary_key = 'error_fingerprintid'
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
belongs_to_options[:optional] = true if Rails::VERSION::MAJOR > 4
|
15
|
-
belongs_to :causal_error_fingerprint, belongs_to_options
|
9
|
+
belongs_to :causal_error_fingerprint,
|
10
|
+
class_name: 'NdrError::Fingerprint',
|
11
|
+
foreign_key: 'causal_error_fingerprintid',
|
12
|
+
inverse_of: :caused_error_fingerprints,
|
13
|
+
optional: true
|
16
14
|
|
17
15
|
has_many :caused_error_fingerprints,
|
18
16
|
class_name: 'NdrError::Fingerprint',
|
data/lib/ndr_error/engine.rb
CHANGED
@@ -14,11 +14,13 @@ module NdrError
|
|
14
14
|
|
15
15
|
# Hook into host app's asset pipeline
|
16
16
|
initializer 'ndr_error.assets.precompile' do |app|
|
17
|
-
app.config.assets
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
if app.config.respond_to?(:assets)
|
18
|
+
app.config.assets.precompile += %w[
|
19
|
+
ndr_error/ndr_error.css
|
20
|
+
ndr_error/ndr_error.js
|
21
|
+
ndr_error/bootstrap/glyphicons-halflings-regular*
|
22
|
+
]
|
23
|
+
end
|
22
24
|
end
|
23
25
|
|
24
26
|
# Extract context filtering from the host application
|
data/lib/ndr_error/version.rb
CHANGED
data/lib/ndr_error.rb
CHANGED
@@ -98,6 +98,6 @@ module NdrError
|
|
98
98
|
# 4.2 compatability layer is targetted since all the bundled migrations were written prior to
|
99
99
|
# Rails 5.
|
100
100
|
def self.migration_class
|
101
|
-
|
101
|
+
ActiveRecord::Migration[4.2]
|
102
102
|
end
|
103
103
|
end
|
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.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NCRS Development Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '7'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '6.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '7'
|
@@ -72,6 +72,20 @@ dependencies:
|
|
72
72
|
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: puma
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
75
89
|
- !ruby/object:Gem::Dependency
|
76
90
|
name: sqlite3
|
77
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,14 +148,14 @@ dependencies:
|
|
134
148
|
requirements:
|
135
149
|
- - ">="
|
136
150
|
- !ruby/object:Gem::Version
|
137
|
-
version: '
|
151
|
+
version: '5.10'
|
138
152
|
type: :development
|
139
153
|
prerelease: false
|
140
154
|
version_requirements: !ruby/object:Gem::Requirement
|
141
155
|
requirements:
|
142
156
|
- - ">="
|
143
157
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
158
|
+
version: '5.10'
|
145
159
|
- !ruby/object:Gem::Dependency
|
146
160
|
name: simplecov
|
147
161
|
requirement: !ruby/object:Gem::Requirement
|
@@ -205,14 +219,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
219
|
requirements:
|
206
220
|
- - ">="
|
207
221
|
- !ruby/object:Gem::Version
|
208
|
-
version: '2.
|
222
|
+
version: '2.6'
|
209
223
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
224
|
requirements:
|
211
225
|
- - ">="
|
212
226
|
- !ruby/object:Gem::Version
|
213
227
|
version: '0'
|
214
228
|
requirements: []
|
215
|
-
rubygems_version: 3.
|
229
|
+
rubygems_version: 3.1.6
|
216
230
|
signing_key:
|
217
231
|
specification_version: 4
|
218
232
|
summary: Rails exception logging
|