<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,20 +4,22 @@ require File.join(dir, 'sunshine')
 
 Sunshine.api_key = File.read(File.join(dir, '..', '.sunlight_api_key'))
 
-# filing = Sunshine::DisclosureFiling.find('29D4D19E-CB7D-46D2-99F0-27FF15901A4C')
-# filing.lobbyists.each do |lob|
-#   puts lob.full_name
-# end
-# 
-# filing = Sunshine::DisclosureFiling.find(:first, {:client_name =&gt; 'Sunlight Foundation'})
-# filing.lobbyists.each do |lob|
-#   puts &quot;-- #{lob.full_name}&quot;
-# end
-# 
-# results = Sunshine::Lobbyist.search('Thompson')
-# results.each do |score, lobbyist|
-#   puts &quot;SCORE:#{score} LOBBYIST:#{lobbyist.full_name}&quot;
-# end
+# search_results = Sunshine::Lobbyist.search('Willian Corr')
+
+filing = Sunshine::DisclosureFiling.find('29D4D19E-CB7D-46D2-99F0-27FF15901A4C')
+filing.lobbyists.each do |lob|
+  puts lob.full_name
+end
+
+filing = Sunshine::DisclosureFiling.find(:first, {:client_name =&gt; 'Sunlight Foundation'})
+filing.lobbyists.each do |lob|
+  puts &quot;-- #{lob.full_name}&quot;
+end
+
+results = Sunshine::Lobbyist.search('Thompson')
+results.each do |score, lobbyist|
+  puts &quot;SCORE:#{score} LOBBYIST:#{lobbyist.full_name}&quot;
+end
 
 results = Sunshine::Lobbyist.search('Willian Corr')
 william = results.first[1]</diff>
      <filename>examples/lobbyist_example.rb</filename>
    </modified>
    <modified>
      <diff>@@ -28,9 +28,16 @@ module Sunshine
     # == Examples
     #
     #    Lobbyist.search('Thompson')
-    #    Lobbyist.search('Thompson', {:threshold =&gt; 0.5})
+    #    Lobbyist.search('Thompson', {:threshold =&gt; 0.9})
     #    Lobbyist.search('Thompson', {:year =&gt; 2008})
     # 
+    # Note:  Sunlight recommends that you do not set the threshold below 0.9, which 
+    # is the default Sunlight uses.  Also, all searches are scoped to the current year 
+    # unless you explicitly set one.
+    #
+    # ATTN: There is a bug in the Sunlight API that shows an invalid param when you set
+    # the year.
+    #
     # Returns an &lt;tt&gt;Array&lt;tt&gt; of &lt;tt&gt;[score, &lt;Lobbyist&gt;]&lt;tt&gt; results.     
     def self.search(name_query, options = {})
       options = {:name =&gt; name_query}.merge!(options)</diff>
      <filename>lib/sunshine/lobbyist.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,33 @@
 require 'spec/spec_helper'
+include Sunshine
 
 describe Lobbyist do
   before do
-    #@lobbyists.search('Sunlight Foundation')
+    @lobbyists = Lobbyist.search('William Corr')
   end
   
-  it &quot;should exclude firstname and lastname from instance&quot; do
-    @speaker.class.keys_to_exclude.should be(['firstname', 'lastname'])
+  it &quot;should find lobbyists&quot; do
+    score = @lobbyists.first[0]
+    lobbyist = @lobbyists.first[1]
+    
+    score.should == 1.0
+    lobbyist.should be_instance_of(Lobbyist)
+  end
+  
+  it &quot;should lazily load filings&quot; do
+    lobbyist = @lobbyists.first[1]
+    
+    filing_var = lobbyist.send(:instance_variable_get, &quot;@filings&quot;)
+    filing_var.should be(nil)
+    
+    filings = lobbyist.filings
+    filings.first.should be_instance_of(DisclosureFiling)
+    
+    filing_var = lobbyist.send(:instance_variable_get, &quot;@filings&quot;)
+    filing_var.should_not == nil
+  end
+  
+  it &quot;should exclude keys from instance&quot; do
+    Lobbyist.keys_to_exclude.should == [:firstname, :lastname, :filings]
   end
 end
\ No newline at end of file</diff>
      <filename>spec/lobbyists_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>db945eb927d8b7d708616e3e74a1aafb2eb4f30b</id>
    </parent>
  </parents>
  <author>
    <name>Justin Palmer</name>
    <email>justin@activereload.net</email>
  </author>
  <url>http://github.com/Caged/sunshine/commit/a66fc047abff9a3cbf0b050df7b4513f0f223711</url>
  <id>a66fc047abff9a3cbf0b050df7b4513f0f223711</id>
  <committed-date>2009-01-22T06:30:38-08:00</committed-date>
  <authored-date>2009-01-22T06:30:38-08:00</authored-date>
  <message>more specs</message>
  <tree>535a4988a6d9611bb9c3ec754693506399d83f70</tree>
  <committer>
    <name>Justin Palmer</name>
    <email>justin@activereload.net</email>
  </committer>
</commit>
