0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Pulls a Google Spreadsheet into a CSV
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 0.3.5
 Project Readme

GoogleDocSeed

Pulls a Google Spreadsheet into a CSV string.

Installation

Add this line to your application's Gemfile:

gem 'google_doc_seed'

And then execute:

$ bundle

Or install it yourself as:

$ gem install google_doc_seed

Usage

Get a [Google OAuth2 token] with the spreadsheet scope.

Or check out examples/full.rb for help generating one more easily.

Then do this:

require 'google_doc_seed'

seeder = GoogleDocSeed.new('your-oauth-token')
IO.write('doc.csv', seeder.to_csv_string('0Aut3k...', 'My Worksheet'))

To Do

  • Token retrieval
  • Token renewal
  • Work with the CSV rather than just a string?

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request