govkit 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/gov_kit.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__))) unless $LOAD_PATH.include?(File.expand_path(File.dirname(__FILE__)))
2
2
 
3
3
  require 'digest/md5'
4
- require 'active_support'
5
4
  require 'nokogiri'
6
5
  require 'iconv'
7
6
  require 'httparty'
@@ -0,0 +1,8 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/0.6.35
3
+ Date: Tue, 15 Jun 2010 21:50:08 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Connection: close
6
+ Vary: Authorization
7
+
8
+ {"bills":[{"bill_type":"h","number":501,"sponsor_id":400009,"lastaction":1240462800,"topresident_date":1240462800,"last_vote_roll":null,"session":111,"topresident_datetime":"2009-04-23","last_speech":null,"id":54173,"page_views_count":1043,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1231912800,"key_vote_category_id":null,"news_article_count":null,"summary":"\t1/14/2009--Introduced.America's Right-to-Eat Rescue Act of 2009 - Applies the poverty line used in making eligibility determinations under the Food Stamp and School Lunch programs in Alaska, for a specified six-month period, to the same eligibility determinations in all states and the District of Columbia.","blog_article_count":41,"last_vote_where":null,"plain_language_summary":null,"updated":"2010-12-30T07:41:18-05:00"},{"bill_type":"s","number":501,"sponsor_id":300025,"lastaction":1126065600,"topresident_date":null,"last_vote_roll":null,"session":109,"topresident_datetime":null,"last_speech":1113364800,"id":33538,"page_views_count":96,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1109826000,"key_vote_category_id":null,"news_article_count":null,"summary":"\t<br/>7/29/2005--Passed Senate, amended. (There are 2 other summaries)<br/>National Women's History Museum Act of 2005 - Requires the Administrator of General Services to enter into an occupancy agreement to make the Pavilion Annex (the building and specified immediate surroundings, including any land unoccupied as of the enactment of this Act) in Washington, D.C. available to the National Women's History Museum, Inc. (Museum Sponsor) for a National Women's History Museum, for at least 99 years or any lesser term agreed to by the Museum Sponsor.<br/>Prohibits use of any federal funds to establish, construct or operate the Museum.<br/>","blog_article_count":1,"last_vote_where":null,"plain_language_summary":null,"updated":null},{"bill_type":"s","number":501,"sponsor_id":300084,"lastaction":1235628000,"topresident_date":1235628000,"last_vote_roll":null,"session":111,"topresident_datetime":"2009-02-26","last_speech":null,"id":55410,"page_views_count":1467,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1235628000,"key_vote_category_id":null,"news_article_count":1,"summary":"\t2/26/2009--Introduced.Fair Prescription Drug Competition Act - Amends the Federal Food, Drug, and Cosmetic Act to prohibit a holder of a new, approved drug application from commencing to manufacture, market, sell, or distribute a generic version of such drug from the time of the receipt of notice from the generic manufacturer that an abbreviated new drug application has been submitted for approval until the expiration or forfeiture of the exclusivity period granted to the generic manufacturer. ","blog_article_count":52,"last_vote_where":null,"plain_language_summary":null,"updated":"2010-12-31T06:47:08-05:00"},{"bill_type":"s","number":501,"sponsor_id":300062,"lastaction":1170738000,"topresident_date":1170738000,"last_vote_roll":null,"session":110,"topresident_datetime":"2007-02-06","last_speech":null,"id":40870,"page_views_count":643,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1170738000,"key_vote_category_id":null,"news_article_count":1,"summary":"\t2/6/2007--Introduced.<br/>Declares Ilko Vasilev Ivanov, Anelia Marinova Peneva, Marina Ilkova Ivanova, and Julia Ilkova Ivanova to have been lawfully admitted to the United States for permanent residence under the Immigration and Nationality Act upon payment of the required visa fees. ","blog_article_count":2,"last_vote_where":null,"plain_language_summary":null,"updated":"2008-11-07T08:21:03-05:00"},{"bill_type":"hr","number":501,"sponsor_id":400065,"lastaction":1244151720,"topresident_date":1244151720,"last_vote_roll":null,"session":111,"topresident_datetime":"2009-06-04","last_speech":null,"id":58071,"page_views_count":800,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1244005200,"key_vote_category_id":null,"news_article_count":null,"summary":"\t6/3/2009--Introduced.Sets forth the rule for consideration of the bill (H.R. 626) to provide that 4 of the 12 weeks of parental leave made available to a Federal employee shall be paid leave.","blog_article_count":8,"last_vote_where":null,"plain_language_summary":null,"updated":"2010-12-31T02:06:08-05:00"},{"bill_type":"hr","number":501,"sponsor_id":400261,"lastaction":1129742400,"topresident_date":null,"last_vote_roll":null,"session":109,"topresident_datetime":null,"last_speech":1129737605,"id":32694,"page_views_count":9,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1129694400,"key_vote_category_id":null,"news_article_count":null,"summary":"\t<br/>10/19/2005--Passed House, without amendment. (There is 1 other summary)<br/>(This measure has not been amended since it was introduced. The summary of that version is repeated here.)<br/>Sets forth the rule for consideration of the Senate amendment to H.R. 3971 (Social Services Emergency Relief and Recovery Act of 2005). Agrees to the Senate amendment with an amendment.<br/>","blog_article_count":null,"last_vote_where":null,"plain_language_summary":null,"updated":null},{"bill_type":"hc","number":501,"sponsor_id":400195,"lastaction":1165467600,"topresident_date":null,"last_vote_roll":null,"session":109,"topresident_datetime":null,"last_speech":0,"id":39149,"page_views_count":203,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1165467600,"key_vote_category_id":null,"news_article_count":null,"summary":"\t12/7/2006--Introduced.<br/>Expresses the sense of Congress that: (1) the U.S. government should submit a draft bilateral status-of-forces agreement to the government of Iraq by June 1, 2007; and (2) such agreement should address the sovereign rights of Iraq, address the legal status of U.S. personnel in Iraq, and establish primacy and coordinative mechanisms with respect to investigations and operations involving U.S. and Iraqi forces, including civilian police forces. ","blog_article_count":null,"last_vote_where":null,"plain_language_summary":null,"updated":null},{"bill_type":"sr","number":501,"sponsor_id":300004,"lastaction":1149566400,"topresident_date":null,"last_vote_roll":null,"session":109,"topresident_datetime":null,"last_speech":1149609604,"id":28813,"page_views_count":11,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1149566400,"key_vote_category_id":null,"news_article_count":null,"summary":"\t<br/>6/6/2006--Passed Senate, without amendment. (There is 1 other summary)<br/>(This measure has not been amended since it was introduced. The summary of that version is repeated here.)<br/>Congratulates the University of Virginia Cavaliers men's lacrosse team for winning the 2006 National Collegiate Athletic Association (NCAA) Division I National Championship.<br/>","blog_article_count":null,"last_vote_where":null,"plain_language_summary":null,"updated":null},{"bill_type":"s","number":501,"sponsor_id":400546,"lastaction":1299564000,"topresident_date":1299564000,"last_vote_roll":null,"session":112,"topresident_datetime":"2011-03-08","last_speech":null,"id":68837,"page_views_count":323,"caption":null,"is_frontpage_hot":null,"last_vote_date":null,"pl":null,"introduced":1299564000,"key_vote_category_id":null,"news_article_count":1,"summary":"\t3/8/2011--Introduced.Fostering Independence Through Technology Act of 2011 - Directs the Secretary of Health and Human Services (HHS) to conduct pilot projects under title XVIII (Medicare) of the Social Security Act for the purpose of providing incentives to home health agencies to utilize home monitoring and communications technology. ","blog_article_count":3,"last_vote_where":null,"plain_language_summary":null,"updated":"2011-05-27T06:23:07-04:00"},{"bill_type":"hr","number":501,"sponsor_id":400046,"lastaction":1185852480,"topresident_date":1185852480,"last_vote_roll":null,"session":110,"topresident_datetime":"2007-07-30","last_speech":null,"id":44721,"page_views_count":334,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1182312000,"key_vote_category_id":null,"news_article_count":null,"summary":"\t7/30/2007--Passed House without amendment. (This measure has not been amended since it was introduced. The summary of that version is repeated here.) Commends Craig Biggio of the Houston Astros for reaching 3,000 base hits as a Major League Baseball player and for his outstanding service to the community through his charitable work and dedication to the Houston Astros organization.<br/>","blog_article_count":4,"last_vote_where":null,"plain_language_summary":null,"updated":"2008-11-07T04:47:08-05:00"},{"bill_type":"h","number":501,"sponsor_id":400378,"lastaction":1109307600,"topresident_date":null,"last_vote_roll":null,"session":109,"topresident_datetime":null,"last_speech":0,"id":38124,"page_views_count":294,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1107234000,"key_vote_category_id":null,"news_article_count":null,"summary":"\t<br/>2/1/2005--Introduced.<br/>Fairness and Accountability in Broadcasting Act - Amends the Communications Act of 1934 to prohibit the Federal Communications Commission (FCC) from issuing or renewing any license for a broadcasting station based upon a finding that the issuance or renewal serves the public interest, convenience, and necessity unless such station: (1) covers issues of importance to the local community in a fair manner, taking into account diverse interests and viewpoints of the local community; (2) holds two public hearings each year in the local community to ascertain the needs and interests of the local communities that they serve; and (3) documents and reports in writing, on a biannual basis to the FCC, the programming that is broadcast to cover the issues of public importance as ascertained through the hearings process, and how such coverage reflects the diverse interests and viewpoints in the local community.<br/>Allows any interested person to file a petition with the FCC to deny a license renewal for a broadcast station's failure to follow the above requirements.<br/>Reduces from eight to four years the term of a broadcast license.<br/>","blog_article_count":1,"last_vote_where":null,"plain_language_summary":null,"updated":null},{"bill_type":"sr","number":501,"sponsor_id":300059,"lastaction":1207195200,"topresident_date":1207195200,"last_vote_roll":null,"session":110,"topresident_datetime":"2008-04-03","last_speech":null,"id":50756,"page_views_count":1078,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1207195200,"key_vote_category_id":null,"news_article_count":null,"summary":"\t4/3/2008--Passed Senate without amendment. (This measure has not been amended since it was introduced. The summary of that version is repeated here.) Honors the service and sacrifice of, and identifies, the 4,009 men and women who lost their lives in support of Operation Iraqi Freedom, and 487 men and women who lost their lives in support of Operation Enduring Freedom, as of April 3, 2008. Honors their families and loved ones.<br/>","blog_article_count":10,"last_vote_where":null,"plain_language_summary":null,"updated":"2008-11-07T16:19:49-05:00"},{"bill_type":"h","number":501,"sponsor_id":400193,"lastaction":1168923600,"topresident_date":1168923600,"last_vote_roll":null,"session":110,"topresident_datetime":"2007-01-16","last_speech":0,"id":40123,"page_views_count":465,"caption":null,"is_frontpage_hot":false,"last_vote_date":0,"pl":null,"introduced":1168923600,"key_vote_category_id":null,"news_article_count":null,"summary":"\t1/16/2007--Introduced.<br/>Valerie Plame Wilson Compensation Act - Provides for the relief of Valerie Plame Wilson.<br/>","blog_article_count":21,"last_vote_where":null,"plain_language_summary":null,"updated":"2008-11-06T13:43:19-05:00"},{"bill_type":"h","number":501,"sponsor_id":400253,"lastaction":1298613600,"topresident_date":1298613600,"last_vote_roll":null,"session":112,"topresident_datetime":"2011-02-25","last_speech":null,"id":67887,"page_views_count":494,"caption":null,"is_frontpage_hot":null,"last_vote_date":null,"pl":null,"introduced":1296021600,"key_vote_category_id":null,"news_article_count":2,"summary":"\t1/26/2011--Introduced.Implementing the Recommendations of the BP Oil Spill Commission Act of 2011 - Establishes in the Department of the Interior: (1) a Bureau of Ocean Energy Management to administer a program of offshore energy and mineral resources management on the Outer Continental Shelf (OCS); (2) a Bureau of Safety and Environmental Enforcement to administer safety and environmental enforcement activities related to such resources; (3) a National Oil and Gas Health and Safety Academy to train Department of the Interior personnel; and (4) an Office of Natural Resources Revenue to administer offshore royalty and revenue management functions. Abolishes the Minerals Management Service and transfers specified functions to such Bureaus and Office. Requires the Secretary of the Interior to: (1) certify compliance with federal employee ethics laws annually; and (2) establish an Outer Continental Shelf Safety and Environmental Advisory Board to advise the Secretary and the Directors of such Bureaus on safe and environmentally compliant energy and mineral resource exploration, development, and production activities. Outer Continental Shelf Lands Act Amendments of 2011 - Amends the Outer Continental Shelf Lands Act, including by: (1) establishing and revising regulations to provide for operational safety and the protection of the marine and coastal environment of OCS natural resources; (2) setting forth minimum requirements for regulatory standards for blowout preventers, well design, and cementing; (3) requiring the Secretary to review the minimum financial responsibility requirements for leases by May 11, 2011, and every five years thereafter; (4) limiting an oil and gas lease of submerged OCS lands to a tract of 5,760 acres; (5) requiring geological exploration permits to include environmental and natural resource conservation requirements; (6) increasing civil penalties for violations; (7) directing the Secretary to require that lessees obtain a permit prior to any significant modification of a well design; (8) requiring lessees to submit development and production plans for oil and gas leases in the Gulf of Mexico; (9) revoking provisions concerning royalty relief for oil and gas leases in the Planning Areas offshore Alaska; (10) requiring the President to publish a final determination of the boundaries of coastal states projected seaward to the outer margin of the OCS; and (11) prohibiting the Secretary from issuing any license or permit authorizing drilling for oil and gas on the OCS unless the applicant has an approved response plan. Requires the Secretary to take action to apply such requirements to existing leases. Amends the Clean Air Act to require the Chemical Safety and Hazard Investigation Board to make recommendations on preventing an accidental fire, explosion, or release involving an offshore oil or gas exploration or production facility to the Secretary and the Commandant of the Coast Guard. Amends the Energy Policy Act of 2005 to repeal provisions relating to: (1) incentives for natural gas production from deep wells in shallow waters in the Gulf of Mexico; (2) royalty relief for deep water production in the Gulf of Mexico; and (3) a rebuttable presumption that the use of a categorical exclusion under the National Environmental Policy Act of 1969 would apply to specified actions by the Secretary in managing the public lands, or to the Secretary of Agriculture in managing National Forest System Lands, if the activity is conducted pursuant to the Mineral Leasing Act for the purpose of exploration or development of oil or gas. Royalty Relief for American Consumers Act of 2011 - Sets forth requirements concerning: (1) payment responsibilities for issuing new leases or transferring leases that authorize the production of oil or natural gas; and (2) new or revised price thresholds applicable to royalty suspension provisions. Amends the Federal Oil and Gas Royalty Management Act of 1982 to increase civil penalties for violations of such Act. Directs the Secretary of the Interior to: (1) complete a pilot project assessing costs and benefits of automatic transmission of certain data produced under federal leases on the OCS; (2) ensure accurate determination and reporting of BTU values of natural gas from federal leases to ensure accurate royalty payments; (3) publish regulations concerning required recordkeeping of natural gas measurement data; and (4) publish regulations prescribing when a lessee must report and pay royalties on oil and gas. Applies any royalty under an OCS lease to oil that is saved, removed, sold, or discharged, without regard to whether the oil is lost or used on, or for the benefit of, the lease. Gulf Coast Restoration Act - Establishes: (1) the Gulf Coast Ecosystem Restoration Fund for the conservation, protection, and restoration of the Gulf Coast in accordance with State Coastal Ecosystem Restoration Plans; and (2) the Gulf Coast Ecosystem Restoration Task Force to review and approve such plans. Requires the Chairman of the Council on Environmental Quality (CEQ) to establish or designate a Regional Coordination Council for each of the Coordination Regions designated by this Act, which shall submit to CEQ strategic plans to foster comprehensive, integrated, and sustainable development and use of ocean, coastal, and Great Lakes resources, while protecting marine ecosystem health and sustaining the long-term economic and ecosystem values of such waters. Establishes the Ocean Resources Conservation and Assistance Fund, amounts from which shall be used for activities and grants that contribute to the conservation, protection, maintenance, and restoration of ocean, coastal, and Great Lakes ecosystems. Oil Spill Accountability and Environmental Protection Act of 2011 - Amends the Oil Pollution Act of 1990 to: (1) repeal the limitation on the liability of the responsible party for an offshore facility for damages and removal costs that result from a discharge of oil into or upon the navigable waters or adjoining shorelines or the U.S. exclusive economic zone (EEZ); (2) increase the amount of financial responsibility required for offshore facilities and guarantors of an offshore facility to $300 million; (3) make responsible parties for vessels or facilities from which oil is discharged liable for damages to human health; (4) authorize the President to require a responsible party to provide information about claims in the event of a spill of national significance; and (5) extend liability to any corporation, partnership, or other person (other than an individual) having an ownership interest exceeding 25% in any responsible party. Limits the: (1) exploration, development, or production of resources in, on, above, or below the EEZ to vessels owned by U.S. citizens; and (2) exploration, development, or production of oil or natural gas in, on, above, or below the EEZ to facilities built in the United States. Sets forth provisions concerning safety management systems and standards for mobile offshore drilling units. Amends the Federal Water Pollution Control Act (commonly known as the Clean Water Act) to: (1) revoke the President's authorization to allow tank vessels and facilities to operate without a plan to respond to the discharge of oil or hazardous substances; and (2) require the National Contingency Plan to include guidelines regarding the use of containment booms to contain a discharge of oil or a hazardous substance. Requires the President to: (1) issue a revised regulation for the development of the schedule for the use of dispersants, other chemicals, and other spill mitigating devices and substances; (2) undertake a rulemaking concerning standards for ceasing and removing a worst case discharge of oil or a hazardous substance and for mitigating or preventing a substantial threat of such discharge; (3) create a database to track all discharges of oil or hazardous substances; and (4) delegate specified responsibilities with respect to oil discharges to the Administrator of the Environmental Protection Agency (EPA), the Secretary of the department in which the Coast Guard is operating, the Secretary of Transportation (DOT), and the Secretary of the Interior. Requires the Commandant to inventory and maintain a database of vessels operating in U.S. waters that are capable of meeting oil spill responses needs designated in the National Contingency Plan. Oil Pollution Research and Development Program Reauthorization Act of 2011 - Amends the Oil Pollution Research and Development Program, including by: (1) revising membership requirements of the Interagency Coordinating Committee on Oil Pollution Research; (2) requiring such Committee to develop a national information clearinghouse on oil discharge; (3) removing requirements that the Coast Guard conduct port oil pollution minimization demonstration projects with the Port Authority of New York and New Jersey and the Port of New Orleans, Louisiana; and (4) requiring such Committee to establish the Oil Pollution Research Advisory Committee. Amends the Internal Revenue Code to eliminate: (1) the $1 billion per incident limitation on expenditures from the Oil Spill Liability Trust Fund for cleanup of oil spills; and (2) restrictions on the borrowing authority of such Trust Fund. Amends the Naval Petroleum Reserves Production Act of 1976 to repeal provisions concerning: (1) renewing leasing of oil and gas in the National Petroleum Reserve in Alaska; (2) expiration of a lease if no oil or gas is produced from a lease within 30 years of its issuance; (3) expiration of a lease covering lands capable of producing oil or gas in paying quantities for failing to produce such quantities due to circumstances beyond the lessee's control; and (4) waiving, suspending, or reducing rental fees or royalties. Amends the National Wildlife Refuge System Administration Act of 1966 to make any person or instrumentality that destroys, causes the loss of, or injures any refuge resource liable for the amount of the response costs and resulting damages and interest on amounts paid in satisfaction of claims under such Act. Amends the Coastal Zone Management Act of 1972 (CZMA) to authorize the Secretary of Commerce to make grants to coastal states to ensure sufficient response capabilities to address impacts of oil spills. Requires the Secretary of the Interior to establish a Flow Rate Technical Group to develop expertise in measuring and estimating flow rates and spill volumes. Study of Ways to Improve the Accuracy of the Collection of Federal Oil, Condensate, and Natural Gas Royalties Act of 2011 - Requires the Secretary of the Interior to enter into an arrangement with the National Academy of Engineering to study whether any of specified actions would improve the accuracy of collection of royalties on production of oil, condensate, and natural gas under leases of federal lands (including submerged and deep water lands) and Indian lands. Offshore Oil and Gas Worker Whistleblower Protection Act of 2011 - Prohibits employers from discharging, or discriminating against, a covered employee for providing information for, or participating in, proceedings related to violations of the Outer Continental Shelf Lands Act.","blog_article_count":36,"last_vote_where":null,"plain_language_summary":null,"updated":"2011-06-21T06:10:28-04:00"},{"bill_type":"sr","number":501,"sponsor_id":412246,"lastaction":1272344400,"topresident_date":1272344400,"last_vote_roll":null,"session":111,"topresident_datetime":"2010-04-27","last_speech":null,"id":63975,"page_views_count":493,"caption":null,"is_frontpage_hot":null,"last_vote_date":null,"pl":null,"introduced":1272344400,"key_vote_category_id":null,"news_article_count":0,"summary":"\t4/27/2010--Passed Senate without amendment. (This measure has not been amended since it was introduced. The summary of that version is repeated here.) Expresses support for the goals and ideals of National Sexual Assault Awareness and Prevention Month. Calls for recognition of: (1) national and community organizations and private sector supporters for their work in promoting awareness about sexual assault, providing information and treatment to survivors of sexual assault, and increasing the number of successful prosecutions of perpetrators of sexual assault; and (2) public safety, law enforcement, and health professionals for their hard work and innovative strategies to increase the percentage of sexual assault cases that result in the prosecution and incarceration of the offenders. Urges national and community organizations, private businesses, colleges and universities, and the media to promote, through such Month, awareness of sexual violence and strategies to decrease the incidence of sexual assault. ","blog_article_count":6,"last_vote_where":null,"plain_language_summary":null,"updated":"2010-12-31T17:50:36-05:00"}]}
@@ -0,0 +1,8 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/0.6.35
3
+ Date: Tue, 15 Jun 2010 21:50:08 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Connection: close
6
+ Vary: Authorization
7
+
8
+ {"bills":[{"bill_type":"h","number":2678,"sponsor_id":400003,"lastaction":1182830400,"topresident_date":1182830400,"last_vote_roll":null,"session":110,"topresident_datetime":"2007-06-26","last_speech":null,"id":45048,"page_views_count":587,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1181620800,"key_vote_category_id":null,"news_article_count":null,"summary":"\t6/12/2007--Introduced.<br/>Prohibits the use of funds appropriated to the Department of Agriculture to approve or contract with any person or entity to approve for human consumption any cow, sheep, pig, goat, or horse, mule, or other equine that does not stand and walk unassisted at any time while the animal is alive at a slaughtering, packing, meat-canning, rendering, or similar establishment.<br/>","blog_article_count":5,"last_vote_where":null,"plain_language_summary":null,"updated":"2008-11-06T17:59:06-05:00"},{"bill_type":"h","number":6495,"sponsor_id":400278,"lastaction":1291837260,"topresident_date":1291837260,"last_vote_roll":null,"session":111,"topresident_datetime":"2010-12-08","last_speech":null,"id":66849,"page_views_count":977,"caption":null,"is_frontpage_hot":null,"last_vote_date":1291837260,"pl":null,"introduced":1291356000,"key_vote_category_id":null,"news_article_count":5,"summary":"\t","blog_article_count":53,"last_vote_where":null,"plain_language_summary":null,"updated":"2010-12-31T00:36:24-05:00"},{"bill_type":"hr","number":755,"sponsor_id":412296,"lastaction":1262584800,"topresident_date":1262584800,"last_vote_roll":null,"session":111,"topresident_datetime":"2010-01-04","last_speech":null,"id":59955,"page_views_count":478,"caption":null,"is_frontpage_hot":null,"last_vote_date":null,"pl":null,"introduced":1253163600,"key_vote_category_id":null,"news_article_count":null,"summary":"\t9/17/2009--Introduced.Celebrates the 30th anniversary of the creation of the Department of Justice (DOJ) Office of Special Investigations. ","blog_article_count":3,"last_vote_where":null,"plain_language_summary":null,"updated":"2010-12-31T02:45:32-05:00"},{"bill_type":"h","number":1772,"sponsor_id":400122,"lastaction":1304658000,"topresident_date":1304658000,"last_vote_roll":null,"session":112,"topresident_datetime":"2011-05-06","last_speech":null,"id":70261,"page_views_count":138,"caption":null,"is_frontpage_hot":null,"last_vote_date":null,"pl":null,"introduced":1304571600,"key_vote_category_id":null,"news_article_count":0,"summary":"\t","blog_article_count":5,"last_vote_where":null,"plain_language_summary":null,"updated":"2011-06-03T06:18:24-04:00"},{"bill_type":"s","number":33,"sponsor_id":300018,"lastaction":1106542800,"topresident_date":null,"last_vote_roll":null,"session":109,"topresident_datetime":null,"last_speech":1106611200,"id":38934,"page_views_count":94,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1106542800,"key_vote_category_id":null,"news_article_count":null,"summary":"\t<br/>1/24/2005--Introduced.<br/>Electricity Needs Rules and Oversight Now (ENRON) Act - Amends the Federal Power Act to declare unlawful the use in contravention of Federal Energy Regulatory Commission (FERC) regulations of any manipulative or deceptive device or contrivance in connection with the purchase or sale of electric energy or the purchase or sale of transmission services subject to FERC jurisdiction, including rates and charges that result from such manipulative or deceptive device or contrivance.<br/>","blog_article_count":null,"last_vote_where":null,"plain_language_summary":null,"updated":null},{"bill_type":"h","number":2794,"sponsor_id":400310,"lastaction":1182312000,"topresident_date":1182312000,"last_vote_roll":null,"session":110,"topresident_datetime":"2007-06-20","last_speech":null,"id":44711,"page_views_count":376,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1182312000,"key_vote_category_id":null,"news_article_count":3,"summary":"\t6/20/2007--Introduced.<br/>America's Partnership for Nursing Education Act of 2007 - Amends the Public Health Service Act to require the Secretary of Health and Human Services to make grants to states that are experiencing explosive population growth and have a substantial projected shortage of nurses to increase the number of qualified nursing faculty in college and university nursing programs in the state. ","blog_article_count":7,"last_vote_where":null,"plain_language_summary":null,"updated":"2008-11-06T18:20:49-05:00"},{"bill_type":"s","number":2496,"sponsor_id":300009,"lastaction":1197954000,"topresident_date":1197954000,"last_vote_roll":null,"session":110,"topresident_datetime":"2007-12-18","last_speech":null,"id":48250,"page_views_count":619,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1197954000,"key_vote_category_id":null,"news_article_count":null,"summary":"\t12/18/2007--Introduced.<br/>Enhancing Teaching Standards and License Portability Act of 2007 - Amends the Elementary and Secondary Education Act of 1965 to authorize the Secretary of Education to award a competitive grant to a partnership between an organization representing state educational agency administrators and one or more independent professional organizations that have teacher preparation, licensure, and assessment expertise to: (1) enhance kindergarten through grade 12 teaching standards; (2) develop performance-based teaching assessments that are linked to such standards and can be used for licensing; and (3) provide technical assistance and matching subgrants to states to adopt such teaching standards and assessments, align their licensing systems to such standards, and facilitate teacher license portability across the states. ","blog_article_count":6,"last_vote_where":null,"plain_language_summary":null,"updated":"2008-11-07T12:28:56-05:00"},{"bill_type":"h","number":3032,"sponsor_id":412239,"lastaction":1245819600,"topresident_date":1245819600,"last_vote_roll":null,"session":111,"topresident_datetime":"2009-06-24","last_speech":null,"id":58713,"page_views_count":912,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1245819600,"key_vote_category_id":null,"news_article_count":null,"summary":"\t6/24/2009--Introduced.Climate Change Center and Clearinghouse Act of 2009 - Amends the Small Business Act to establish: (1) the Office of Environment, Energy, and Climate Change within the Small Business Administration (SBA); and (2) the Climate Change Center and Clearinghouse within such Office. Requires the Office to: (1) oversee and administer the Center; (2) promote energy efficiency efforts for, and efforts to reduce energy costs of, small businesses; and (3) oversee efforts by small businesses to develop renewable energy technologies.Requires the Center to: (1) provide information to small businesses on assessing and managing the impacts of climate change and on cost savings and revenue gains possible through carbon credit trading opportunities and federal and state renewable energy and energy efficiency tax relief programs, purchase incentives, and rebate programs; (2) ensure that such information is provided to small businesses on an accessible website and through nationwide workshops; (3) coordinate federal agency efforts to provide support to small businesses for the purpose of maintaining competitiveness while developing green products or services, implementing green business practices, or reducing pollution; (4) develop a baseline study that provides a broad analysis that aggregates small business energy consumption and emissions; (5) raise awareness among small businesses of the information, technical support, and network opportunities made available through the Energy Star Program to reduce energy waste and energy costs; (6) develop a carbon footprint website that contains information on how small business concerns can reduce their carbon footprint, links to other carbon footprint websites, and a calculator for obtaining an estimate of a small business's carbon emissions based on electricity usage, heating fuel usage, and fleet mileage; and (7) develop a marketing plan.Directs: (1) the President to establish an interagency working group to establish goals and priorities for the Center and to provide for interagency coordination of Center activities; and (2) the Administrator of SBA to specify a detailed definition for the terms &quot;green products or services&quot; and &quot;green business practices.&quot;","blog_article_count":4,"last_vote_where":null,"plain_language_summary":null,"updated":"2010-12-30T14:50:47-05:00"},{"bill_type":"s","number":3384,"sponsor_id":400418,"lastaction":1274245200,"topresident_date":1274245200,"last_vote_roll":null,"session":111,"topresident_datetime":"2010-05-19","last_speech":null,"id":64426,"page_views_count":570,"caption":null,"is_frontpage_hot":null,"last_vote_date":null,"pl":null,"introduced":1274245200,"key_vote_category_id":null,"news_article_count":0,"summary":"\t5/19/2010--Introduced.Directs the Government Accountability Office (GAO), in coordination with the National Academy of Engineering, to conduct and submit to Congress a full audit of hurricane protection funding and cost estimates associated with post-Katrina hurricane protection. ","blog_article_count":4,"last_vote_where":null,"plain_language_summary":null,"updated":"2010-12-31T14:26:03-05:00"},{"bill_type":"s","number":1985,"sponsor_id":300025,"lastaction":1131512400,"topresident_date":null,"last_vote_roll":null,"session":109,"topresident_datetime":null,"last_speech":0,"id":32367,"page_views_count":10,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1131512400,"key_vote_category_id":null,"news_article_count":null,"summary":"\t<br/>11/9/2005--Introduced.<br/>Amends the Robert T. Stafford Disaster Relief and Emergency Assistance Act to extend the predisaster hazard mitigation program. ","blog_article_count":null,"last_vote_where":null,"plain_language_summary":null,"updated":null},{"bill_type":"s","number":2648,"sponsor_id":300014,"lastaction":1257141600,"topresident_date":1257141600,"last_vote_roll":null,"session":111,"topresident_datetime":"2009-11-02","last_speech":null,"id":61490,"page_views_count":420,"caption":null,"is_frontpage_hot":null,"last_vote_date":null,"pl":null,"introduced":1257141600,"key_vote_category_id":null,"news_article_count":null,"summary":"\t11/2/2009--Introduced.Amends the Harmonized Tariff Schedule of the United States to suspend temporarily the duty on motor generator units.","blog_article_count":1,"last_vote_where":null,"plain_language_summary":null,"updated":"2010-12-31T12:24:01-05:00"},{"bill_type":"sr","number":505,"sponsor_id":400054,"lastaction":1272517200,"topresident_date":1272517200,"last_vote_roll":null,"session":111,"topresident_datetime":"2010-04-29","last_speech":null,"id":64073,"page_views_count":572,"caption":null,"is_frontpage_hot":null,"last_vote_date":null,"pl":null,"introduced":1272517200,"key_vote_category_id":null,"news_article_count":0,"summary":"\t4/29/2010--Introduced.Congratulates the Duke University team for winning the 2010 NCAA Division I Men's Basketball Tournament. ","blog_article_count":3,"last_vote_where":null,"plain_language_summary":null,"updated":"2010-12-31T17:51:13-05:00"},{"bill_type":"h","number":1736,"sponsor_id":412487,"lastaction":1306990800,"topresident_date":1306990800,"last_vote_roll":null,"session":112,"topresident_datetime":"2011-06-02","last_speech":null,"id":70262,"page_views_count":132,"caption":null,"is_frontpage_hot":null,"last_vote_date":null,"pl":null,"introduced":1304571600,"key_vote_category_id":null,"news_article_count":0,"summary":"\t","blog_article_count":7,"last_vote_where":null,"plain_language_summary":null,"updated":"2011-06-03T06:18:03-04:00"},{"bill_type":"s","number":1229,"sponsor_id":412326,"lastaction":1308200400,"topresident_date":1308200400,"last_vote_roll":null,"session":112,"topresident_datetime":"2011-06-16","last_speech":null,"id":71151,"page_views_count":8,"caption":null,"is_frontpage_hot":null,"last_vote_date":null,"pl":null,"introduced":1308200400,"key_vote_category_id":null,"news_article_count":0,"summary":"\t","blog_article_count":0,"last_vote_where":null,"plain_language_summary":null,"updated":"2011-06-28T06:21:36-04:00"},{"bill_type":"h","number":2981,"sponsor_id":400426,"lastaction":1186718400,"topresident_date":1186718400,"last_vote_roll":null,"session":110,"topresident_datetime":"2007-08-10","last_speech":null,"id":45100,"page_views_count":329,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1184040000,"key_vote_category_id":null,"news_article_count":null,"summary":"\t7/10/2007--Introduced.<br/>Prohibits the issuance of U.S. visas to citizens of Saudi Arabia until the President certifies that the Kingdom of Saudi Arabia does not discriminate on the basis of religious affiliation or heritage when issuing its visas.<br/>","blog_article_count":4,"last_vote_where":null,"plain_language_summary":null,"updated":"2008-11-06T18:52:00-05:00"},{"bill_type":"h","number":5222,"sponsor_id":412011,"lastaction":1202274000,"topresident_date":1202274000,"last_vote_roll":null,"session":110,"topresident_datetime":"2008-02-06","last_speech":null,"id":49001,"page_views_count":1183,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1202274000,"key_vote_category_id":null,"news_article_count":2,"summary":"\t2/6/2008--Introduced.<br/>Semper Fi Act - Rescinds all amounts appropriated by the Consolidated Appropriations Act, 2008 for the city of Berkeley, California, or entities in such city. Transfers the rescinded amounts to the Operation and Maintenance, Marine Corps account of the Department of Defense (DOD) for FY2008, to be used for recruiting.<br/>","blog_article_count":26,"last_vote_where":null,"plain_language_summary":null,"updated":"2008-11-06T23:50:45-05:00"},{"bill_type":"s","number":575,"sponsor_id":300019,"lastaction":1236747600,"topresident_date":1236747600,"last_vote_roll":null,"session":111,"topresident_datetime":"2009-03-11","last_speech":null,"id":55758,"page_views_count":1416,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1236747600,"key_vote_category_id":null,"news_article_count":2,"summary":"\t3/11/2009--Introduced.Clean, Low-Emission, Affordable, New Transportation Efficiency Act - Establishes the Low Greenhouse Gas Transportation Fund. Requires the Administrator of the Environmental Protection Agency (EPA), for each of calendar 2012-2050, to auction 10% of emission allowances established under any EPA program providing for the reduction of greenhouse gas emissions and the auctioning of emission allowances. Requires deposit of auction proceeds into the Fund to implement state and metropolitan planning organization (MPO) greenhouse gas emission reduction plans, and provide funding to transit projects that help reduce such emissions. Requires states and MPOs representing populations of more than 200,000 people to: (1) establish goals for reducing greenhouse gas emissions from the transportation sector for the next 10 years; and (2) develop transportation greenhouse gas emission reduction plans, including supporting lists of prioritized transit projects, that are integrated into state and MPO long-range transportation and transportation improvement plans. Directs the Secretary of Transportation and the EPA Administrator to contract with the Transportation Research Board of the National Academy of Sciences to study and report recommendations for improving research tools and federal data sources necessary to assess the effect of state and local transportation, land use, and environmental plans on motor vehicle use rates and transportation sector greenhouse gas emissions.","blog_article_count":119,"last_vote_where":null,"plain_language_summary":null,"updated":"2010-12-31T06:58:46-05:00"},{"bill_type":"s","number":1273,"sponsor_id":412246,"lastaction":1308805200,"topresident_date":1308805200,"last_vote_roll":null,"session":112,"topresident_datetime":"2011-06-23","last_speech":null,"id":71341,"page_views_count":55,"caption":null,"is_frontpage_hot":null,"last_vote_date":null,"pl":null,"introduced":1308805200,"key_vote_category_id":null,"news_article_count":0,"summary":"\t","blog_article_count":5,"last_vote_where":null,"plain_language_summary":null,"updated":"2011-06-28T06:21:50-04:00"},{"bill_type":"h","number":1675,"sponsor_id":400631,"lastaction":1181880000,"topresident_date":1181880000,"last_vote_roll":null,"session":110,"topresident_datetime":"2007-06-15","last_speech":null,"id":42507,"page_views_count":902,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1174881600,"key_vote_category_id":null,"news_article_count":1,"summary":"\t6/15/2007--Public Law. (This measure has not been amended since it was introduced. The expanded summary of the House reported version is repeated here.)<br/>Preservation Approval Process Improvement Act of 2007 - Directs the Secretary of Housing and Urban Development to suspend mandatory processing of Previous Participation Certificates under the Automated Partners Performance System and permit paper filings of such certificates until the Secretary: (1) revises the December 2006 draft of specified proposed regulations to eliminate unnecessary burdens and disincentives for program participants; and (2) submits such revised draft proposed regulations to certain congressional committees for review.<br/>Instructs the Secretary also to suspend immediately all filing requirements under the Previous Participation Certificate process with respect to limited liability corporate investors who own or expect to own an interest in entities which are allowed or are expected to be allowed specified low-income housing tax credits under the Internal Revenue Code.<br/>","blog_article_count":19,"last_vote_where":null,"plain_language_summary":null,"updated":"2008-11-06T15:43:57-05:00"},{"bill_type":"h","number":6463,"sponsor_id":412216,"lastaction":1216008000,"topresident_date":1216008000,"last_vote_roll":null,"session":110,"topresident_datetime":"2008-07-14","last_speech":null,"id":51564,"page_views_count":528,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1215662400,"key_vote_category_id":null,"news_article_count":null,"summary":"\t7/10/2008--Introduced.<br/>Emergency Energy Cut the Red Tape Now Act of 2008 - Declares without force or effect all: (1) federal prohibitions against the leasing of federal lands or federal submerged lands for exploration, development, or production of oil, gas, or oil shale; (2) federal withdrawals of such lands from such leasing; or (3) federal prohibitions against the expenditure of federal funds for such leasing. Authorizes the Secretary of the Interior to waive the application of any federal law that requires a permit to engage in drilling for oil or gas under a lease of federal lands or federal submerged lands during any period in which the most recent spot market price for West Texas Intermediate crude oil at the domestic spot market at Cushing, Oklahoma, is less than $100 per barrel. Requires such a waiver during any period in which the most recent spot price is equal to or greater than $100 per barrel. Requires the Department of Energy to act as the lead agency to coordinate all applicable federal refinery authorizations and related environmental reviews with respect to a designated refinery. Requires each federal and state agency or official required to provide a federal refinery authorization to cooperate with the Secretary of Energy and comply with deadlines the Secretary establishes. Requires the Secretary to establish a schedule for all federal refinery authorizations with respect to a designated refinery. Requires the Secretary to approve an application for a federal refinery authorization within 30 days after any failure of a federal or state administrative agency or official to complete an approval proceeding in accordance with the schedule established by the Secretary.<br/>","blog_article_count":8,"last_vote_where":null,"plain_language_summary":null,"updated":"2008-11-07T02:16:27-05:00"},{"bill_type":"s","number":399,"sponsor_id":300014,"lastaction":1179288000,"topresident_date":1179288000,"last_vote_roll":null,"session":110,"topresident_datetime":"2007-05-16","last_speech":null,"id":40508,"page_views_count":419,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1169701200,"key_vote_category_id":null,"news_article_count":null,"summary":"\t1/25/2007--Introduced.<br/>Amends title XIX (Medicaid) of the Social Security Act to include podiatrists as physicians in order to cover their services under the Medicaid program.<br/>","blog_article_count":26,"last_vote_where":null,"plain_language_summary":null,"updated":"2008-11-07T08:08:57-05:00"},{"bill_type":"h","number":636,"sponsor_id":400211,"lastaction":1108443600,"topresident_date":null,"last_vote_roll":null,"session":109,"topresident_datetime":null,"last_speech":0,"id":38361,"page_views_count":10,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1107838800,"key_vote_category_id":null,"news_article_count":null,"summary":"\t<br/>2/8/2005--Introduced.<br/>Amends the Harmonized Tariff Schedule of the United States to suspend, through December 31, 2008, the duty on Allyl Pentaerythritol (APE).<br/>","blog_article_count":null,"last_vote_where":null,"plain_language_summary":null,"updated":null},{"bill_type":"h","number":3108,"sponsor_id":400184,"lastaction":1187064000,"topresident_date":1187064000,"last_vote_roll":null,"session":110,"topresident_datetime":"2007-08-14","last_speech":null,"id":45326,"page_views_count":328,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1184817600,"key_vote_category_id":null,"news_article_count":null,"summary":"\t7/19/2007--Introduced.<br/>Directs the Comptroller General to require methodological, scientific, and technical experts within the Government Accountability Office (GAO) to undertake a new investigation to address specified questions relating to Fort Monmouth, New Jersey, including: (1) cost estimates with respect to its closing and the transfer of its personnel, functions, and activities to Aberdeen Proving Ground, Maryland; (2) a shortfall of defense scientists and engineers; and (3) the failure of the Department of Defense (DOD) to timely provide a report required by the Defense Base Closure and Realignment Commission as to whether the transfer of such personnel, functions, and activities will be accomplished without disruption of their support to the Global War on Terror or other critical contingency operations.<br/>","blog_article_count":10,"last_vote_where":null,"plain_language_summary":null,"updated":"2008-11-06T19:18:10-05:00"},{"bill_type":"s","number":699,"sponsor_id":300064,"lastaction":1112673600,"topresident_date":null,"last_vote_roll":null,"session":109,"topresident_datetime":null,"last_speech":0,"id":37079,"page_views_count":17,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1112673600,"key_vote_category_id":null,"news_article_count":null,"summary":"\t<br/>4/5/2005--Introduced.<br/>Amends the Harmonized Tariff Schedule of the United States to suspend, through December 31, 2007, the duty on allyl ureido monomer.<br/>","blog_article_count":null,"last_vote_where":null,"plain_language_summary":null,"updated":null},{"bill_type":"h","number":1984,"sponsor_id":400278,"lastaction":1245214800,"topresident_date":1245214800,"last_vote_roll":null,"session":111,"topresident_datetime":"2009-06-17","last_speech":null,"id":56805,"page_views_count":1915,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1240290000,"key_vote_category_id":null,"news_article_count":1,"summary":"\t4/21/2009--Introduced.401(k) Fair Disclosure for Retirement Security Act of 2009 - Amends the Employee Retirement Income Security Act of 1974 (ERISA) to prohibit an administrator of an individual account plan from contracting for services (including the offering of any investment option) to the plan unless the administrator has received in advance a written statement that: (1) specifies the services to be provided; (2) provides the expected total annual service charges allocated among specified components; and (3) discloses the impact of different mutual fund investment share classes as well as financial relationships with, or free or discounted services provided by, service providers. Limits applicability of such requirements to contracts or arrangements for services with a total cost reasonably expected to equal or exceed $5,000 per plan year. Continues to shield an individual account plan fiduciary from liability (as under current law) for any loss resulting from a plan participant's or beneficiary's exercise of control over the plan's assets, but only if the plan includes at least one investment option which: (1) is an unmanaged or passively managed mutual fund with a portfolio of securities designed to substantially match the performance of the entire U.S. equity market or the entire U.S. bond market, or a combination of them; (2) offers a combination of historical returns, risk, and charges likely to meet retirement income needs at adequate levels of contribution; and (3) is offered without any endorsement of the government or the plan sponsor. Requires the Secretary to notify the applicable regulatory authority about any service provider engaged in a pattern or practice that precludes requirement compliance.","blog_article_count":97,"last_vote_where":null,"plain_language_summary":null,"updated":"2010-12-30T11:47:49-05:00"},{"bill_type":"h","number":4012,"sponsor_id":400405,"lastaction":1257228000,"topresident_date":1257228000,"last_vote_roll":null,"session":111,"topresident_datetime":"2009-11-03","last_speech":null,"id":61601,"page_views_count":452,"caption":null,"is_frontpage_hot":null,"last_vote_date":null,"pl":null,"introduced":1257228000,"key_vote_category_id":null,"news_article_count":null,"summary":"\t11/3/2009--Introduced.Amends the Internal Revenue Code to allow a 5-year recovery period for depreciation purposes for nonresidential real property and a 10-year recovery period for qualified leasehold property placed in service after December 31, 2009, and before January 1, 2012. ","blog_article_count":2,"last_vote_where":null,"plain_language_summary":null,"updated":"2010-12-30T17:44:25-05:00"},{"bill_type":"h","number":1790,"sponsor_id":400343,"lastaction":1304571600,"topresident_date":1304571600,"last_vote_roll":null,"session":112,"topresident_datetime":"2011-05-05","last_speech":null,"id":70276,"page_views_count":131,"caption":null,"is_frontpage_hot":null,"last_vote_date":null,"pl":null,"introduced":1304571600,"key_vote_category_id":null,"news_article_count":0,"summary":"\t5/5/2011--Introduced.Defund United States Assistance to Pakistan Act of 2011 - Prohibits assistance to Pakistan.","blog_article_count":6,"last_vote_where":null,"plain_language_summary":null,"updated":"2011-05-28T06:26:36-04:00"},{"bill_type":"hr","number":693,"sponsor_id":400204,"lastaction":1140152400,"topresident_date":null,"last_vote_roll":null,"session":109,"topresident_datetime":null,"last_speech":0,"id":31108,"page_views_count":4,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1140066000,"key_vote_category_id":null,"news_article_count":null,"summary":"\t<br/>2/16/2006--Introduced.<br/>Expresses support for the designation of a Childhood Stroke Awareness Day.<br/>Urges people to support the efforts, programs, services, and advocacy of the Children's Hemiplegia and Stroke Association to enhance public awareness of childhood stroke.<br/>","blog_article_count":null,"last_vote_where":null,"plain_language_summary":null,"updated":null},{"bill_type":"h","number":3747,"sponsor_id":400634,"lastaction":1126670400,"topresident_date":null,"last_vote_roll":null,"session":109,"topresident_datetime":null,"last_speech":0,"id":33395,"page_views_count":11,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1126584000,"key_vote_category_id":null,"news_article_count":null,"summary":"\t<br/>9/13/2005--Introduced.<br/>Authorizes the President, with respect to individuals and households receiving assistance for damages suffered as a result of Hurricane Katrina, to waive the Robert T. Stafford Disaster Relief and Emergency Assistance Act limitations on financial assistance of a maximum $5,000 (increased below to $25,000) per household for repairs, $10,000 per household for replacement of an owner-occupied private residence, and $25,000 per individual or household for a single disaster.<br/>Amends the Robert T. Stafford Disaster Relief and Emergency Assistance Act to double from 7.5% to 15% of the estimated aggregate amount of federal disaster relief grants to be made with respect to a major disaster the limit on the total amount of contributions the President may make for cost-effective hazard mitigation measures in the disaster area. Increases from $5,000 to $25,000 the maximum amount of assistance per household allowable for repairs.<br/>Directs the Director of the Federal Emergency Management Agency to: (1) administer state management costs in a consistent manner, in accordance with certain federal guidelines; and (2) implement a process under which the Director will approve or disapprove such costs within 30 days after they are submitted.<br/>","blog_article_count":null,"last_vote_where":null,"plain_language_summary":null,"updated":null},{"bill_type":"hc","number":115,"sponsor_id":400333,"lastaction":1111035600,"topresident_date":null,"last_vote_roll":null,"session":109,"topresident_datetime":null,"last_speech":0,"id":37483,"page_views_count":3,"caption":null,"is_frontpage_hot":false,"last_vote_date":null,"pl":null,"introduced":1111035600,"key_vote_category_id":null,"news_article_count":null,"summary":"\t<br/>3/17/2005--Introduced.<br/>Expresses the sense of Congress that the internationally renowned artist Romare Bearden should be honored for his contributions to the collective American aesthetic anthology which reflect the complexity and richness of African American life in the United States.<br/>","blog_article_count":null,"last_vote_where":null,"plain_language_summary":null,"updated":null}]}
@@ -0,0 +1,8 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/0.6.35
3
+ Date: Tue, 15 Jun 2010 21:50:08 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Connection: close
6
+ Vary: Authorization
7
+
8
+ {"people":[], "bills":[]}
@@ -0,0 +1,8 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/0.6.35
3
+ Date: Tue, 15 Jun 2010 21:50:08 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Connection: close
6
+ Vary: Authorization
7
+
8
+ {"people":[{"osid":"N00013846","name":"Rep. Jeff Miller [R, FL-1]","abstains_percentage":0.284900284900285,"person_stat":{"entered_top_viewed":"2007-02-27T10:57:23Z","party_votes_percentage":91.5714285714286,"votes_most_often_with_id":400175,"abstains_percentage":[0.284900284900285,0.284900284900285],"entered_top_blog":null,"sponsored_bills_passed_rank":50,"abstains_percentage_rank":209,"cosponsored_bills_passed_rank":170,"votes_least_often_with_id":400237,"party_votes_percentage_rank":243,"abstains":2,"sponsored_bills":9,"cosponsored_bills":124,"person_id":400279,"cosponsored_bills_rank":140,"same_party_votes_least_often_with_id":400209,"sponsored_bills_passed":0,"entered_top_news":"2007-08-31T09:49:48Z","sponsored_bills_rank":373,"cosponsored_bills_passed":1,"opposing_party_votes_most_often_with_id":400645},"votes_democratic_position":120,"recent_news":[{"average_rating":null,"commentariable_id":400279,"created_at":"2011-06-21T02:59:08Z","title":"Lawsuit Challenges Army Corps&#39; Program to Cut Trees From Levees","contains_term":"representative","excerpt":" \u201cThe Corps adopted a new standard requiring removal of all vegetation from levees without environmental review, consideration of regional differences or scientific support,\u201d said Jeff Miller with the Center for Biological Diversity. ... ","url":"http://www.biologicaldiversity.org/news/press_releases/2011/california-levees-06-20-2011.html","weight":null,"source_url":null,"date":"2011-06-20T05:00:00Z","id":11011907,"type":"Commentary","scraped_from":"google news","is_news":true,"source":"Center for Biological Diversity (press release)","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-06-21T02:59:08Z","title":"Letter: Suicide among veterans is an epidemic","contains_term":"rep\\.","excerpt":" Recently, I spoke with Rep. Jeff Miller, R-Chumuckla, chairman of the House Committee on Veterans Affairs, regarding this epidemic. The Veterans Administration is working diligently to address the problem. However, I believe it will take a village. ... ","url":"http://www.tcpalm.com/news/2011/jun/20/letter-suicide-among-veterans-is-an-epidemic/","weight":null,"source_url":null,"date":"2011-06-20T05:00:00Z","id":11011906,"type":"Commentary","scraped_from":"google news","is_news":true,"source":"TCPalm","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-06-21T02:59:07Z","title":"Educator honored for work with pregnant teenagers","contains_term":"representative","excerpt":" US Rep Jeff Miller, R-Chumuckla, also offered accolades to Barrow on her retirement. Miller&#39;s district representative, Helen Hunt Rigdon, who is a member of the Healthy Woman Advisory Council, presented Barrow with a certificate of achievement. ... ","url":"http://www.crestviewbulletin.com/news/okaloosa-14526-district-school.html","weight":null,"source_url":null,"date":"2011-06-20T05:00:00Z","id":11011905,"type":"Commentary","scraped_from":"google news","is_news":true,"source":"Crestview News Bulletin","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-06-21T02:59:07Z","title":"Student visa program: New rules, same problems","contains_term":"rep\\.","excerpt":" The Thai students complained to US Rep. Jeff Miller, R-Fla., saying they were afraid of a third-party labor broker, Ivan Lukin, who arranged for their housing and jobs. They said Lukin threatened them with deportation when they complained, ... ","url":"http://www.google.com/hostednews/ap/article/ALeqM5gLZ9n3eKjceRZHuupRqXMPab3VmQ?docId=a9f51d9a10ef4b69bc51bfc73e36fae6","weight":null,"source_url":null,"date":"2011-06-20T05:00:00Z","id":11011904,"type":"Commentary","scraped_from":"google news","is_news":true,"source":"The Associated Press","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-06-21T02:59:07Z","title":"A tribute to courage and sacrifice","contains_term":"congress","excerpt":" By Jeff Miller In what was surely a solemn occasion, an estimated 1000 friends, family and even strangers gathered at the Cohocton Sports Complex Saturday to honor and mourn their fallen hero. Sgt. Devin Snyder, 20, was laid to rest June 18, ... ","url":"http://www.dansvilleonline.com/news/x898075902/A-tribute-to-courage-and-sacrifice","weight":null,"source_url":null,"date":"2011-06-20T05:00:00Z","id":11011903,"type":"Commentary","scraped_from":"google news","is_news":true,"source":"Dansville-Genesee Country Express (blog)","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-06-20T03:02:44Z","title":"Riverside County supervisors: Donations won&#39;t impact quarry vote","contains_term":"senate","excerpt":" ... Mayor Marsha Swanson ($200); Corona Councilmen Eugene Montanez ($198) and Steve Nolan ($500) and Riverside Mayor Ron Loveridge ($125). Other local recipients are Assemblymen Kevin Jeffries, R-Lake Elsinore, ($2000) and Jeff Miller, R-Corona, ($1000). ","url":"http://www.pe.com/localnews/stories/PE_News_Local_D_campaign19.3dbdb33.html","weight":null,"source_url":null,"date":"2011-06-19T05:00:00Z","id":11009999,"type":"Commentary","scraped_from":"google news","is_news":true,"source":"Press-Enterprise","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-06-20T03:02:43Z","title":"Dohner tosses no-hitter Lions fall in Wood Bat classic","contains_term":"republican","excerpt":" Showcase players include: Jeff Miller, Fleetwood; Jared Degler and Matt Bensinger, Hamburg; Andrew Gernert and Dustin Smith, Kutztown; Cole Weachock and Ryan King, Minersville; Jordan Jeter and AJ Pizzo, Muhlenberg; Austin Hornberger, Zachary Weist and ..","url":"http://republicanherald.com/sports/dohner-tosses-no-hitter-lions-fall-in-wood-bat-classic-1.1164063","weight":null,"source_url":null,"date":"2011-06-19T05:00:00Z","id":11009998,"type":"Commentary","scraped_from":"google news","is_news":true,"source":"Republican &amp; Herald","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-06-20T03:02:37Z","title":"New law targets head injuries","contains_term":"rep\\.","excerpt":" Jeff Miller, senior vice president of government affairs for the National Football League, which has sponsored this bill and others like it across the country, said that the key part of the North Carolina bill is protecting students and coaches by ... ","url":"http://www2.journalnow.com/news/2011/jun/19/1/wsmet01-new-law-targets-head-injuries-ar-1133932/","weight":null,"source_url":null,"date":"2011-06-19T05:00:00Z","id":11009997,"type":"Commentary","scraped_from":"google news","is_news":true,"source":"Winston-Salem Journal","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-06-20T03:02:35Z","title":"Weak in Review","contains_term":"congress","excerpt":" RivCo Supe John Tavaglione and Corona Assemblyman Jeff Miller are GOP candidates for Congress in a new (tentative) district that ropes in Riverside, MoVal and Norco. The citizen commish that drew these congressional boundaries killed the Calvert Cobra, ..","url":"http://www.pe.com/columns/danbernstein/stories/PE_News_Local_D_dan19.3dc0656.html","weight":null,"source_url":null,"date":"2011-06-19T05:00:00Z","id":11009996,"type":"Commentary","scraped_from":"google news","is_news":true,"source":"Press-Enterprise","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-06-19T03:01:14Z","title":"Lynn Visits World War I American Cemetery in France","contains_term":"congress","excerpt":"...in Belleau Wood honoring the U.S. Marines who fought there as part of the U.S. 2nd Division. \tTwo members of Congress \u2013 U.S. Rep. Jeff Miller of Florida and U.S. Rep. Devin Nunes of California \u2013 also were on hand for the visit, which included a stop","url":"http://www.defense.gov//news/newsarticle.aspx?id=64371","weight":null,"source_url":"http://www.defenselink.mil/","date":"2011-06-18T05:00:00Z","id":11007951,"type":"Commentary","scraped_from":"daylife","is_news":true,"source":"U.S. Department of Defense","status":"OK","is_ok":true,"commentariable_type":"Person"}],"with_party_percentage":91.5714285714286,"title":"Rep.","votes_republican_position":641,"youtube_id":"RepJeffMiller","nickname":null,"district":"1","url":null,"middlename":null,"watchdog_id":null,"recent_blogs":[{"average_rating":null,"commentariable_id":400279,"created_at":"2011-06-02T15:45:29Z","title":"The Scottcarp Dream: My Memorial Day","contains_term":"congress","excerpt":"I sat in stunned silence yesterday as I watched two incompetent boobs in Congress (Rep. Jeff Miller-R, and Rep. Filner-D) patting each other on the back for letting a few more veterans through the door to review their ...","url":"http://thescottcarpdream.blogspot.com/2011/06/my-memorial-day.html","weight":null,"source_url":"http://thescottcarpdream.blogspot.com/","date":"2011-06-01T05:00:00Z","id":10964742,"type":"Commentary","scraped_from":"google blog","is_news":false,"source":"Scott","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-06-02T15:45:29Z","title":"One Old Vet \u00bb American Veteran News 06.02.11","contains_term":"rep\\.","excerpt":"Rep. Jeff Miller, R-Fla., announced an ambitious goal Wednesday of finding jobs for 400000 veterans within two years, the Military Times reported. The move would reduce the unemployment rate for vets from 7.7 percent to ...","url":"http://oneoldvet.com/?p=29224","weight":null,"source_url":"http://oneoldvet.com/","date":"2011-06-01T05:00:00Z","id":10964741,"type":"Commentary","scraped_from":"google blog","is_news":false,"source":"One Old Vet","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-06-02T02:55:36Z","title":"Jewish Ledger | Serving Connecticut&#39;s Jewish Communities \u00bb New ...","contains_term":"rep\\.","excerpt":"Charles Schumer, both of New York, and Rep. Jeff Miller of Florida, introduced those resolutions. The memorial must now be approved by the U.S. Commission of Fine Arts. JWB Jewish Chaplains Council hopes to dedicate the ...","url":"http://www.jewishledger.com/2011/06/new-d-c-memorial-to-include-w-hartford-native/","weight":null,"source_url":"http://www.jewishledger.com/","date":"2011-06-01T05:00:00Z","id":10962361,"type":"Commentary","scraped_from":"google blog","is_news":false,"source":"CindyMindell","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-06-01T15:50:04Z","title":"Advertising Sales Representative in Phoenix AZ Resume Jeff Miller ...","contains_term":"representative","excerpt":"advertising sales representative in phoenix az resume jeff miller. Jeff Miller has an extensive record of initiative and leadership resulting in measurable contributions to business profitability, efficiency, ... - ","url":"http://bineh.com/advertising-sales-representative-in-phoenix-az-resume-jeff-miller","weight":null,"source_url":"http://bineh.com/","date":"2011-06-01T05:00:00Z","id":10961040,"type":"Commentary","scraped_from":"google blog","is_news":false,"source":"admin","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-06-01T02:48:56Z","title":"Goia Blog Spot: Honor and Remember","contains_term":"rep\\.","excerpt":"Rep. Jeff Miller is the chairman of the House Committee on Veterans&#39; Affairs. Source: http://www.nationalreview.com/articles/268334/honor-and-remember-rep-jeff-miller &middot; Carl Levin Carolyn B. Maloney Carolyn McCarthy ...","url":"http://goiarichmond.blogspot.com/2011/05/honor-and-remember.html","weight":null,"source_url":"http://goiarichmond.blogspot.com/","date":"2011-05-31T05:00:00Z","id":10957624,"type":"Commentary","scraped_from":"google blog","is_news":false,"source":"goiarichmond","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-05-30T15:43:23Z","title":"Has your congressman committed to supporting House bill HCR40 ...","contains_term":"congress","excerpt":"Rep. Marcy Kaptur [D-OH] Rep. Steven LaTourette [R-OH] Rep. Frank Lucas [R-OK] Rep. Kenny Marchant [R-TX] Rep. James Marshall [D-GA] Rep. Thaddeus McCotter [R-MI] Rep. Gary Miller [R-CA] Rep. Jeff Miller [R-FL] Rep. ...","url":"http://jonesnewyork.info/2011/05/has-your-congressman-committed-to-supporting-house-bill-hcr40-north-american-union.html","weight":null,"source_url":"http://jonesnewyork.info/","date":"2011-05-30T05:00:00Z","id":10952792,"type":"Commentary","scraped_from":"google blog","is_news":false,"source":"hooveredwards","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-05-28T02:54:26Z","title":"GA) | The MBL Market News","contains_term":"rep\\.","excerpt":"U.S. Rep. Jeff Miller (FL-01), the chairman of the House Committee on Veterans&#39; Affairs, introduced an identical resolution in the House. H.Con.Res.45 also passed unanimously in that chamber. ...","url":"http://mblmarket.com/wordpress/2011/05/ga-12/","weight":null,"source_url":"http://mblmarket.com/wordpress/","date":"2011-05-27T05:00:00Z","id":10932597,"type":"Commentary","scraped_from":"google blog","is_news":false,"source":"admin","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-05-27T15:45:37Z","title":"US Congress Approves Jewish Chaplains Memorial at Arlington | New ...","contains_term":"congress","excerpt":"... Jewish War Chaplains than the passage of this resolution during Jewish American Heritage Month, and a week before Memorial Day,\u201d Congressman Jeff Miller, chairman of the House Committee on Veterans&#39; Affairs, said. ...","url":"http://nmen.org/us-congress-approves-jewish-chaplains-memorial-at-arlington/","weight":null,"source_url":"http://nmen.org/","date":"2011-05-27T05:00:00Z","id":10930986,"type":"Commentary","scraped_from":"google blog","is_news":false,"source":"admin","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-05-29T03:11:42Z","title":"LexisNexis News - Latest News from over 4000 sources, including ...","contains_term":"rep\\.","excerpt":"U.S. Rep. Jeff Miller (FL-01), the chairman of the House Committee on Veterans&#39; Affairs, introduced an identical resolution in the House. H.Con.Res.45 also passed unanimously in that chamber. May 26, 2011 ...","url":"http://www6.lexisnexis.com/publisher/EndUser?Action=UserDisplayFullDocument&orgId=574&topicId=100007188&docId=l:1425163709&start=4","weight":null,"source_url":"http://www6.lexisnexis.com/publisher/EndUser?Action=UserDisplayCiteList&orgId=574&topicId=100007188&isRss=true","date":"2011-05-26T05:00:00Z","id":10938680,"type":"Commentary","scraped_from":"google blog","is_news":false,"source":"http://www6.lexisnexis.com/publisher/EndUser?Action=UserDisplayCiteList&amp;orgId=574&amp;topicId=100007188&amp;isRss=true","status":"OK","is_ok":true,"commentariable_type":"Person"},{"average_rating":null,"commentariable_id":400279,"created_at":"2011-05-29T03:11:42Z","title":"Indiana Student Veterans \u00bb Rep Stutzman Introduces Restoring GI ...","contains_term":"legislation","excerpt":"The Truman Project is launching a new initiative this summer... Rep Stutzman Introduces Restoring GI Bill Fairness Act of 2011. WASHINGTON, DC\u2013Chairman Jeff Miller (FL-01) of the House C.. ...","url":"http://www.indianastudentveterans.org/2011/05/rep-stutzman-introduces-restoring-gi-bill-fairness-act-of-2011/","weight":null,"source_url":"http://www.indianastudentveterans.org/","date":"2011-05-26T05:00:00Z","id":10938679,"type":"Commentary","scraped_from":"google blog","is_news":false,"source":"Russell Silver, Indiana Student Veterans","status":"OK","is_ok":true,"commentariable_type":"Person"}],"oc_users_tracking":143,"contact_webform":"http://jeffmiller.house.gov/index.cfm?FuseAction=Contact.Home","lastname":"Miller","id":400279,"gender":"M","metavid_id":"Jeff_Miller","user_approval":4.83333333333333,"page_views_count":15734,"congress_office":"2416 Rayburn House Office Building","bioguideid":"M001144","total_session_votes":700,"website":"http://jeffmiller.house.gov/","phone":"202-225-4136","firstname":"Jeff","fax":"202-225-3414","birthday":"1959-06-27","sunlight_nickname":null,"oc_user_comments":5,"religion":"Methodist","party":"Republican","news_article_count":2646,"blog_article_count":5483,"unaccented_name":"Jeff Miller","state":"FL","email":null,"biography":null}]}
@@ -3,6 +3,7 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
3
3
  module GovKit::OpenCongress
4
4
  describe GovKit::OpenCongress do
5
5
  before(:all) do
6
+ @oc_objs = [Bill, Person]
6
7
  base_uri = "http://www.opencongress.org/api/"
7
8
 
8
9
  # An array of uris and filenames
@@ -11,7 +12,12 @@ module GovKit::OpenCongress
11
12
  # then return the contents of the corresponding file
12
13
  # as the result.
13
14
  urls = [
14
- [ "people?key=YOUR_OPENCONGRESS_API_KEY&district=1&state=FL&format=json", "person.response" ]
15
+ [ "people?format=json&district=1&state=FL", "fl01.response" ],
16
+ [ "people?format=json&district=0&state=ZZ", "empty.response" ],
17
+ [ "most_blogged_representatives_this_week?format=json", "person.response" ],
18
+ [ "bills?format=json&number=0", "empty.response" ],
19
+ [ "bills?format=json&number=501", "501.response" ],
20
+ [ "most_blogged_bills_this_week?format=json", "bill.response" ]
15
21
  ]
16
22
 
17
23
  urls.each do |u|
@@ -19,6 +25,18 @@ module GovKit::OpenCongress
19
25
  end
20
26
  end
21
27
 
28
+ it "should construct a url properly" do
29
+ @oc_objs.each do |klass|
30
+ klass.construct_url(klass.to_s.split("::").last, {}).should == "http://www.opencongress.org/api/#{klass.to_s.split("::").last}?format=json"
31
+ end
32
+ end
33
+
34
+ it "should reformat a hash to a GET request" do
35
+ @oc_objs.each do |klass|
36
+ klass.hash2get(:key => "key", :format => "json").should == "&key=key&format=json"
37
+ end
38
+ end
39
+
22
40
  describe Person do
