Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update google URL, looks like this fixes #17

  • Loading branch information...
commit 83ecd40e80cc1e144746934df3edbf76569bccd4 1 parent b2537e0
@thejefflarson thejefflarson authored
View
2  lib/table_setter/table.rb
@@ -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
View
6 spec/table-setter_spec.rb
@@ -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
View
2  template/tables/example.yml
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.