ecfr 1.0.12 → 1.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44ee6584017e9a07702bb19c563a67803534b903cc767ed4b0cc12195b672a4b
4
- data.tar.gz: e695f87cb60ef043bff46563fe87a7d356fcf505665921a08cca959498469dd0
3
+ metadata.gz: 7e764bf9ef790d05735e7f4110d05dbdac69ec621785e911cfe43c8e1a55cb0e
4
+ data.tar.gz: bb06e18019a19805911423655419c50dd622b0f60f34360d1e60e04c7045b73f
5
5
  SHA512:
6
- metadata.gz: 92adb0e55e0f28f73f131c718c708436a36c75f568132add0aa1d33203d5744fc02fee26ebf7b99c86ed6a72356c777691dd63eb4a719773b93f6d64f394e8ce
7
- data.tar.gz: bc82b515d235b30fbb06096ab2a666df28c133c0d5b6dae0efd38f790c13d76f0e28130007c1840eacdbfb47230c26532fb770a089df9dfbc88d5fa0df449a65
6
+ metadata.gz: 319d536cefbf939750cc3b5658075108b78908143b1e7a7812896214eecbb5d81809a14bf00e16dfe1494e7bc5107dc3d8175a281a756a9a544d1da382be6f25
7
+ data.tar.gz: a3f85da3ab39ce3ea01ca0c778fa9007da6cae80de7e341e6d0ccac707b2b31b3c1e5d6b7e1dbe0e7c736db99246f6194f894f1365c435d5c9917d8c504d0896
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.0.14] - 2024-02-13
4
+ ### Updates
5
+ - Update path to admin API endpoints (eb267f08)
6
+
7
+ ## [1.0.13] - 2023-11-30
8
+ ### Updates
9
+ - Add additional keys to Agency response. Update search result to document agency filtering (70e4bcc1)
10
+
3
11
  ## [1.0.12] - 2023-09-11
4
12
  ### Updates
5
13
  - Support retry-after header (e00ab2d)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ecfr (1.0.12)
4
+ ecfr (1.0.14)
5
5
  activemodel (~> 6.0)
6
6
  activesupport (~> 6.0)
7
7
  faraday (~> 2.0)
@@ -5,6 +5,8 @@ module Ecfr
5
5
 
6
6
  attribute :display_name, desc: "official name of agency, including parent (if any)"
7
7
  attribute :name, desc: "official name of agency"
8
+ attribute :short_name, desc: "agency acronym"
9
+ attribute :slug, desc: "normalized, unique agency identifier in the eCFR system"
8
10
  attribute :sortable_name, desc: "sortable version of agency name"
9
11
 
10
12
  attribute :cfr_references, type: Array(Ecfr::Common::Hierarchy),
@@ -17,7 +17,7 @@ module Ecfr
17
17
  end
18
18
 
19
19
  def self.service_path
20
- Ecfr.config.admin_service_path || "/admin/api/admin"
20
+ Ecfr.config.admin_service_path || "/api/admin"
21
21
  end
22
22
 
23
23
  def self.service_name
@@ -83,6 +83,7 @@ module Ecfr
83
83
  # Retrieve results of search query
84
84
  #
85
85
  # @param [<Hash>] args supported search parameters; supported params:
86
+ # @option args [Array] :agency_slugs limit search to portions of the CFR these agencies are currently associated with (see Ecfr::AdminService::Agency)
86
87
  # @option args [String] :date ISO date or 'current'
87
88
  # @option args [String] :last_modified_after ISO date
88
89
  # @option args [String] :last_modified_before ISO date
data/lib/ecfr/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ecfr
4
- VERSION = "1.0.12"
4
+ VERSION = "1.0.14"
5
5
  end
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.12
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peregrinator
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-11 00:00:00.000000000 Z
11
+ date: 2024-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -383,7 +383,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
383
383
  - !ruby/object:Gem::Version
384
384
  version: '0'
385
385
  requirements: []
386
- rubygems_version: 3.4.10
386
+ rubygems_version: 3.2.33
387
387
  signing_key:
388
388
  specification_version: 4
389
389
  summary: eCFR.gov API client