23
41
  context "#find" do
24
42
  it "should find a specific person" do
@@ -30,6 +48,60 @@ module GovKit::OpenCongress
30
48
  @person.firstname.should == "Jeff"
31
49
  @person.lastname.should == "Miller"
32
50
  end
51
+
52
+ it "should return an empty array when no person fits the criteria" do
53
+ lambda do
54
+ @person = Person.find(:district => 0, :state => "ZZ")
55
+ end.should_not raise_error
56
+
57
+ @person.should be_an_instance_of(Array)
58
+ @person.empty?.should be_true
59
+ end
60
+ end
61
+
62
+ context "#most blogged representatives this week" do
63
+ it "should find reps" do
64
+ lambda do
65
+ @person = Person.most_blogged_representatives_this_week.first
66
+ end.should_not raise_error
67
+
68
+ @person.should be_an_instance_of(Person)
69
+ @person.firstname.should == "Jeff"
70
+ @person.lastname.should == "Miller"
71
+ end
72
+ end
73
+ end
74
+
75
+ describe Bill do
76
+ context "#find" do
77
+ it "should find a specific bill" do
78
+ lambda do
79
+ @bill = Bill.find(:number => 501).first
80
+ end.should_not raise_error
81
+
82
+ @bill.should be_an_instance_of(Bill)
83
+ @bill.number.should == 501
84
+ @bill.bill_type.should == "h"
85
+ end
86
+
87
+ it "should return an empty array when no bill fits the criteria" do
88
+ @bill = Bill.find(:number => 0)
89
+
90
+ @bill.should be_an_instance_of(Array)
91
+ @bill.empty?.should be_true
92
+ end
93
+ end
94
+
95
+ context "#most blogged bills this week" do
96
+ it "should find specific bills" do
97
+ lambda do
98
+ @bill = Bill.most_blogged_bills_this_week.first
99
+ end.should_not raise_error
100
+
101
+ @bill.should be_an_instance_of(Bill)
102
+ @bill.number.should == 2678
103
+ @bill.bill_type.should == "h"
104
+ end
33
105
  end
34
106
  end
35
107
  end
data/spec/spec_helper.rb CHANGED
@@ -33,5 +33,4 @@ GovKit.configure do |config|
33
33
  config.openstates_apikey = 'YOUR_OPENSTATES_API_KEY'
34
34
  config.votesmart_apikey = 'YOUR_VOTESMART_API_KEY'
35
35
  config.ftm_apikey = 'YOUR_FTM_API_KEY'
36
- config.opencongress_apikey = 'YOUR_OPENCONGRESS_API_KEY'
37
36
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govkit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
5
- prerelease:
4
+ prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 7
9
- - 1
10
- version: 0.7.1
8
+ - 2
9
+ version: 0.7.2
11
10
  platform: ruby
12
11
  authors:
13
12
  - Participatory Politics Foundation
@@ -17,143 +16,125 @@ autorequire:
17
16
  bindir: bin
18
17
  cert_chain: []
19
18
 
20
- date: 2011-06-30 00:00:00 -05:00
19
+ date: 2012-01-23 00:00:00 -08:00
21
20
  default_executable:
22
21
  dependencies:
23
22
  - !ruby/object:Gem::Dependency
23
+ prerelease: false
24
+ name: govkit
24
25
  type: :runtime
25
- requirement: &id001 !ruby/object:Gem::Requirement
26
- none: false
26
+ version_requirements: &id001 !ruby/object:Gem::Requirement
27
27
  requirements:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
- hash: 3
31
30
  segments:
32
31
  - 0
33
32
  version: "0"
34
- name: govkit
35
- version_requirements: *id001
36
- prerelease: false
33
+ requirement: *id001
37
34
  - !ruby/object:Gem::Dependency
35
+ prerelease: false
36
+ name: activesupport
38
37
  type: :runtime
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
38
+ version_requirements: &id002 !ruby/object:Gem::Requirement
41
39
  requirements:
42
40
  - - ">="
43
41
  - !ruby/object:Gem::Version
44
- hash: 3
45
42
  segments:
46
43
  - 0
47
44
  version: "0"
48
- name: active_support
49
- version_requirements: *id002
50
- prerelease: false
45
+ requirement: *id002
51
46
  - !ruby/object:Gem::Dependency
47
+ prerelease: false
48
+ name: nokogiri
52
49
  type: :runtime
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
50
+ version_requirements: &id003 !ruby/object:Gem::Requirement
55
51
  requirements:
56
52
  - - ">="
57
53
  - !ruby/object:Gem::Version
58
- hash: 3
59
54
  segments:
60
55
  - 0
61
56
  version: "0"
62
- name: nokogiri
63
- version_requirements: *id003
64
- prerelease: false
57
+ requirement: *id003
65
58
  - !ruby/object:Gem::Dependency
