referee 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,2 +1,4 @@
1
1
  0.4.0 (Aug. 26, 2010)
2
2
  - inital re-release
3
+ 0.4.1 (Sep. 03, 2010)
4
+ - added /shots/:id/comments and shots/:id/rebounds.
data/README.rdoc CHANGED
@@ -23,6 +23,8 @@ Anything in curly brackets ({}) are optional.
23
23
 
24
24
  Referee::Shot.info(id) #=> Returns the information about the given shot.
25
25
  Referee::Shot.list(id{, :page => #, :per_page => #}) #=> Returns one of the special lists (everyone, debut, popular). Supports pagination.
26
+ Referee::Shot.rebounds(id) #=> Returns a list of rebounds for the given shot.
27
+ Referee::Shot.comments(id) #=> Returns a list of comments for the given shot.
26
28
 
27
29
  === Players
28
30
 
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rubygems'
5
5
  require 'rake'
6
6
  require 'echoe'
7
7
 
8
- Echoe.new('referee', '0.4.0') do |p|
8
+ Echoe.new('referee', '0.4.1') do |p|
9
9
  p.description = 'An easy way to communicate with the Dribbble API.'
10
10
  p.summary = 'A Ruby wrapper for the Dribbble API.'
11
11
  p.url = 'http://github.com/eturk/referee'
data/lib/referee/shot.rb CHANGED
@@ -14,6 +14,16 @@ module Referee
14
14
  def self.list(id, options={})
15
15
  get('/shots/' + id.to_s, :query => options)
16
16
  end
17
+
18
+ # Returns all of the rebounds for the given shot.
19
+ def self.rebounds(id)
20
+ get('/shots/' + id.to_s + '/rebounds')
21
+ end
22
+
23
+ # Returns all of the comments for the given shot.
24
+ def self.comments(id)
25
+ get('/shots/' + id.to_s + '/comments')
26
+ end
17
27
 
18
28
  end
19
29
 
data/lib/referee.rb CHANGED
@@ -13,7 +13,7 @@ module Referee
13
13
  include HTTParty
14
14
  include HTTParty::Icebox
15
15
 
16
- cache :store => 'memory', :timeout => 0.5, :logger => Logger.new(STDOUT)
16
+ cache :store => 'memory', :timeout => 1.0, :logger => Logger.new(STDOUT)
17
17
 
18
18
  base_uri 'api.dribbble.com'
19
19
 
data/referee.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{referee}
5
- s.version = "0.4.0"
5
+ s.version = "0.4.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ethan Turkeltaub"]
9
- s.date = %q{2010-08-26}
9
+ s.date = %q{2010-09-03}
10
10
  s.description = %q{An easy way to communicate with the Dribbble API.}
11
11
  s.email = %q{ethan.turkeltaub@gmail.com}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README.rdoc", "lib/referee.rb", "lib/referee/httparty/icebox.rb", "lib/referee/player.rb", "lib/referee/shot.rb"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: referee
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ethan Turkeltaub
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-26 00:00:00 -04:00
18
+ date: 2010-09-03 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency