swish 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/dribbble/player.rb +2 -1
- data/swish.gemspec +2 -2
- data/test/player_test.rb +9 -4
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
data/lib/dribbble/player.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
module Dribbble
|
2
2
|
class Player < Base
|
3
3
|
attr_accessor :id, :name, :url, :avatar_url, :location, :twitter_screen_name, :drafted_by_player_id,
|
4
|
-
:shots_count, :draftees_count, :followers_count, :following_count
|
4
|
+
:shots_count, :draftees_count, :followers_count, :following_count,
|
5
|
+
:comments_count, :comments_received_count, :likes_count, :likes_received_count, :rebounds_count, :rebounds_received_count
|
5
6
|
|
6
7
|
def self.find(id)
|
7
8
|
new(get("/players/#{id}"))
|
data/swish.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{swish}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.5.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jeremy Weiskotten"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-09-04}
|
13
13
|
s.description = %q{A Ruby wrapper for the Dribbble API}
|
14
14
|
s.email = %q{jeremy@weiskotten.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/test/player_test.rb
CHANGED
@@ -11,10 +11,15 @@ class PlayerTest < Test::Unit::TestCase
|
|
11
11
|
assert_equal 'simplebits', player.twitter_screen_name
|
12
12
|
assert_nil player.drafted_by_player_id # no one drafted Dan
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
numerics = [
|
15
|
+
:shots_count, :draftees_count, :followers_count, :following_count,
|
16
|
+
:comments_count, :comments_received_count, :likes_count,
|
17
|
+
:likes_received_count, :rebounds_count, :rebounds_received_count
|
18
|
+
]
|
19
|
+
|
20
|
+
numerics.each do |field|
|
21
|
+
assert_kind_of Numeric, player.send(field), "Expected #{field} to be Numeric but it was #{field.class}"
|
22
|
+
end
|
18
23
|
end
|
19
24
|
|
20
25
|
def test_shots
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 5
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.5.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeremy Weiskotten
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-09-04 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|