referee 0.4.1 → 0.4.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/Manifest +1 -1
- data/Rakefile +1 -1
- data/lib/referee/player.rb +12 -0
- data/lib/referee/shot.rb +4 -0
- data/referee.gemspec +3 -3
- metadata +4 -8
data/Manifest
CHANGED
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.
|
8
|
+
Echoe.new('referee', '0.4.2') 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/player.rb
CHANGED
@@ -6,35 +6,47 @@ module Referee
|
|
6
6
|
class Player < Base
|
7
7
|
|
8
8
|
# Returns most recent shots for the specified player. Supports pagination.
|
9
|
+
# GET /players/:id/shots
|
9
10
|
def self.shots(id, options={})
|
10
11
|
get('/players/' + id.to_s + '/shots', :query => options)
|
11
12
|
end
|
12
13
|
|
13
14
|
# Returns most recent shots from the players the specified player is following. Supports pagination.
|
15
|
+
# GET /players/:id/shots/following
|
14
16
|
def self.shots_from_following(id, options={})
|
15
17
|
get('/players/' + id.to_s + '/shots/following', :query => options)
|
16
18
|
end
|
17
19
|
|
18
20
|
# Returns the information for the specified player.
|
21
|
+
# GET /players/:id
|
19
22
|
def self.info(id)
|
20
23
|
get('/players/' + id.to_s)
|
21
24
|
end
|
22
25
|
|
23
26
|
# Returns a list of followers of the specified player.
|
27
|
+
# GET /players/:id/followers
|
24
28
|
def self.followers(id)
|
25
29
|
get('/players/' + id.to_s + '/followers')
|
26
30
|
end
|
27
31
|
|
28
32
|
# Returns a list of the players following the specified player.
|
33
|
+
# GET /players/:id/following
|
29
34
|
def self.following(id)
|
30
35
|
get('/players/' + id.to_s + '/following')
|
31
36
|
end
|
32
37
|
|
33
38
|
# Returns a list of players the specified player drafted.
|
39
|
+
# GET /players/:id/draftees
|
34
40
|
def self.draftees(id)
|
35
41
|
get('/players/' + id.to_s + '/draftees')
|
36
42
|
end
|
37
43
|
|
44
|
+
# Returns a list of shots liked by the player.
|
45
|
+
# GET /players/:id/shots/likes
|
46
|
+
def self.likes(id)
|
47
|
+
get('/players/' + id.to_s + '/shots/likes')
|
48
|
+
end
|
49
|
+
|
38
50
|
end
|
39
51
|
|
40
52
|
end
|
data/lib/referee/shot.rb
CHANGED
@@ -6,21 +6,25 @@ module Referee
|
|
6
6
|
class Shot < Base
|
7
7
|
|
8
8
|
# Returns information for the given shot.
|
9
|
+
# GET /shots/:id
|
9
10
|
def self.info(id)
|
10
11
|
get('/shots/' + id.to_s)
|
11
12
|
end
|
12
13
|
|
13
14
|
# Returns one of the lists (debuts, everyone, popular). Supports pagination.
|
15
|
+
# GET /shots/:list
|
14
16
|
def self.list(id, options={})
|
15
17
|
get('/shots/' + id.to_s, :query => options)
|
16
18
|
end
|
17
19
|
|
18
20
|
# Returns all of the rebounds for the given shot.
|
21
|
+
# GET /shots/:id/rebounds
|
19
22
|
def self.rebounds(id)
|
20
23
|
get('/shots/' + id.to_s + '/rebounds')
|
21
24
|
end
|
22
25
|
|
23
26
|
# Returns all of the comments for the given shot.
|
27
|
+
# GET /shots/:id/comments
|
24
28
|
def self.comments(id)
|
25
29
|
get('/shots/' + id.to_s + '/comments')
|
26
30
|
end
|
data/referee.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{referee}
|
5
|
-
s.version = "0.4.
|
5
|
+
s.version = "0.4.2"
|
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-
|
9
|
+
s.date = %q{2010-12-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"]
|
13
|
-
s.files = ["CHANGELOG", "LICENSE", "
|
13
|
+
s.files = ["CHANGELOG", "LICENSE", "README.rdoc", "Rakefile", "lib/referee.rb", "lib/referee/httparty/icebox.rb", "lib/referee/player.rb", "lib/referee/shot.rb", "referee.gemspec", "Manifest"]
|
14
14
|
s.homepage = %q{http://github.com/eturk/referee}
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Referee", "--main", "README.rdoc"]
|
16
16
|
s.require_paths = ["lib"]
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: referee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 13
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
8
|
+
- 2
|
9
|
+
version: 0.4.2
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Ethan Turkeltaub
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-
|
17
|
+
date: 2010-12-03 00:00:00 -05:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
@@ -26,7 +25,6 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 5
|
30
28
|
segments:
|
31
29
|
- 0
|
32
30
|
- 6
|
@@ -51,7 +49,6 @@ extra_rdoc_files:
|
|
51
49
|
files:
|
52
50
|
- CHANGELOG
|
53
51
|
- LICENSE
|
54
|
-
- Manifest
|
55
52
|
- README.rdoc
|
56
53
|
- Rakefile
|
57
54
|
- lib/referee.rb
|
@@ -59,6 +56,7 @@ files:
|
|
59
56
|
- lib/referee/player.rb
|
60
57
|
- lib/referee/shot.rb
|
61
58
|
- referee.gemspec
|
59
|
+
- Manifest
|
62
60
|
has_rdoc: true
|
63
61
|
homepage: http://github.com/eturk/referee
|
64
62
|
licenses: []
|
@@ -78,7 +76,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
78
76
|
requirements:
|
79
77
|
- - ">="
|
80
78
|
- !ruby/object:Gem::Version
|
81
|
-
hash: 3
|
82
79
|
segments:
|
83
80
|
- 0
|
84
81
|
version: "0"
|
@@ -87,7 +84,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
84
|
requirements:
|
88
85
|
- - ">="
|
89
86
|
- !ruby/object:Gem::Version
|
90
|
-
hash: 11
|
91
87
|
segments:
|
92
88
|
- 1
|
93
89
|
- 2
|