teachstreet 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -10,7 +10,7 @@ http://www.teachstreet.com/api/docs
10
10
 
11
11
  To create a new client, use your API key
12
12
 
13
- >> client = Teachstreet.new('YOUR API KEY')
13
+ >> client = Teachstreet::Client.new('YOUR API KEY')
14
14
 
15
15
  Then, make calls
16
16
  >> listings = client.search_listings(:what => 'yoga', :where => 'Seattle, WA', :rpp => 1, :type => 'full')
data/lib/teachstreet.rb CHANGED
@@ -125,14 +125,14 @@ module Teachstreet
125
125
 
126
126
  # find all deals
127
127
  def deals(options ={})
128
- process(self.class.get("/deals", :query => options))['deals'].map do |c|
128
+ process(self.class.get("/deals.json", :query => options))['deals'].map do |c|
129
129
  Deal.new(c)
130
130
  end
131
131
  end
132
132
 
133
133
  # look up deal by id
134
134
  def deal(id, options={})
135
- Deal.new(process(self.class.get("/deal/#{id}", options))["deal"])
135
+ Deal.new(process(self.class.get("/deal/#{id}.json", options))["deal"])
136
136
  end
137
137
 
138
138
  private
@@ -1,3 +1,3 @@
1
1
  module Teachstreet
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/spec/api_key.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Teachstreet
2
- API_KEY = 'YOUR API KEY' # replace for testing
2
+ API_KEY = 'styzXxlAR68MN8nHbHxdGwFf5XfdfF30' # replace for testing
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teachstreet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Scott Windsor
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-11 00:00:00 -07:00
18
+ date: 2011-04-25 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency