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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5516ea302639f934b2fcba072da933205a5bec83
4
- data.tar.gz: 9af7c88cd0983c83a733c577a01e9f44727ad67c
3
+ metadata.gz: a23612d42cc9dd53b63914cd536e8009efd57cc1
4
+ data.tar.gz: c6eb4addce0d67b5809d2c2df3b2955cabe34e0d
5
5
  SHA512:
6
- metadata.gz: 1779fe53f8cddf90e2f3772fd52fc662230c99505be175ae88a48116327d9663b096e283daa0826776e55cbcb35e7ee0c64332ea9ce8a96215a1f9cb3264a3bb
7
- data.tar.gz: d77c88f13a9c5d87503eec2952eeab89fdce5507c1358ccc80a7c5219d5d9f6a50756d4ff08a9823c840b3c9f525b32f312c775c204cae68339dd4e1eae4e7b7
6
+ metadata.gz: 72386d7c5d2c423714665f44ed8c357fef7c1d8872afbf766d5246d05963b7a9daf48173082ab381f3d99693142e3d83c47ac6e14f951a3e293c6701b2013059
7
+ data.tar.gz: 3129581e7aa9bd613adfa9ccd503240890420c64d13ef5d651f13d1fe561ab13f85a276184dad64b26ec9d36d007d575423eeaf35629d66ddd16bc586088a111
@@ -10,7 +10,7 @@ rvm:
10
10
  - 1.9.2
11
11
  - 1.9.3
12
12
  - 2.0.0
13
- - 2.1.0
13
+ - 2.1
14
14
  - rbx-2
15
15
  - ruby-head
16
16
  matrix:
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.20', :platforms => [:ruby_19, :ruby_20, :ruby_21]
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
@@ -8,10 +8,10 @@ task :test => :spec
8
8
 
9
9
  begin
10
10
  require 'rubocop/rake_task'
11
- Rubocop::RakeTask.new
11
+ RuboCop::RakeTask.new
12
12
  rescue LoadError
13
13
  task :rubocop do
14
- $stderr.puts 'Rubocop is disabled'
14
+ $stderr.puts 'RuboCop is disabled'
15
15
  end
16
16
  end
17
17
 
@@ -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.8.7'
6
- spec.add_dependency 'faraday_middleware', '~> 0.9.0'
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 = %q(Ruby wrapper for the Sunlight Congress API, a live JSON API for the people and work of Congress, provided by the Sunlight Foundation.)
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 = %q(Ruby wrapper for the Sunlight Congress API)
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
@@ -1,3 +1,3 @@
1
1
  module Congress
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
@@ -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 => hash_including('zip')).
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.3
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-04-04 00:00:00.000000000 Z
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.8.7
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.8.7
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.0
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.0
40
+ version: 0.9.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: hashie
43
43
  requirement: !ruby/object:Gem::Requirement