59
+ prerelease: false
60
+ name: httparty
66
61
  type: :runtime
67
- requirement: &id004 !ruby/object:Gem::Requirement
68
- none: false
62
+ version_requirements: &id004 !ruby/object:Gem::Requirement
69
63
  requirements:
70
64
  - - ">="
71
65
  - !ruby/object:Gem::Version
72
- hash: 3
73
66
  segments:
74
67
  - 0
75
68
  version: "0"
76
- name: httparty
77
- version_requirements: *id004
78
- prerelease: false
69
+ requirement: *id004
79
70
  - !ruby/object:Gem::Dependency
71
+ prerelease: false
72
+ name: i18n
80
73
  type: :runtime
81
- requirement: &id005 !ruby/object:Gem::Requirement
82
- none: false
74
+ version_requirements: &id005 !ruby/object:Gem::Requirement
83
75
  requirements:
84
76
  - - ">="
85
77
  - !ruby/object:Gem::Version
86
- hash: 3
87
78
  segments:
88
79
  - 0
89
80
  version: "0"
90
- name: i18n
91
- version_requirements: *id005
92
- prerelease: false
81
+ requirement: *id005
93
82
  - !ruby/object:Gem::Dependency
83
+ prerelease: false
84
+ name: httparty
94
85
  type: :runtime
