Skip to content

Commit

Permalink
Windy 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sstephenson committed Jul 16, 2011
1 parent 419af4f commit 36085ec
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ Before we begin, it should be noted that there are several ways to interact with

We'll walk through a few steps below, and show you what Windy can do.

First off, download a copy of Windy, and fire up your irb.
First off, install the Windy gem, and fire up your irb console.

$ gem install windy
$ irb
>> require 'rubygems'
>> require 'windy'

### Views
Expand Down
6 changes: 4 additions & 2 deletions lib/windy.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
require 'faraday'
require 'json'
require 'multi_json'

module Windy
VERSION = '0.1.0'

class Base
def self.root
"http://data.cityofchicago.org"
Expand All @@ -24,7 +26,7 @@ def prepare_request(request)
end

def json
@json ||= JSON.parse(body)
@json ||= MultiJson.decode(body)
end

def inspect
Expand Down
15 changes: 15 additions & 0 deletions windy.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Gem::Specification.new do |s|
s.name = "windy"
s.version = "0.1.0"
s.summary = "Ruby interface to the City of Chicago's Data Portal API"
s.description = "Windy is a Ruby module that allows you to easily interact with the City of Chicago's Data Portal."

s.files = ["README.md", "lib/windy.rb"]

s.add_dependency "faraday", "~> 0.7"
s.add_dependency "multi_json", "~> 1.0"

s.authors = ["Sam Stephenson", "Scott Robbin"]
s.email = ["sstephenson@gmail.com", "srobbin@gmail.com"]
s.homepage = "http://github.com/chicago/windy"
end

0 comments on commit 36085ec

Please sign in to comment.