ndr_lookup 0.3.0 → 0.3.2

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: 4b166463e25022038550ad9bae665670beb892bb3db7571c09433697c50fcb80
4
- data.tar.gz: 3aca4b0a8550ea824a8d01dd0f84c9e0abc17be5fedb19d3f85d2af925ee2c94
3
+ metadata.gz: 9c7461cfc33d3dca9f1951d059695e8c9f7f29c7419ec411ba5ebc4b3b75deab
4
+ data.tar.gz: 34d30f43db94f459ab120df92866e72aa2c370243a32b45c069ff8d722a2d239
5
5
  SHA512:
6
- metadata.gz: 4d04c47f6edff7ccb720b62bc27d6e5183658e15995e363ce47a036ec4cc175b2e0c808aca0f5546a40fadbc208e8f480e9a62fea0eeff45e29234cb9d17eb5c
7
- data.tar.gz: 8b13686621258be52f9c62e6ec06f7dea39a0eea6a95932d374de1a8e81a0b99982b4b3f65d3d22f0f2873e0af225356643c3d77d909b30d15270ebd71c5ea73
6
+ metadata.gz: dfa29ad496f968fccdcdabccdf6a3481b9be30e52bad82e396026bb97e6fad2cee697ea8c1fd756c395f5ffae00a2023419001e6c6d269d250d69c5b752a63f2
7
+ data.tar.gz: 5d911731b57c783bd6600d7065c56f3368aba47d94a2aed56cfb6cac91b2534fb161e0c94895efb587f65ba7afed88ace0d2bec4f8ebc0bcd3644551754b4244
data/CHANGELOG.md CHANGED
@@ -1,4 +1,14 @@
1
1
  ## [Unreleased]
2
+ * no unreleased changes
3
+
4
+ ## 0.3.2 / 2026-09-29
5
+ ### Fixed
6
+ * Support Ruby 4.0, Rails 8.1. Drop support for Ruby 3.2
7
+
8
+ ## 0.3.1 / 2026-03-05
9
+ ### Fixed
10
+ * Strip whitespace from IDs in FHIR Base.find to prevent bad URI errors
11
+ * Handle ApiError/InvalidURIError gracefully in Organisation.find
2
12
 
3
13
  ## 0.3.0 / 2026-02-26
4
14
  ### Added
