swish 0.4.0 → 0.5.0

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.5.0
@@ -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}"))
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{swish}
8
- s.version = "0.4.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-08-09}
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 = [
@@ -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
- assert_kind_of Numeric, player.shots_count
15
- assert_kind_of Numeric, player.draftees_count
16
- assert_kind_of Numeric, player.followers_count
17
- assert_kind_of Numeric, player.following_count
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: 15
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 4
8
+ - 5
9
9
  - 0
10
- version: 0.4.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-08-09 00:00:00 -04:00
18
+ date: 2010-09-04 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency