dribble 0.0.25 → 0.0.31

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,24 +1,26 @@
1
1
  = Dribble
2
2
 
3
- This is the unofficial dribble api.
4
-
5
- There is a very thin wrapper for the Dribble API that is labeled as Dribble::API. This uses the bare minimum to get the desired data from Dribble and returns a symbolized hash. This implementation is focused on simplicity and speed. However, I have yet to really work on the speed aspect.
3
+ This is the unofficial dribble api. For more examples look in the examples/ directory. There are examples for the both styles (object notation and hash implementation.)
6
4
 
7
5
  == Dribble::API
8
6
 
7
+ There is a very thin wrapper for the Dribble API that is labeled as Dribble::API. This uses the bare minimum to get the desired data from Dribble and returns a hash. This implementation is focused on simplicity and speed. However, I have yet to really work on the speed aspect.
8
+
9
9
  Dribble::API::Player.profile('simplebits')
10
10
  Dribble::API::Shot.popular
11
11
 
12
12
 
13
- Dribble::Player and Dribble::Shot is another layer on-top of the API to add that object look and feel. This is more for convenience and ease of use.
14
-
15
- This is meant for convenience and ease of use.
16
-
17
-
18
13
  == Dribble::Player && Dribble::Shot
19
14
 
20
- Dribble::Player.find('simplebits')
15
+ Dribble::Player and Dribble::Shot is another layer on-top of the API to add that object look and feel. This is more for convenience and ease of use.
16
+
17
+ This is meant for convenience and ease of use.
18
+
21
19
  Dribble::Shot.popular
20
+
21
+ player = Dribble::Player.profile('simplebits')
22
+ player.following # => the shots that this player is following
23
+ player.shots # => the players shots
22
24
 
23
25
  == Note on Patches/Pull Requests
24
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.25
1
+ 0.0.31
data/dribble.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dribble}
8
- s.version = "0.0.25"
8
+ s.version = "0.0.31"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Robert R Evans"]
12
- s.date = %q{2010-08-02}
12
+ s.date = %q{2010-08-05}
13
13
  s.description = %q{API Wrapper for the awesome Dribble Site}
14
14
  s.email = %q{robert@codewranglers.org}
15
15
  s.extra_rdoc_files = [
data/examples/player.rb CHANGED
@@ -12,7 +12,22 @@ require File.join(dir, 'dribble')
12
12
  # puts player.inspect
13
13
 
14
14
 
15
+ # puts
16
+ # puts "Find the shots that a specific Player is following"
17
+ # player3 = Dribble::Player.following_shots('simplebits')
18
+ # puts player3.inspect
19
+
20
+
21
+
15
22
  puts
16
- puts "Find the shots that a specific Player is following"
17
- player3 = Dribble::Player.following_shots('simplebits')
18
- puts player3.inspect
23
+ puts "Get a Player's Profile"
24
+ player = Dribble::Player.find(1)
25
+ puts player.inspect
26
+ # puts
27
+ # puts "Take this player and see what shots they are following"
28
+ # following_shots = player.following
29
+ # puts following_shots.inspect
30
+ # puts
31
+ # puts "Take this player and see what shots they've put up"
32
+ # my_shots = player.shots
33
+ # puts my_shots.inspect
data/examples/shot.rb CHANGED
@@ -30,18 +30,4 @@ require File.join(dir, 'dribble')
30
30
  # puts following.inspect
31
31
  # puts
32
32
  # following_page_2 = following.next_page
33
- # puts following_page_2.inspect
34
-
35
-
36
- puts
37
- puts "Get a Player's Profile"
38
- player = Dribble::Player.find(1)
39
- puts player.inspect
40
- puts
41
- puts "Take this player and see what shots they are following"
42
- following_shots = player.following
43
- puts following_shots.inspect
44
- puts
45
- puts "Take this player and see what shots they've put up"
46
- my_shots = player.shots
47
- puts my_shots.inspect
33
+ # puts following_page_2.inspect
@@ -1,7 +1,8 @@
1
1
  module Dribble
2
2
  class Player
3
3
  attr_reader :id, :name, :url, :avatar_url, :location, :created_at, :draftees_count,
4
- :following_count, :shots_count, :followers_count, :following, :shots
4
+ :following_count, :shots_count, :followers_count, :following, :shots,
5
+ :drafted_by_player_id, :draftees_count
5
6
 
6
7
 
7
8
  def initialize(attr={})
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dribble
3
3
  version: !ruby/object:Gem::Version
4
- hash: 45
4
+ hash: 33
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 25
10
- version: 0.0.25
9
+ - 31
10
+ version: 0.0.31
11
11
  platform: ruby
12
12
  authors:
13
13
  - Robert R Evans
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-02 00:00:00 -07:00
18
+ date: 2010-08-05 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency