congress 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +0 -1
- data/README.md +6 -5
- data/congress.gemspec +0 -2
- data/lib/congress/client.rb +0 -1
- data/lib/congress/request.rb +1 -1
- data/lib/congress/version.rb +1 -1
- data/spec/congress_spec.rb +1 -8
- metadata +6 -50
- data.tar.gz.sig +0 -0
- data/certs/sferik.pem +0 -20
- metadata.gz.sig +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f6f9234cbf7d9536bb2e50c670633efbf02c7038
|
4
|
+
data.tar.gz: a4664f6a79651dc2e4a05e2731b6edc4cacc0b80
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d4c5500a56021013a611f81c24ec5b6cd5b92ef6e73397ad075a3ec929fb968102adf193e8483c7171bbd7a014d17a3df7b5a8b23ca81777b9e1e7172b10d708
|
7
|
+
data.tar.gz: 82a3854a324a88e56cb341689a2f10211ecafdcc169426595b87ed9250911f3e66c66ad415965dad1fdc4b5027b49493b460804b5be8b6a9475e57340d4cfc28
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
# Ruby wrapper for the Sunlight Congress API
|
2
2
|
|
3
|
-
[![Gem Version](
|
4
|
-
[![Build Status](
|
5
|
-
[![Dependency Status](
|
6
|
-
[![Code Climate](
|
7
|
-
[![Coverage Status](
|
3
|
+
[![Gem Version](http://img.shields.io/gem/v/congress.svg)][gem]
|
4
|
+
[![Build Status](http://img.shields.io/travis/codeforamerica/congress.svg)][travis]
|
5
|
+
[![Dependency Status](http://img.shields.io/gemnasium/codeforamerica/congress.svg)][gemnasium]
|
6
|
+
[![Code Climate](http://img.shields.io/codeclimate/github/codeforamerica/congress.svg)][codeclimate]
|
7
|
+
[![Coverage Status](http://img.shields.io/coveralls/codeforamerica/congress.svg)][coveralls]
|
8
|
+
|
8
9
|
[gem]: https://rubygems.org/gems/congress
|
9
10
|
[travis]: http://travis-ci.org/codeforamerica/congress
|
10
11
|
[gemnasium]: https://gemnasium.com/codeforamerica/congress
|
data/congress.gemspec
CHANGED
@@ -10,7 +10,6 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.add_dependency 'geocoder', '~> 1.1.9'
|
11
11
|
spec.add_development_dependency 'bundler', '~> 1.0'
|
12
12
|
spec.author = 'Erik Michaels-Ober'
|
13
|
-
spec.cert_chain = ['certs/sferik.pem']
|
14
13
|
spec.description = %q{Ruby wrapper for the Sunlight Congress API, a live JSON API for the people and work of Congress, provided by the Sunlight Foundation.}
|
15
14
|
spec.email = 'sferik@gmail.com'
|
16
15
|
spec.files = `git ls-files`.split("\n")
|
@@ -18,7 +17,6 @@ Gem::Specification.new do |spec|
|
|
18
17
|
spec.licenses = ['MIT']
|
19
18
|
spec.name = 'congress'
|
20
19
|
spec.require_paths = ['lib']
|
21
|
-
spec.signing_key = File.expand_path('~/.gem/private_key.pem') if $PROGRAM_NAME =~ /gem\z/
|
22
20
|
spec.summary = %q{Ruby wrapper for the Sunlight Congress API}
|
23
21
|
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
24
22
|
spec.version = Congress::VERSION
|
data/lib/congress/client.rb
CHANGED
data/lib/congress/request.rb
CHANGED
data/lib/congress/version.rb
CHANGED
data/spec/congress_spec.rb
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
require 'helper'
|
2
2
|
|
3
3
|
describe Congress do
|
4
|
-
before do
|
5
|
-
Congress.key = 'abc1234'
|
6
|
-
end
|
7
4
|
describe '.new' do
|
8
5
|
it 'returns a Congress::Client' do
|
9
6
|
expect(Congress.new).to be_a Congress::Client
|
@@ -14,11 +11,6 @@ describe Congress do
|
|
14
11
|
end
|
15
12
|
expect(Congress.key).to eq('abc123')
|
16
13
|
end
|
17
|
-
context 'with no api key' do
|
18
|
-
it 'raises an argument error' do
|
19
|
-
expect { Congress.new(nil) }.to raise_error ArgumentError
|
20
|
-
end
|
21
|
-
end
|
22
14
|
end
|
23
15
|
|
24
16
|
describe '.method_missing' do
|
@@ -27,6 +19,7 @@ describe Congress do
|
|
27
19
|
to_return(:status => 200, :body => fixture('legislators.json'))
|
28
20
|
end
|
29
21
|
it 'delegates to an instance of Congress::Client' do
|
22
|
+
Congress.key = 'abc123'
|
30
23
|
client = Congress.new
|
31
24
|
expect(client).to receive(:legislators)
|
32
25
|
Congress.legislators
|
metadata
CHANGED
@@ -1,41 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: congress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Erik Michaels-Ober
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
-
|
13
|
-
-----BEGIN CERTIFICATE-----
|
14
|
-
MIIDLjCCAhagAwIBAgIBADANBgkqhkiG9w0BAQUFADA9MQ8wDQYDVQQDDAZzZmVy
|
15
|
-
aWsxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2NvbTAe
|
16
|
-
Fw0xMzAyMDMxMDAyMjdaFw0xNDAyMDMxMDAyMjdaMD0xDzANBgNVBAMMBnNmZXJp
|
17
|
-
azEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29tMIIB
|
18
|
-
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl0x5dx8uKxi7TkrIuyBUTJVB
|
19
|
-
v1o93nUB9j/y4M96gV2rYwAci1JPBseNd6Fybzjo3YGuHl7EQHuSHNaf1p2lxew/
|
20
|
-
y60JXIJBBgPcDK/KCP4NUHofm0jfoYD+H5uNJfHCNq7/ZsTxOtE3Ra92s0BCMTpm
|
21
|
-
wBMMlWR5MtdEhIYuBO4XhnejYgH0L/7BL2lymntVnsr/agdQoojQCN1IQmsRJvrR
|
22
|
-
duZRO3tZvoIo1pBc4JEehDuqCeyBgPLOqMoKtQlold1TQs1kWUBK7KWMFEhKC/Kg
|
23
|
-
zyzKRHQo9yDYwOvYngoBLY+T/lwCT4dyssdhzRbfnxAhaKu4SAssIwaC01yVowID
|
24
|
-
AQABozkwNzAJBgNVHRMEAjAAMB0GA1UdDgQWBBS0ruDfRak5ci1OpDNX/ZdDEkIs
|
25
|
-
iTALBgNVHQ8EBAMCBLAwDQYJKoZIhvcNAQEFBQADggEBAHHSMs/MP0sOaLkEv4Jo
|
26
|
-
zvkm3qn5A6t0vaHx774cmejyMU+5wySxRezspL7ULh9NeuK2OhU+Oe3TpqrAg5TK
|
27
|
-
R8GQILnVu2FemGA6sAkPDlcPtgA6ieI19PZOF6HVLmc/ID/dP/NgZWWzEeqQKmcK
|
28
|
-
2+HM+SEEDhZkScYekw4ZOe164ZtZG816oAv5x0pGitSIkumUp7V8iEZ/6ehr7Y9e
|
29
|
-
XOg4eeun5L/JjmjARoW2kNdvkRD3c2EeSLqWvQRsBlypHfhs6JJuLlyZPGhU3R/v
|
30
|
-
Sf3lVKpBCWgRpGTvy45XVpB+59y33PJmEuQ1PTEOYvQyao9UKMAAaAN/7qWQtjl0
|
31
|
-
hlw=
|
32
|
-
-----END CERTIFICATE-----
|
33
|
-
date: 2014-02-10 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-03-06 00:00:00.000000000 Z
|
34
12
|
dependencies:
|
35
13
|
- !ruby/object:Gem::Dependency
|
36
14
|
name: faraday
|
37
15
|
requirement: !ruby/object:Gem::Requirement
|
38
|
-
none: false
|
39
16
|
requirements:
|
40
17
|
- - "~>"
|
41
18
|
- !ruby/object:Gem::Version
|
@@ -43,7 +20,6 @@ dependencies:
|
|
43
20
|
type: :runtime
|
44
21
|
prerelease: false
|
45
22
|
version_requirements: !ruby/object:Gem::Requirement
|
46
|
-
none: false
|
47
23
|
requirements:
|
48
24
|
- - "~>"
|
49
25
|
- !ruby/object:Gem::Version
|
@@ -51,7 +27,6 @@ dependencies:
|
|
51
27
|
- !ruby/object:Gem::Dependency
|
52
28
|
name: faraday_middleware
|
53
29
|
requirement: !ruby/object:Gem::Requirement
|
54
|
-
none: false
|
55
30
|
requirements:
|
56
31
|
- - "~>"
|
57
32
|
- !ruby/object:Gem::Version
|
@@ -59,7 +34,6 @@ dependencies:
|
|
59
34
|
type: :runtime
|
60
35
|
prerelease: false
|
61
36
|
version_requirements: !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
37
|
requirements:
|
64
38
|
- - "~>"
|
65
39
|
- !ruby/object:Gem::Version
|
@@ -67,7 +41,6 @@ dependencies:
|
|
67
41
|
- !ruby/object:Gem::Dependency
|
68
42
|
name: hashie
|
69
43
|
requirement: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
44
|
requirements:
|
72
45
|
- - "~>"
|
73
46
|
- !ruby/object:Gem::Version
|
@@ -75,7 +48,6 @@ dependencies:
|
|
75
48
|
type: :runtime
|
76
49
|
prerelease: false
|
77
50
|
version_requirements: !ruby/object:Gem::Requirement
|
78
|
-
none: false
|
79
51
|
requirements:
|
80
52
|
- - "~>"
|
81
53
|
- !ruby/object:Gem::Version
|
@@ -83,7 +55,6 @@ dependencies:
|
|
83
55
|
- !ruby/object:Gem::Dependency
|
84
56
|
name: json
|
85
57
|
requirement: !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
58
|
requirements:
|
88
59
|
- - "~>"
|
89
60
|
- !ruby/object:Gem::Version
|
@@ -91,7 +62,6 @@ dependencies:
|
|
91
62
|
type: :runtime
|
92
63
|
prerelease: false
|
93
64
|
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
none: false
|
95
65
|
requirements:
|
96
66
|
- - "~>"
|
97
67
|
- !ruby/object:Gem::Version
|
@@ -99,7 +69,6 @@ dependencies:
|
|
99
69
|
- !ruby/object:Gem::Dependency
|
100
70
|
name: rash
|
101
71
|
requirement: !ruby/object:Gem::Requirement
|
102
|
-
none: false
|
103
72
|
requirements:
|
104
73
|
- - "~>"
|
105
74
|
- !ruby/object:Gem::Version
|
@@ -107,7 +76,6 @@ dependencies:
|
|
107
76
|
type: :runtime
|
108
77
|
prerelease: false
|
109
78
|
version_requirements: !ruby/object:Gem::Requirement
|
110
|
-
none: false
|
111
79
|
requirements:
|
112
80
|
- - "~>"
|
113
81
|
- !ruby/object:Gem::Version
|
@@ -115,7 +83,6 @@ dependencies:
|
|
115
83
|
- !ruby/object:Gem::Dependency
|
116
84
|
name: geocoder
|
117
85
|
requirement: !ruby/object:Gem::Requirement
|
118
|
-
none: false
|
119
86
|
requirements:
|
120
87
|
- - "~>"
|
121
88
|
- !ruby/object:Gem::Version
|
@@ -123,7 +90,6 @@ dependencies:
|
|
123
90
|
type: :runtime
|
124
91
|
prerelease: false
|
125
92
|
version_requirements: !ruby/object:Gem::Requirement
|
126
|
-
none: false
|
127
93
|
requirements:
|
128
94
|
- - "~>"
|
129
95
|
- !ruby/object:Gem::Version
|
@@ -131,7 +97,6 @@ dependencies:
|
|
131
97
|
- !ruby/object:Gem::Dependency
|
132
98
|
name: bundler
|
133
99
|
requirement: !ruby/object:Gem::Requirement
|
134
|
-
none: false
|
135
100
|
requirements:
|
136
101
|
- - "~>"
|
137
102
|
- !ruby/object:Gem::Version
|
@@ -139,7 +104,6 @@ dependencies:
|
|
139
104
|
type: :development
|
140
105
|
prerelease: false
|
141
106
|
version_requirements: !ruby/object:Gem::Requirement
|
142
|
-
none: false
|
143
107
|
requirements:
|
144
108
|
- - "~>"
|
145
109
|
- !ruby/object:Gem::Version
|
@@ -162,7 +126,6 @@ files:
|
|
162
126
|
- LICENSE.md
|
163
127
|
- README.md
|
164
128
|
- Rakefile
|
165
|
-
- certs/sferik.pem
|
166
129
|
- congress.gemspec
|
167
130
|
- lib/congress.rb
|
168
131
|
- lib/congress/client.rb
|
@@ -186,33 +149,26 @@ files:
|
|
186
149
|
homepage: https://github.com/codeforamerica/congress
|
187
150
|
licenses:
|
188
151
|
- MIT
|
152
|
+
metadata: {}
|
189
153
|
post_install_message:
|
190
154
|
rdoc_options: []
|
191
155
|
require_paths:
|
192
156
|
- lib
|
193
157
|
required_ruby_version: !ruby/object:Gem::Requirement
|
194
|
-
none: false
|
195
158
|
requirements:
|
196
159
|
- - ">="
|
197
160
|
- !ruby/object:Gem::Version
|
198
161
|
version: '0'
|
199
|
-
segments:
|
200
|
-
- 0
|
201
|
-
hash: 532612501120204924
|
202
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
|
-
none: false
|
204
163
|
requirements:
|
205
164
|
- - ">="
|
206
165
|
- !ruby/object:Gem::Version
|
207
166
|
version: '0'
|
208
|
-
segments:
|
209
|
-
- 0
|
210
|
-
hash: 532612501120204924
|
211
167
|
requirements: []
|
212
168
|
rubyforge_project:
|
213
|
-
rubygems_version:
|
169
|
+
rubygems_version: 2.2.2
|
214
170
|
signing_key:
|
215
|
-
specification_version:
|
171
|
+
specification_version: 4
|
216
172
|
summary: Ruby wrapper for the Sunlight Congress API
|
217
173
|
test_files:
|
218
174
|
- spec/congress/client_spec.rb
|
data.tar.gz.sig
DELETED
Binary file
|
data/certs/sferik.pem
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
2
|
-
MIIDLjCCAhagAwIBAgIBADANBgkqhkiG9w0BAQUFADA9MQ8wDQYDVQQDDAZzZmVy
|
3
|
-
aWsxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2NvbTAe
|
4
|
-
Fw0xMzAyMDMxMDAyMjdaFw0xNDAyMDMxMDAyMjdaMD0xDzANBgNVBAMMBnNmZXJp
|
5
|
-
azEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29tMIIB
|
6
|
-
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl0x5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