95
- requirement: &id006 !ruby/object:Gem::Requirement
96
- none: false
86
+ version_requirements: &id006 !ruby/object:Gem::Requirement
97
87
  requirements:
98
88
  - - ">="
99
89
  - !ruby/object:Gem::Version
100
- hash: 11
101
90
  segments:
102
91
  - 0
103
92
  - 7
104
93
  - 4
105
94
  version: 0.7.4
106
- name: httparty
107
- version_requirements: *id006
108
- prerelease: false
95
+ requirement: *id006
109
96
  - !ruby/object:Gem::Dependency
97
+ prerelease: false
98
+ name: json
110
99
  type: :runtime
111
- requirement: &id007 !ruby/object:Gem::Requirement
112
- none: false
100
+ version_requirements: &id007 !ruby/object:Gem::Requirement
113
101
  requirements:
114
102
  - - ">="
115
103
  - !ruby/object:Gem::Version
116
- hash: 1
117
104
  segments:
118
105
  - 1
119
106
  - 4
120
107
  - 3
121
108
  version: 1.4.3
122
- name: json
123
- version_requirements: *id007
124
- prerelease: false
109
+ requirement: *id007
125
110
  - !ruby/object:Gem::Dependency
111
+ prerelease: false
112
+ name: nokogiri
126
113
  type: :runtime
