civic_aide 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/README.md +3 -0
- data/lib/civic_aide/client.rb +2 -3
- data/lib/civic_aide/version.rb +1 -1
- data/spec/vcr/representatives/single.yml +3 -3
- 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: c244c9c33d9aad818c0bbfddee7bbad1433d17c4
|
4
|
+
data.tar.gz: 5d9cc539c867e4beef9fe79fb5daf30045dfcf41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80888f09d7915a55886857bbcb25360c4c09f95de6e6ca67a79d4a8dd71a8a8d975b0346b231ff6760ad19271db4b83fc286f98d13fcd5200c929d1d8fb7453d
|
7
|
+
data.tar.gz: cf5c1e8c46b12d63d042a0be58831cddae3000f385e56ebf4e3cbc791b61f4388fbb354d16ec610e19da4398c124d792afb33c2372439f698216726236174885
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# CivicAide
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/civic_aide.png)](http://badge.fury.io/rb/civic_aide)
|
4
|
+
[![Build Status](https://travis-ci.org/tylerpearson/civic_aide.png?branch=master)](https://travis-ci.org/tylerpearson/civic_aide)
|
5
|
+
|
3
6
|
A (unofficial) Ruby wrapper to interact with the [Google Civic Information API](https://developers.google.com/civic-information/).
|
4
7
|
|
5
8
|
Currently the API only provides information for the United States.
|
data/lib/civic_aide/client.rb
CHANGED
@@ -4,11 +4,10 @@ require 'forwardable'
|
|
4
4
|
module CivicAide
|
5
5
|
class Client
|
6
6
|
extend Forwardable
|
7
|
-
|
8
7
|
include HTTParty
|
9
8
|
|
10
|
-
API_ENDPOINT = 'https://www.googleapis.com/civicinfo/'
|
11
|
-
API_VERSION = 'us_v1'
|
9
|
+
API_ENDPOINT = 'https://www.googleapis.com/civicinfo/'.freeze
|
10
|
+
API_VERSION = 'us_v1'.freeze
|
12
11
|
|
13
12
|
base_uri "#{API_ENDPOINT}#{API_VERSION}"
|
14
13
|
headers "Content-Type" => "application/json"
|
data/lib/civic_aide/version.rb
CHANGED
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
Expires:
|
24
24
|
- Fri, 01 Jan 1990 00:00:00 GMT
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Sun, 29 Dec 2013 03:09:03 GMT
|
27
27
|
Etag:
|
28
28
|
- '"AkiRpOnd7sKoopyUaI9w1UXzdBI/uUqEGRPWFFqmpcAIIuYHjnGWvh8"'
|
29
29
|
Content-Type:
|
@@ -101,6 +101,6 @@ http_interactions:
|
|
101
101
|
456-1111","(202) 456-1414"],"urls":["http://www.whitehouse.gov/administration/president_obama/","http://www.barackobama.com/index.php"],"photoUrl":"http://www.whitehouse.gov/sites/default/files/imagecache/admin_official_lowres/administration-official/ao_image/president_official_portrait_hires.jpg","channels":[{"type":"GooglePlus","id":"110031535020051778989"},{"type":"YouTube","id":"barackobama"},{"type":"Twitter","id":"barackobama"},{"type":"Facebook","id":"barackobama"}]},"P23":{"name":"Joseph
|
102
102
|
(Joe) Robinette Biden Jr.","address":[{"line1":"The White House","line2":"1600
|
103
103
|
Pennsylvania Avenue NW","line3":"","city":"Washington","state":"DC","zip":"20500"}],"party":"Democrat","urls":["http://www.whitehouse.gov/administration/vice-president-biden"],"photoUrl":"http://www.whitehouse.gov/sites/default/files/imagecache/admin_official_lowres/administration-official/ao_image/vp_portrait.jpeg","channels":[{"type":"Twitter","id":"JoeBiden"},{"type":"Facebook","id":"joebiden"},{"type":"Twitter","id":"VP"}]}}}'
|
104
|
-
http_version:
|
105
|
-
recorded_at:
|
104
|
+
http_version:
|
105
|
+
recorded_at: Sun, 29 Dec 2013 03:09:04 GMT
|
106
106
|
recorded_with: VCR 2.5.0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: civic_aide
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyler Pearson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|