data/SECURITY.md ADDED
@@ -0,0 +1,35 @@
1
+ # Security
2
+
3
+ NHS England takes security and the protection of private data extremely seriously. If you believe you have found a vulnerability or other issue which has compromised or could compromise the security of any of our systems and/or private data managed by our systems, please do not hesitate to contact us using the methods outlined below.
4
+
5
+ ## Table of Contents
6
+
7
+ - [Security](#security)
8
+ - [Table of Contents](#table-of-contents)
9
+ - [Reporting a vulnerability](#reporting-a-vulnerability)
10
+ - [Email](#email)
11
+ - [NCSC](#ncsc)
12
+ - [General Security Enquiries](#general-security-enquiries)
13
+
14
+ ## Reporting a vulnerability
15
+
16
+ Please note, email is our preferred method of receiving reports.
17
+
18
+ ### Email
19
+
20
+ If you wish to notify us of a vulnerability via email, please include detailed information on the nature of the vulnerability and any steps required to reproduce it.
21
+
22
+ You can reach us at:
23
+
24
+ - [Brian.Shand@nhs.net](mailto:Brian.Shand@nhs.net)
25
+ - [cybersecurity@nhs.net](mailto:cybersecurity@nhs.net)
26
+
27
+ ### NCSC
28
+
29
+ You can send your report to the National Cyber Security Centre, who will assess your report and pass it on to NHS England if necessary.
30
+
31
+ You can report vulnerabilities here: [https://www.ncsc.gov.uk/information/vulnerability-reporting](https://www.ncsc.gov.uk/information/vulnerability-reporting)
32
+
33
+ ## General Security Enquiries
34
+
35
+ If you have general enquiries regarding our cybersecurity, please reach out to us at [cybersecurity@nhs.net](mailto:cybersecurity@nhs.net)
@@ -27,8 +27,9 @@ module NdrLookup
27
27
  # Finds a specific FHIR resource by type and ID
28
28
  # @return [Hash] Parsed FHIR resource
29
29
  def find(resource_type, id)
30
- with_error_handling("#{resource_type} with ID '#{id}' not found") do
31
- response = connection.get("#{endpoint}/#{resource_type}/#{id}", headers)
30
+ sanitized_id = id.to_s.strip
31
+ with_error_handling("#{resource_type} with ID '#{sanitized_id}' not found") do
32
+ response = connection.get("#{endpoint}/#{resource_type}/#{sanitized_id}", headers)
32
33
  JSON.parse(response.body)
33
34
  end
34
35
  end
@@ -21,6 +21,9 @@ module NdrLookup
21
21
  rescue Client::ResourceNotFound => e
22
22
  logger.info("Organization not found: #{e.message}")
23
23
  nil
24
+ rescue Client::ApiError, Client::InvalidURIError => e
25
+ logger.warn("Organization lookup failed for '#{id}': #{e.message}")
26
+ nil
24
27
  end
25
28
 
26
29
  # ActiveRecord subs .all in to /all which then becomes like finding the id 'all'
@@ -1,3 +1,3 @@
1
1
  module NdrLookup
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ndr_lookup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - NCRS Development Team
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2026-02-26 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activeresource
@@ -39,7 +38,7 @@ dependencies:
39
38
  version: '7.1'
40
39
  - - "<"
41
40
  - !ruby/object:Gem::Version
42
- version: '8.1'
41
+ version: '8.2'
43
42
  type: :runtime
44
43
  prerelease: false
45
44
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +48,7 @@ dependencies:
49
48
  version: '7.1'
50
49
  - - "<"
51
50
  - !ruby/object:Gem::Version
52
- version: '8.1'
51
+ version: '8.2'
53
52
  - !ruby/object:Gem::Dependency
54
53
  name: httpi
55
54
  requirement: !ruby/object:Gem::Requirement
@@ -82,30 +81,36 @@ dependencies:
82
81
  name: bundler
83
82
  requirement: !ruby/object:Gem::Requirement
84
83
  requirements:
85
- - - "~>"
84
+ - - ">="
86
85
  - !ruby/object:Gem::Version
87
86
  version: '2.0'
87
+ - - "<"
88
+ - !ruby/object:Gem::Version
89
+ version: '5.0'
88
90
  type: :development
89
91
  prerelease: false
90
92
  version_requirements: !ruby/object:Gem::Requirement
91
93
  requirements:
92
- - - "~>"
94
+ - - ">="
93
95
  - !ruby/object:Gem::Version
94
96
  version: '2.0'
97
+ - - "<"
98
+ - !ruby/object:Gem::Version
99
+ version: '5.0'
95
100
  - !ruby/object:Gem::Dependency
96
101
  name: minitest
97
102
  requirement: !ruby/object:Gem::Requirement
98
103
  requirements:
99
- - - "~>"
104
+ - - ">="
100
105
  - !ruby/object:Gem::Version
101
- version: '5.0'
106
+ version: 5.0.0
102
107
  type: :development
103
108
  prerelease: false
104
109
  version_requirements: !ruby/object:Gem::Requirement
105
110
  requirements:
106
- - - "~>"
111
+ - - ">="
107
112
  - !ruby/object:Gem::Version
108
- version: '5.0'
113
+ version: 5.0.0
109
114
  - !ruby/object:Gem::Dependency
110
115
  name: ndr_dev_support
111
116
  requirement: !ruby/object:Gem::Requirement
@@ -165,6 +170,7 @@ files:
165
170
  - LICENSE.txt
166
171
  - README.md
167
172
  - Rakefile
173
+ - SECURITY.md
168
174
  - lib/ndr_lookup.rb
169
175
  - lib/ndr_lookup/fhir/base.rb
170
176
  - lib/ndr_lookup/fhir/odt/client.rb
@@ -182,7 +188,6 @@ homepage: https://github.com/NHSDigital/ndr_lookup
182
188
  licenses:
183
189
  - MIT
184
190
  metadata: {}
185
- post_install_message:
186
191
  rdoc_options: []
187
192
  require_paths:
188
193
  - lib
@@ -190,15 +195,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
190
195
  requirements:
191
196
  - - ">="
192
197
  - !ruby/object:Gem::Version
193
- version: '3.2'
198
+ version: '3.3'
194
199
  required_rubygems_version: !ruby/object:Gem::Requirement
195
200
  requirements:
196
201
  - - ">="
197
202
  - !ruby/object:Gem::Version
198
203
  version: '0'
199
204
  requirements: []
200
- rubygems_version: 3.4.19
201
- signing_key:
205
+ rubygems_version: 3.6.9
202
206
  specification_version: 4
203
207
  summary: NDR Lookup library
204
208
  test_files: []