127
- requirement: &id008 !ruby/object:Gem::Requirement
128
- none: false
114
+ version_requirements: &id008 !ruby/object:Gem::Requirement
129
115
  requirements:
130
116
  - - ">="
131
117
  - !ruby/object:Gem::Version
132
- hash: 15
133
118
  segments:
134
119
  - 1
135
120
  - 4
136
121
  - 4
137
122
  version: 1.4.4
138
- name: nokogiri
139
- version_requirements: *id008
140
- prerelease: false
123
+ requirement: *id008
141
124
  - !ruby/object:Gem::Dependency
125
+ prerelease: false
126
+ name: fastercsv
142
127
  type: :runtime
143
- requirement: &id009 !ruby/object:Gem::Requirement
144
- none: false
128
+ version_requirements: &id009 !ruby/object:Gem::Requirement
145
129
  requirements:
146
130
  - - ">="
147
131
  - !ruby/object:Gem::Version
148
- hash: 5
149
132
  segments:
150
133
  - 1
151
134
  - 5
152
135
  - 3
153
136
  version: 1.5.3
154
- name: fastercsv
155
- version_requirements: *id009
156
- prerelease: false
137
+ requirement: *id009
157
138
  description: Govkit lets you quickly get encapsulated Ruby objects for common open government APIs. We're starting with Sunlight's Open States API and the Project Vote Smart API.
158
139
  email: develop@opencongress.org
159
140
  executables: []
@@ -173,11 +154,15 @@ files:
173
154
  - USAGE
174
155
  - VERSION
175
156
  - generators/govkit/govkit_generator.rb
157
+ - generators/govkit/templates/create_mentions.rb
176
158
  - generators/govkit/templates/govkit.rb
159
+ - generators/govkit/templates/mention.rb
177
160
  - govkit.gemspec
178
161
  - init.rb
179
162
  - lib/generators/govkit/govkit_generator.rb
163
+ - lib/generators/govkit/templates/create_mentions.rb
180
164
  - lib/generators/govkit/templates/govkit.rb
165
+ - lib/generators/govkit/templates/mention.rb
181
166
  - lib/gov_kit.rb
182
167
  - lib/gov_kit/acts_as_noteworthy.rb
183
168
  - lib/gov_kit/configuration.rb
@@ -209,6 +194,10 @@ files:
209
194
  - spec/fixtures/follow_the_money/business-page1.response
210
195
  - spec/fixtures/follow_the_money/contribution.response
211
196
  - spec/fixtures/follow_the_money/unauthorized.response
197
+ - spec/fixtures/open_congress/501.response
198
+ - spec/fixtures/open_congress/bill.response
199
+ - spec/fixtures/open_congress/empty.response
200
+ - spec/fixtures/open_congress/fl01.response
212
201
  - spec/fixtures/open_congress/person.response
213
202
  - spec/fixtures/open_states/401.response
214
203
  - spec/fixtures/open_states/404.response
@@ -243,29 +232,30 @@ rdoc_options: []
243
232
  require_paths:
244
233
  - lib
245
234
  required_ruby_version: !ruby/object:Gem::Requirement
246
- none: false
247
235
  requirements:
248
236
  - - ">="
249
237
  - !ruby/object:Gem::Version
250
- hash: 3
251
238
  segments:
252
239
  - 0
253
240
  version: "0"
254
241
  required_rubygems_version: !ruby/object:Gem::Requirement
255
- none: false
256
242
  requirements:
257
243
  - - ">="
258
244
  - !ruby/object:Gem::Version
259
- hash: 3
260
245
  segments:
261
246
  - 0
262
247
  version: "0"
263
248
  requirements: []
264
249
 
265
250
  rubyforge_project:
266
- rubygems_version: 1.6.2
251
+ rubygems_version: 1.3.6
267
252
  signing_key:
268
253
  specification_version: 3
269
254
  summary: Simple access to open government APIs around the web
270
- test_files: []
271
-
255
+ test_files:
256
+ - spec/follow_the_money_spec.rb
257
+ - spec/open_congress_spec.rb
258
+ - spec/open_states_spec.rb
259
+ - spec/search_engines_spec.rb
260
+ - spec/spec_helper.rb
261
+ - spec/transparency_data_spec.rb