congress 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/Gemfile +2 -1
- data/Rakefile +2 -2
- data/congress.gemspec +4 -4
- data/lib/congress/version.rb +1 -1
- data/spec/congress/client_spec.rb +3 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a23612d42cc9dd53b63914cd536e8009efd57cc1
|
4
|
+
data.tar.gz: c6eb4addce0d67b5809d2c2df3b2955cabe34e0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72386d7c5d2c423714665f44ed8c357fef7c1d8872afbf766d5246d05963b7a9daf48173082ab381f3d99693142e3d83c47ac6e14f951a3e293c6701b2013059
|
7
|
+
data.tar.gz: 3129581e7aa9bd613adfa9ccd503240890420c64d13ef5d651f13d1fe561ab13f85a276184dad64b26ec9d36d007d575423eeaf35629d66ddd16bc586088a111
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -18,8 +18,9 @@ group :test do
|
|
18
18
|
gem 'backports'
|
19
19
|
gem 'coveralls', :require => false
|
20
20
|
gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
|
21
|
+
gem 'rest-client', '~> 1.6.0', :platforms => [:jruby, :ruby_18]
|
21
22
|
gem 'rspec', '>= 2.14'
|
22
|
-
gem 'rubocop', '>= 0.
|
23
|
+
gem 'rubocop', '>= 0.23', :platforms => [:ruby_19, :ruby_20, :ruby_21]
|
23
24
|
gem 'simplecov', :require => false
|
24
25
|
gem 'webmock'
|
25
26
|
gem 'yardstick'
|
data/Rakefile
CHANGED
data/congress.gemspec
CHANGED
@@ -2,22 +2,22 @@
|
|
2
2
|
require File.expand_path('../lib/congress/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
|
-
spec.add_dependency 'faraday', '~> 0.
|
6
|
-
spec.add_dependency 'faraday_middleware', '~> 0.9.
|
5
|
+
spec.add_dependency 'faraday', '~> 0.9.0'
|
6
|
+
spec.add_dependency 'faraday_middleware', '~> 0.9.1'
|
7
7
|
spec.add_dependency 'hashie', '~> 2.0'
|
8
8
|
spec.add_dependency 'json', '~> 1.8'
|
9
9
|
spec.add_dependency 'rash', '~> 0.4'
|
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.description =
|
13
|
+
spec.description = 'Ruby wrapper for the Sunlight Congress API, a live JSON API for the people and work of Congress, provided by the Sunlight Foundation.'
|
14
14
|
spec.email = 'sferik@gmail.com'
|
15
15
|
spec.files = `git ls-files`.split("\n")
|
16
16
|
spec.homepage = 'https://github.com/codeforamerica/congress'
|
17
17
|
spec.licenses = ['MIT']
|
18
18
|
spec.name = 'congress'
|
19
19
|
spec.require_paths = ['lib']
|
20
|
-
spec.summary =
|
20
|
+
spec.summary = 'Ruby wrapper for the Sunlight Congress API'
|
21
21
|
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
22
22
|
spec.version = Congress::VERSION
|
23
23
|
end
|
data/lib/congress/version.rb
CHANGED
@@ -23,7 +23,9 @@ describe Congress::Client do
|
|
23
23
|
describe '#legislators_locate' do
|
24
24
|
context 'with a zip code passed' do
|
25
25
|
before do
|
26
|
-
stub_get('/legislators/locate').with(:query =>
|
26
|
+
stub_get('/legislators/locate').with(:query => {:zip => '06511'}).
|
27
|
+
to_return(:status => 200, :body => fixture('legislators_locate.json'))
|
28
|
+
stub_get('/legislators/locate').with(:query => {:zip => '94107'}).
|
27
29
|
to_return(:status => 200, :body => fixture('legislators_locate.json'))
|
28
30
|
end
|
29
31
|
it 'fetches representatives and senators for a zip code' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: congress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Michaels-Ober
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.9.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.9.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday_middleware
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.9.
|
33
|
+
version: 0.9.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.9.
|
40
|
+
version: 0.9.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: hashie
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|