ecfr 1.0.9 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +2 -2
- data/lib/ecfr/admin_service/site_notification.rb +7 -7
- data/lib/ecfr/client.rb +1 -1
- data/lib/ecfr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4f0797427f53d66ef5b452b7cbed5e904bd0d40014b67bfa8da1605f4494ec1
|
4
|
+
data.tar.gz: bcc927258c65452fa05834441efaf1e20cf7c6ce3a1d5f62f76fb8d00e65a386
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36e1f0309682992dca52fb647d9b1f18e5359d06d4bc6775db8e9f70612c5f3455d7a7a7423e546a5e3ae394ad8d4c903895d0a712e7bd1d1be7d331f7e01b78
|
7
|
+
data.tar.gz: cf200a1cd4c2fa7f6acdbe4b6e7fdf0d6be1a9e0f427ddfc721472d505e9450f8d0376547f8738373fb7cdbf73790c2abd906e3b4836b2db70fb0b3eb90d0934
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [1.0.11] - 2023-06-22
|
4
|
+
### Updates
|
5
|
+
- Support more robust site notifications(24010c96)
|
6
|
+
|
7
|
+
## [1.0.10] - 2023-06-15
|
8
|
+
### Bugfixes
|
9
|
+
- Fix client to respect port numbers when determing client reuse (1afbb6)
|
10
|
+
- this supports local enviroments where services may be running on different ports
|
11
|
+
|
3
12
|
## [1.0.9] - 2023-05-12
|
4
13
|
### Additions
|
5
14
|
- Add support for configuring the service path. This supports blue/green style deployments where the same service may be running but accessible at different subpaths.
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ecfr (1.0.
|
4
|
+
ecfr (1.0.11)
|
5
5
|
activemodel (~> 6.0)
|
6
6
|
activesupport (~> 6.0)
|
7
7
|
faraday (~> 2.0)
|
@@ -21,7 +21,7 @@ GEM
|
|
21
21
|
ast (2.4.2)
|
22
22
|
coderay (1.1.3)
|
23
23
|
concurrent-ruby (1.1.9)
|
24
|
-
connection_pool (2.4.
|
24
|
+
connection_pool (2.4.1)
|
25
25
|
diff-lcs (1.4.4)
|
26
26
|
ethon (0.16.0)
|
27
27
|
ffi (>= 1.15.0)
|
@@ -3,19 +3,19 @@ module Ecfr
|
|
3
3
|
class SiteNotification < Base
|
4
4
|
result_key :notifications
|
5
5
|
|
6
|
-
attribute :last_updated_by,
|
7
|
-
desc: "email of user who last updated the notification"
|
8
6
|
attribute :message,
|
9
7
|
desc: "notification content"
|
10
8
|
attribute :notification_type,
|
11
|
-
desc: "where the notification should be displayed;
|
9
|
+
desc: "where the notification should be displayed;
|
10
|
+
one of 'basic', 'error', 'feature', 'info', 'special', or 'warning'"
|
11
|
+
attribute :location,
|
12
|
+
desc: "the location on eCFR.gov that notification will be displayed;
|
13
|
+
one of 'all', 'content', 'search' or 'table_of_contents'
|
14
|
+
('top' is the only possible value for the 'special' type)"
|
12
15
|
|
13
|
-
attribute :
|
16
|
+
attribute :user_dismissible,
|
14
17
|
type: :boolean
|
15
18
|
|
16
|
-
attribute :updated_at,
|
17
|
-
type: :datetime
|
18
|
-
|
19
19
|
SITE_NOTIFICATIONS_PATH = "v1/notifications.json"
|
20
20
|
|
21
21
|
#
|
data/lib/ecfr/client.rb
CHANGED
@@ -62,7 +62,7 @@ module Ecfr
|
|
62
62
|
def self.client_pool(base_url, client_options)
|
63
63
|
uri = URI.parse(base_url)
|
64
64
|
|
65
|
-
cache_key = "ecfr-client-pool-#{uri.host}-#{Digest::MD5.hexdigest(client_options.to_s)}"
|
65
|
+
cache_key = "ecfr-client-pool-#{uri.host}-#{uri.port}-#{Digest::MD5.hexdigest(client_options.to_s)}"
|
66
66
|
|
67
67
|
RequestStore.fetch(cache_key) do
|
68
68
|
Faraday.new(url: uri.to_s) do |faraday|
|
data/lib/ecfr/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecfr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peregrinator
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|