sunlight-congress 1.0.0 → 1.1.0

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: 23996eb98d2ab8efb2afaf9473c06b476cdde19e
4
- data.tar.gz: 555166c034e865f12ae8d3a82892e0df900b8fdf
3
+ metadata.gz: d3ba7c35b68e5aa04330585c4e1c2a1120ea6257
4
+ data.tar.gz: 926b4f4e639371bbc2e3769b83e1bb011af15b05
5
5
  SHA512:
6
- metadata.gz: 8023cc8e9bdab5d502e5ef337d4f033ac4683b40fdd10ab007f808a26a99cf577f53640e7724c05ec8459b075c39c3e2c30903aaec75c32010b76a52067180aa
7
- data.tar.gz: 6f661c42cf18d0d1ee6a5303b653c6ca01c47dde09dd396797fc9f3587f51ce01368aeb79bb2b3a306443362b76a1fe9e78f80350f04423cd4c7fd0d96de64f8
6
+ metadata.gz: c2595d089b58591d609adbc45d1ea6208551e5499f615b51ff2b970b0b912c2ae5f7e21f38534615d73b540a921ca13e83f727e5b0367e89d23c6e76bbf96c24
7
+ data.tar.gz: 3081b8407438839d4367b02921410d0ad734bef2f6f49e81b99258a1b3397cd97c07a2a893bc7a18c60ffa7a2ec3b1a004563a51c8f864fa0b334779415df3c5
@@ -7,11 +7,12 @@ module Sunlight
7
7
  end
8
8
 
9
9
  class Sunlight::Congress::Legislator
10
- attr_accessor :first_name, :last_name
10
+ attr_accessor :first_name, :last_name, :website
11
11
 
12
12
  def initialize(options)
13
13
  self.first_name = options["first_name"]
14
14
  self.last_name = options["last_name"]
15
+ self.website = options["website"]
15
16
  end
16
17
 
17
18
  def self.by_zipcode(zipcode)
@@ -1,5 +1,5 @@
1
1
  module Sunlight
2
2
  module Congress
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -1,7 +1,7 @@
1
1
  require 'sunlight/congress'
2
2
 
3
3
  class TestIntegrationCongress < MiniTest::Unit::TestCase
4
- ['first_name', 'last_name'].each do |attr|
4
+ ['first_name', 'last_name', 'website'].each do |attr|
5
5
  define_method "test_#{attr}" do
6
6
  l = Sunlight::Congress::Legislator.new(attr => "foo")
7
7
  assert_equal "foo", l.send(attr)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunlight-congress
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Klabnik