sunlightlabs / ruby-datacatalog
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (18)
- Wiki (1)
- Graphs
-
Tree:
bd3bccc
commit bd3bccc4c9fe4ae64c226ea693635816d32dc134
tree 1f4a54ebb43cf15fda68df0368208fb0aacd4538
parent cd7d610242772ca899060b05523c7392fd026869
tree 1f4a54ebb43cf15fda68df0368208fb0aacd4538
parent cd7d610242772ca899060b05523c7392fd026869
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat Oct 10 08:27:38 -0700 2009 | |
| |
LICENSE.md | Tue Aug 04 14:39:13 -0700 2009 | |
| |
README.md | Tue Oct 06 12:21:10 -0700 2009 | |
| |
Rakefile | ||
| |
datacatalog.gemspec | ||
| |
lib/ | ||
| |
sandbox_api.yml.example | Tue Sep 29 10:51:56 -0700 2009 | |
| |
spec/ | ||
| |
tasks/ |
README.md
Ruby Gem for the National Data Catalog API
Under heavy development.
Installation
For now, the gem will not be packaged. Instead, install it manually:
$ git clone git clone git://github.com/sunlightlabs/ruby-datacatalog.git
$ cd ruby-datacatalog
$ rake check_dependencies
$ rake build
$ rake install # uses sudo
# Or, instead of the line above:
$ gem install pkg/datacatalog-0.1.0.gem
Usage
require 'rubygems'
require 'datacatalog'
DataCatalog.api_key = 'c40505247a5e308a24d70a0118f76534b543795b'
Running Specs
We're not mocking out any of the web API calls in the specs. Instead, we expect developers who wish to run the specs to download and run a local sandbox instance of the Data Catalog API, a Sinatra app:
git clone git://github.com/sunlightlabs/datacatalog-api.git
Get the app running like any normal Sinatra app, so you can choose to use thin or Passenger or new hotness like Unicorn. Some special considerations:
- We recommend creating a
sandboxentry indatacatalog-api'sconfig.yml. - Run
RACK_ENV=sandbox rake db:ensure_adminin thedatacatalog-apiproject to create a super admin for the API instance. - Back here in
ruby-datacatalog, use the example file inspec/to create your ownspec/sandbox_api.ymlwith the API key of the admin and your local URI.

