Permalink
Browse files

update google URL, looks like this fixes #17

  • Loading branch information...
1 parent b2537e0 commit 83ecd40e80cc1e144746934df3edbf76569bccd4 @thejefflarson thejefflarson committed Mar 9, 2012
Showing with 2 additions and 8 deletions.
  1. +1 −1 lib/table_setter/table.rb
  2. +0 −6 spec/table-setter_spec.rb
  3. +1 −1 template/tables/example.yml
@@ -49,7 +49,7 @@ def csv_data
# Returns a usable uri based on what sort of input we have.
def uri
case
- when google_key then "https://spreadsheets.google.com/pub?key=#{google_key}&output=csv"
+ when google_key then "https://docs.google.com/spreadsheet/pub?key=#{google_key}&output=csv&single=true&gid=0"
when url then url
when file then File.expand_path("#{TableSetter.table_path}#{file}")
end
@@ -73,7 +73,6 @@
describe TableSetter::Table, "with hard pagination" do
-
before :each do
@data = TableSetter::Table.new("example_local")
end
@@ -111,12 +110,10 @@
@data.page.should eql @data.total_pages
@data.next_page.should eql nil
end
-
end
describe TableSetter::Table, "with faceting and macros" do
-
before :all do
@data = TableSetter::Table.new("example_faceted")
@tables = @data.facets
@@ -150,9 +147,6 @@
it "should have $416,075,044 for North Carolina with dead row" do
@tables[35].total_for('Total Appropriation').to_s.should eql '$423,318,645'
end
-
-
-
end
describe TableSetter::Table, "group fetchers" do
@@ -1,6 +1,6 @@
table:
title: Failed Banks List
- google_key: thJa_BvqQuNdaFfFJMMII0Q
+ google_key: 0As64nCqduIekdElUaE1PdW9XcV9wSUdlVE5RWEswbFE
deck:
<p>The financial crisis has contributed to the failure of scores of banks this year. We’ve put together a handy chart of the fallen banks, the federal agency that provided oversight to each one, and the major public enforcement that occurred against the bank prior to its collapse. It’s all sortable state, date, or even regulatory agency.</p>
footer:

0 comments on commit 83ecd40

Please sign in to comment.