ndr_error 2.2.0 → 2.3.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: 89b4e3b5c4c353c4451a663613117248484b70ca4765e88c234d0ef7fef257e1
4
- data.tar.gz: f506e8f64cdfd4e24306c5859e3db30e8eb4ca0bc9c99a0e420b50c3582414a0
3
+ metadata.gz: 905684f0ea130a6c5613e2df87f46d0e098fe6d16ebcc5647594318bc55cf4a1
4
+ data.tar.gz: cc8defe0ac32639a4b3b86d7756e6bdbd9fac7a8f0c1923ec2f4982cdfe5f076
5
5
  SHA512:
6
- metadata.gz: ba72752fa59c55f7a04fc15e57c9fae93c4df17a6eeb7918c18ae3ae466e2ee34a9578255d0d9a7c1d5a3bdadf5c14dd95c4db0dfbfc776b0cce63af10081f39
7
- data.tar.gz: 2895abbd8d19f9a0868889437ead29029040f6e7f1ec601859c96f913953f41541bc172b958d21a2d1d3abcb62ac9755b12483cf884607af2b440ad88949fcdd
6
+ metadata.gz: ee098ccf9dab59e79c533139b754a41306c2cf7d0425098ffeb338dd770d16b53ebb7b818f4976b5c92235831205a8a6e18aa4c39c8c2fc01aab6c05cb120c98
7
+ data.tar.gz: f8fed40535c7289b0375393518bcca2017dd6f7dea525d4fdc9e22d185cf86f9f23ac5b25a98c60106e8489d2eec1b10399406097ad65586962ff8c49f9504dc
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # NdrError [![Build Status](https://travis-ci.org/PublicHealthEngland/ndr_error.svg?branch=master)](https://travis-ci.org/PublicHealthEngland/ndr_error) [![Gem Version](https://badge.fury.io/rb/ndr_error.svg)](https://badge.fury.io/rb/ndr_error)
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
- belongs_to_options = {
10
- class_name: 'NdrError::Fingerprint',
11
- foreign_key: 'causal_error_fingerprintid',
12
- inverse_of: :caused_error_fingerprints
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',
@@ -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.precompile += %w[
18
- ndr_error/ndr_error.css
19
- ndr_error/ndr_error.js
20
- ndr_error/bootstrap/glyphicons-halflings-regular*
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Contains the version of NdrError. Sourced by the gemspec.
4
4
  module NdrError
5
- VERSION = '2.2.0'.freeze
5
+ VERSION = '2.3.0'
6
6
  end
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
- Rails::VERSION::MAJOR < 5 ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
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.2.0
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: 2020-02-26 00:00:00.000000000 Z
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: '5.2'
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: '5.2'
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: '0'
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: '0'
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.5'
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.0.3
229
+ rubygems_version: 3.1.6
216
230
  signing_key:
217
231
  specification_version: 4
218
232
  summary: Rails exception logging