federal_register 0.6.9 → 0.7.1

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: b49f0e10f7be9d6878f35facc35252377728742fdf87975f28accdfcc88764a4
4
- data.tar.gz: 318f5def018fdd8f302116fb25a73e17012c7af093e1366066b05101ba2bf849
3
+ metadata.gz: a003dcebeeb80ec509aa695f35459a61700f798a3ab228ac0947b42942713d0a
4
+ data.tar.gz: 8b1f3bb7602304fbe8c7eae23a2563e0432b9b6e090207aba77c4dca5807c29a
5
5
  SHA512:
6
- metadata.gz: 93b9651df729732f7c4368312d660c08290d250315b0d1678b9f9aff3ab7cf055c9f246ee9ea7a461befd6f053a82b83bcb989a1aa51432375031a1597e1c2c8
7
- data.tar.gz: bcea7d1ba4f7b5a8c5495a707d2410c22a1f1801fdaa05b0665ac595d6f3c53ecea7f205e88ac58d2a5733276b8ba1794ba58af8f4e85942f0d418b33351a9f7
6
+ metadata.gz: b5aed81850d81cf4c5dc07547fd694214f5f5d6f033b1fe1033199ba18ab34ae69905e2809377b56efbee1cb4a19e4f408e36544803cfc54de315842cac5c95d
7
+ data.tar.gz: 619b9ebd3fd143953e97d04f62e403e7e9ec0929d6e6630d1f13db070fc7144b21bda2813092f561acb6e759b32412407a22f4d80fc55bd6dfa12de54a633ead
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.9
1
+ 0.7.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "federal_register"
8
- s.version = "0.6.9"
8
+ s.version = "0.7.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrew Carpenter", "Bob Burbach"]
12
- s.date = "2019-05-09"
12
+ s.date = "2019-05-13"
13
13
  s.description = "Ruby API Client for FederalRegister.gov that handles searching documents and getting information about agencies"
14
14
  s.email = "andrew@criticaljuncture.org"
15
15
  s.extra_rdoc_files = [
@@ -34,6 +34,7 @@ Gem::Specification.new do |s|
34
34
  "lib/federal_register/client.rb",
35
35
  "lib/federal_register/document.rb",
36
36
  "lib/federal_register/document_image.rb",
37
+ "lib/federal_register/document_search_details.rb",
37
38
  "lib/federal_register/facet.rb",
38
39
  "lib/federal_register/facet/agency.rb",
39
40
  "lib/federal_register/facet/document.rb",
@@ -61,6 +62,7 @@ Gem::Specification.new do |s|
61
62
  "lib/federal_register/facet_result_set.rb",
62
63
  "lib/federal_register/highlighted_document.rb",
63
64
  "lib/federal_register/public_inspection_document.rb",
65
+ "lib/federal_register/public_inspection_document_search_details.rb",
64
66
  "lib/federal_register/public_inspection_issue_result_set.rb",
65
67
  "lib/federal_register/result_set.rb",
66
68
  "lib/federal_register/section.rb",
@@ -16,7 +16,7 @@ require "federal_register/agency.rb"
16
16
  require "federal_register/document.rb"
17
17
  require "federal_register/article.rb"
18
18
  require "federal_register/document_image.rb"
19
-
19
+ require "federal_register/document_search_details.rb"
20
20
 
21
21
  require "federal_register/facet.rb"
22
22
  require "federal_register/facet/agency.rb"
@@ -49,6 +49,7 @@ require "federal_register/facet/public_inspection_issue/type_filing.rb"
49
49
 
50
50
  require "federal_register/highlighted_document.rb"
51
51
  require "federal_register/public_inspection_document.rb"
52
+ require "federal_register/public_inspection_document_search_details.rb"
52
53
  require "federal_register/section.rb"
53
54
  require "federal_register/suggested_search.rb"
54
55
  require "federal_register/topic.rb"
@@ -60,6 +60,7 @@ class FederalRegister::Base < FederalRegister::Client
60
60
  FederalRegister::Client,
61
61
  FederalRegister::Document,
62
62
  FederalRegister::DocumentImage,
63
+ FederalRegister::DocumentSearchDetails,
63
64
 
64
65
  FederalRegister::Facet,
65
66
  FederalRegister::Facet::Agency,
@@ -79,6 +80,7 @@ class FederalRegister::Base < FederalRegister::Client
79
80
  FederalRegister::Facet::Document::Type,
80
81
 
81
82
  FederalRegister::Facet::PublicInspectionDocument,
83
+ FederalRegister::PublicInspectionDocumentSearchDetails,
82
84
  FederalRegister::Facet::PublicInspectionDocument::Agencies,
83
85
  FederalRegister::Facet::PublicInspectionDocument::Agency,
84
86
  FederalRegister::Facet::PublicInspectionDocument::Type,
@@ -0,0 +1,11 @@
1
+ class FederalRegister::DocumentSearchDetails < FederalRegister::Base
2
+ extend FederalRegister::Utilities
3
+
4
+ add_attribute :filters,
5
+ :suggestions
6
+
7
+ def self.search(args)
8
+ response = get('/documents/search-details', query: args).parsed_response
9
+ new(response)
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ class FederalRegister::PublicInspectionDocumentSearchDetails < FederalRegister::Base
2
+ extend FederalRegister::Utilities
3
+
4
+ add_attribute :filters,
5
+ :suggestions
6
+
7
+ def self.search(args)
8
+ response = get('/public-inspection-documents/search-details', query: args).parsed_response
9
+ new(response)
10
+ end
11
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: federal_register
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.9
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Carpenter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-05-09 00:00:00.000000000 Z
12
+ date: 2019-05-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -135,6 +135,7 @@ files:
135
135
  - lib/federal_register/client.rb
136
136
  - lib/federal_register/document.rb
137
137
  - lib/federal_register/document_image.rb
138
+ - lib/federal_register/document_search_details.rb
138
139
  - lib/federal_register/facet.rb
139
140
  - lib/federal_register/facet/agency.rb
140
141
  - lib/federal_register/facet/document.rb
@@ -162,6 +163,7 @@ files:
162
163
  - lib/federal_register/facet_result_set.rb
163
164
  - lib/federal_register/highlighted_document.rb
164
165
  - lib/federal_register/public_inspection_document.rb
166
+ - lib/federal_register/public_inspection_document_search_details.rb
165
167
  - lib/federal_register/public_inspection_issue_result_set.rb
166
168
  - lib/federal_register/result_set.rb
167
169
  - lib/federal_register/section.rb