congress_forms 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/congress_forms/form.rb +7 -1
- data/lib/congress_forms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85cf0c5a2d1e3b221e7674267da900b5eb66be99
|
4
|
+
data.tar.gz: cea9f9f04b41c702ff8345f3a58a94dc08b2f52d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bfec00df54bf57b544fb32078f32e25d5250d914826b8e67b7fd48931bd85db830bdfd9fc3d568da5785ff2ec68243bad33076dc8e52dd66e057c47359ad02e
|
7
|
+
data.tar.gz: 9082fb873f2a9a33402a31a98b1d11876d036f6c2766d20f26a71a84025a85065e8758b7961dec9b72d30b3b3139f11f7523ce79564f6f8d588ab03d3103c245
|
data/README.md
CHANGED
@@ -104,7 +104,7 @@ A `git pull` is performed every now and then in this direcory, to keep the form
|
|
104
104
|
CongressForms.auto_update_contact_congress = false
|
105
105
|
```
|
106
106
|
|
107
|
-
House messages are submitted through the [Communicating with Congress](https://www.house.gov/doing-business-with-the-house/communicating-with-congress-cwc) API. You will need to complete the vendor application process, then configure the API client with
|
107
|
+
House messages are submitted through the [Communicating with Congress](https://www.house.gov/doing-business-with-the-house/communicating-with-congress-cwc) API. To send messages to the House of Representatives, You will need to complete the vendor application process, then configure the API client with
|
108
108
|
|
109
109
|
```ruby
|
110
110
|
Cwc::Client.configure(
|
data/lib/congress_forms/form.rb
CHANGED
@@ -11,7 +11,13 @@ module CongressForms
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.find(form_id)
|
14
|
-
|
14
|
+
begin
|
15
|
+
cwc_client = Cwc::Client.new
|
16
|
+
rescue KeyError => _
|
17
|
+
nil
|
18
|
+
end
|
19
|
+
|
20
|
+
if cwc_client&.office_supported?(form_id)
|
15
21
|
CwcForm.new(form_id)
|
16
22
|
else
|
17
23
|
content, timestamp = repo.find("members/#{form_id}.yaml")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: congress_forms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Woo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|