dribbble 1.0.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +33 -0
- data/.travis.yml +3 -6
- data/CHANGELOG.md +58 -0
- data/Gemfile +10 -0
- data/Guardfile +4 -2
- data/README.md +44 -285
- data/Rakefile +2 -0
- data/dribbble.gemspec +10 -8
- data/lib/dribbble.rb +3 -1
- data/lib/dribbble/attachment.rb +9 -1
- data/lib/dribbble/base.rb +3 -1
- data/lib/dribbble/client.rb +5 -30
- data/lib/dribbble/errors.rb +3 -3
- data/lib/dribbble/project.rb +10 -2
- data/lib/dribbble/shot.rb +3 -33
- data/lib/dribbble/user.rb +1 -51
- data/lib/dribbble/utils.rb +5 -3
- data/lib/dribbble/utils/creatable.rb +3 -1
- data/lib/dribbble/utils/deletable.rb +3 -1
- data/lib/dribbble/utils/findable.rb +2 -0
- data/lib/dribbble/utils/has_children.rb +16 -12
- data/lib/dribbble/utils/updatable.rb +2 -0
- data/lib/dribbble/version.rb +3 -1
- data/spec/lib/dribbble/base_spec.rb +10 -8
- data/spec/lib/dribbble/client_spec.rb +16 -69
- data/spec/lib/dribbble/project_spec.rb +52 -16
- data/spec/lib/dribbble/shot_spec.rb +14 -197
- data/spec/lib/dribbble/user_spec.rb +5 -175
- data/spec/spec_helper.rb +5 -3
- data/spec/support/dribbble_api.rb +17 -88
- data/spec/support/fixtures/current_user_success.json +35 -24
- data/spec/support/fixtures/project_success.json +1 -1
- data/spec/support/fixtures/projects_accepted.json +8 -0
- data/spec/support/fixtures/projects_deleted.json +8 -0
- data/spec/support/fixtures/projects_success.json +1 -1
- data/spec/support/fixtures/projects_updated.json +8 -0
- data/spec/support/fixtures/shot_success.json +16 -16
- data/spec/support/fixtures/shot_updated.json +78 -78
- data/spec/support/fixtures/shots_success.json +81 -103
- data/spec/support/fixtures/user_success.json +35 -24
- metadata +33 -67
- data/lib/dribbble/bucket.rb +0 -33
- data/lib/dribbble/comment.rb +0 -29
- data/lib/dribbble/like.rb +0 -7
- data/lib/dribbble/team.rb +0 -6
- data/spec/lib/dribbble/bucket_spec.rb +0 -136
- data/spec/lib/dribbble/comment_spec.rb +0 -77
- data/spec/lib/dribbble/team_spec.rb +0 -43
- data/spec/support/fixtures/attachments_success.json +0 -11
- data/spec/support/fixtures/bucket_created.json +0 -8
- data/spec/support/fixtures/bucket_success.json +0 -8
- data/spec/support/fixtures/bucket_updated.json +0 -8
- data/spec/support/fixtures/buckets_success.json +0 -10
- data/spec/support/fixtures/comment_created.json +0 -38
- data/spec/support/fixtures/comment_likes_success.json +0 -40
- data/spec/support/fixtures/comment_success.json +0 -38
- data/spec/support/fixtures/comment_updated.json +0 -38
- data/spec/support/fixtures/comments_success.json +0 -37
- data/spec/support/fixtures/followers_success.json +0 -33
- data/spec/support/fixtures/following_success.json +0 -33
- data/spec/support/fixtures/shot_likes_success.json +0 -33
- data/spec/support/fixtures/team_success.json +0 -26
- data/spec/support/fixtures/teams_success.json +0 -28
- data/spec/support/fixtures/user_likes_success.json +0 -91
- data/spec/support/fixtures/users_success.json +0 -27
@@ -1,33 +0,0 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"id" : 24400091,
|
4
|
-
"created_at" : "2014-01-06T17:19:59Z",
|
5
|
-
"user" : {
|
6
|
-
"id" : 1,
|
7
|
-
"name" : "Dan Cederholm",
|
8
|
-
"username" : "simplebits",
|
9
|
-
"html_url" : "https://dribbble.com/simplebits",
|
10
|
-
"avatar_url" : "https://d13yacurqjgara.cloudfront.net/users/1/avatars/normal/dc.jpg?1371679243",
|
11
|
-
"bio" : "Co-founder & designer of <a href=\"https://dribbble.com/dribbble\">@Dribbble</a>. Principal of SimpleBits. Aspiring clawhammer banjoist.",
|
12
|
-
"location" : "Salem, MA",
|
13
|
-
"links" : {
|
14
|
-
"web" : "http://simplebits.com",
|
15
|
-
"twitter" : "https://twitter.com/simplebits"
|
16
|
-
},
|
17
|
-
"followers_count" : 29262,
|
18
|
-
"followings_count" : 1728,
|
19
|
-
"likes_count" : 34954,
|
20
|
-
"shots_count" : 214,
|
21
|
-
"type" : "User",
|
22
|
-
"pro" : true,
|
23
|
-
"buckets_url" : "https://dribbble.com/v1/users/1/buckets",
|
24
|
-
"followers_url" : "https://dribbble.com/v1/users/1/followers",
|
25
|
-
"following_url" : "https://dribbble.com/v1/users/1/following",
|
26
|
-
"likes_url" : "https://dribbble.com/v1/users/1/likes",
|
27
|
-
"shots_url" : "https://dribbble.com/v1/users/1/shots",
|
28
|
-
"teams_url" : "https://dribbble.com/v1/users/1/teams",
|
29
|
-
"created_at" : "2009-07-08T02:51:22Z",
|
30
|
-
"updated_at" : "2014-02-22T17:10:33Z"
|
31
|
-
}
|
32
|
-
}
|
33
|
-
]
|
@@ -1,26 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"id" : 39,
|
3
|
-
"name" : "Dribbble",
|
4
|
-
"username" : "dribbble",
|
5
|
-
"html_url" : "https://dribbble.com/dribbble",
|
6
|
-
"avatar_url" : "https://d13yacurqjgara.cloudfront.net/users/39/avatars/normal/apple-flat-precomposed.png?1388527574",
|
7
|
-
"bio" : "Show and tell for designers. This is Dribbble on Dribbble.",
|
8
|
-
"location" : "Salem, MA",
|
9
|
-
"links" : {
|
10
|
-
"web" : "http://dribbble.com",
|
11
|
-
"twitter" : "https://twitter.com/dribbble"
|
12
|
-
},
|
13
|
-
"followers_count" : 25011,
|
14
|
-
"followings_count" : 6120,
|
15
|
-
"likes_count" : 44,
|
16
|
-
"shots_count" : 91,
|
17
|
-
"type" : "Team",
|
18
|
-
"pro" : false,
|
19
|
-
"buckets_url" : "https://dribbble.com/v1/users/39/buckets",
|
20
|
-
"followers_url" : "https://dribbble.com/v1/users/39/followers",
|
21
|
-
"likes_url" : "https://dribbble.com/v1/users/39/likes",
|
22
|
-
"shots_url" : "https://dribbble.com/v1/users/39/shots",
|
23
|
-
"teams_url" : "https://dribbble.com/v1/users/39/teams",
|
24
|
-
"created_at" : "2009-08-18T18:34:31Z",
|
25
|
-
"updated_at" : "2014-02-14T22:32:11Z"
|
26
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"id" : 39,
|
4
|
-
"name" : "Dribbble",
|
5
|
-
"username" : "dribbble",
|
6
|
-
"html_url" : "https://dribbble.com/dribbble",
|
7
|
-
"avatar_url" : "https://d13yacurqjgara.cloudfront.net/users/39/avatars/normal/apple-flat-precomposed.png?1388527574",
|
8
|
-
"bio" : "Show and tell for designers. This is Dribbble on Dribbble.",
|
9
|
-
"location" : "Salem, MA",
|
10
|
-
"links" : {
|
11
|
-
"web" : "http://dribbble.com",
|
12
|
-
"twitter" : "https://twitter.com/dribbble"
|
13
|
-
},
|
14
|
-
"followers_count" : 25011,
|
15
|
-
"followings_count" : 6120,
|
16
|
-
"likes_count" : 44,
|
17
|
-
"shots_count" : 91,
|
18
|
-
"type" : "Team",
|
19
|
-
"pro" : false,
|
20
|
-
"buckets_url" : "https://dribbble.com/v1/users/39/buckets",
|
21
|
-
"followers_url" : "https://dribbble.com/v1/users/39/followers",
|
22
|
-
"likes_url" : "https://dribbble.com/v1/users/39/likes",
|
23
|
-
"shots_url" : "https://dribbble.com/v1/users/39/shots",
|
24
|
-
"teams_url" : "https://dribbble.com/v1/users/39/teams",
|
25
|
-
"created_at" : "2009-08-18T18:34:31Z",
|
26
|
-
"updated_at" : "2014-02-14T22:32:11Z"
|
27
|
-
}
|
28
|
-
]
|
@@ -1,91 +0,0 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"id" : 24400091,
|
4
|
-
"created_at" : "2014-01-06T17:19:59Z",
|
5
|
-
"shot" : {
|
6
|
-
"id" : 471756,
|
7
|
-
"title" : "Sasquatch",
|
8
|
-
"description" : "<p>Quick, messy, five minute sketch of something that might become a fictional something.</p>",
|
9
|
-
"width" : 400,
|
10
|
-
"height" : 300,
|
11
|
-
"images" : {
|
12
|
-
"hidpi" : null,
|
13
|
-
"normal" : "https://d13yacurqjgara.cloudfront.net/users/1/screenshots/471756/sasquatch.png",
|
14
|
-
"teaser" : "https://d13yacurqjgara.cloudfront.net/users/1/screenshots/471756/sasquatch_teaser.png"
|
15
|
-
},
|
16
|
-
"views_count" : 4372,
|
17
|
-
"likes_count" : 149,
|
18
|
-
"comments_count" : 27,
|
19
|
-
"attachments_count" : 0,
|
20
|
-
"rebounds_count" : 2,
|
21
|
-
"buckets_count" : 8,
|
22
|
-
"created_at" : "2012-03-15T01:52:33Z",
|
23
|
-
"updated_at" : "2012-03-15T02:12:57Z",
|
24
|
-
"html_url" : "https://dribbble.com/shots/471756-Sasquatch",
|
25
|
-
"attachments_url" : "https://api.dribbble.com/v1/shots/471756/attachments",
|
26
|
-
"comments_url" : "https://api.dribbble.com/v1/shots/471756/comments",
|
27
|
-
"likes_url" : "https://api.dribbble.com/v1/shots/471756/likes",
|
28
|
-
"projects_url" : "https://api.dribbble.com/v1/shots/471756/projects",
|
29
|
-
"rebounds_url" : "https://api.dribbble.com/v1/shots/471756/rebounds",
|
30
|
-
"tags" : [
|
31
|
-
"fiction",
|
32
|
-
"sasquatch",
|
33
|
-
"sketch",
|
34
|
-
"wip"
|
35
|
-
],
|
36
|
-
"user" : {
|
37
|
-
"id" : 1,
|
38
|
-
"name" : "Dan Cederholm",
|
39
|
-
"username" : "simplebits",
|
40
|
-
"html_url" : "https://dribbble.com/simplebits",
|
41
|
-
"avatar_url" : "https://d13yacurqjgara.cloudfront.net/users/1/avatars/normal/dc.jpg?1371679243",
|
42
|
-
"bio" : "Co-founder & designer of <a href=\"https://dribbble.com/dribbble\">@Dribbble</a>. Principal of SimpleBits. Aspiring clawhammer banjoist.",
|
43
|
-
"location" : "Salem, MA",
|
44
|
-
"links" : {
|
45
|
-
"web" : "http://simplebits.com",
|
46
|
-
"twitter" : "https://twitter.com/simplebits"
|
47
|
-
},
|
48
|
-
"followers_count" : 29262,
|
49
|
-
"followings_count" : 1728,
|
50
|
-
"likes_count" : 34954,
|
51
|
-
"shots_count" : 214,
|
52
|
-
"type" : "User",
|
53
|
-
"pro" : true,
|
54
|
-
"buckets_url" : "https://dribbble.com/v1/users/1/buckets",
|
55
|
-
"followers_url" : "https://dribbble.com/v1/users/1/followers",
|
56
|
-
"following_url" : "https://dribbble.com/v1/users/1/following",
|
57
|
-
"likes_url" : "https://dribbble.com/v1/users/1/likes",
|
58
|
-
"shots_url" : "https://dribbble.com/v1/users/1/shots",
|
59
|
-
"teams_url" : "https://dribbble.com/v1/users/1/teams",
|
60
|
-
"created_at" : "2009-07-08T02:51:22Z",
|
61
|
-
"updated_at" : "2014-02-22T17:10:33Z"
|
62
|
-
},
|
63
|
-
"team" : {
|
64
|
-
"id" : 39,
|
65
|
-
"name" : "Dribbble",
|
66
|
-
"username" : "dribbble",
|
67
|
-
"html_url" : "https://dribbble.com/dribbble",
|
68
|
-
"avatar_url" : "https://d13yacurqjgara.cloudfront.net/users/39/avatars/normal/apple-flat-precomposed.png?1388527574",
|
69
|
-
"bio" : "Show and tell for designers. This is Dribbble on Dribbble.",
|
70
|
-
"location" : "Salem, MA",
|
71
|
-
"links" : {
|
72
|
-
"web" : "http://dribbble.com",
|
73
|
-
"twitter" : "https://twitter.com/dribbble"
|
74
|
-
},
|
75
|
-
"followers_count" : 25011,
|
76
|
-
"followings_count" : 6120,
|
77
|
-
"likes_count" : 44,
|
78
|
-
"shots_count" : 91,
|
79
|
-
"type" : "Team",
|
80
|
-
"pro" : false,
|
81
|
-
"buckets_url" : "https://dribbble.com/v1/users/39/buckets",
|
82
|
-
"followers_url" : "https://dribbble.com/v1/users/39/followers",
|
83
|
-
"likes_url" : "https://dribbble.com/v1/users/39/likes",
|
84
|
-
"shots_url" : "https://dribbble.com/v1/users/39/shots",
|
85
|
-
"teams_url" : "https://dribbble.com/v1/users/39/teams",
|
86
|
-
"created_at" : "2009-08-18T18:34:31Z",
|
87
|
-
"updated_at" : "2014-02-14T22:32:11Z"
|
88
|
-
}
|
89
|
-
}
|
90
|
-
}
|
91
|
-
]
|
@@ -1,27 +0,0 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"id" : 483195,
|
4
|
-
"name" : "Charley D.",
|
5
|
-
"username" : "Calyhre",
|
6
|
-
"html_url" : "https://dribbble.com/Calyhre",
|
7
|
-
"avatar_url" : "https://d13yacurqjgara.cloudfront.net/users/483195/avatars/normal/493064787.png?1390292526",
|
8
|
-
"bio" : "",
|
9
|
-
"location" : null,
|
10
|
-
"links" : {},
|
11
|
-
"followers_count" : 1,
|
12
|
-
"followings_count" : 4,
|
13
|
-
"likes_count" : 4,
|
14
|
-
"shots_count" : 0,
|
15
|
-
"type" : "Player",
|
16
|
-
"pro" : false,
|
17
|
-
"buckets_url" : "https://api.dribbble.com/v1/users/483195/buckets",
|
18
|
-
"followers_url" : "https://api.dribbble.com/v1/users/483195/followers",
|
19
|
-
"following_url" : "https://api.dribbble.com/v1/users/483195/following",
|
20
|
-
"likes_url" : "https://api.dribbble.com/v1/users/483195/likes",
|
21
|
-
"projects_url" : "https://api.dribbble.com/v1/users/483195/projects",
|
22
|
-
"shots_url" : "https://api.dribbble.com/v1/users/483195/shots",
|
23
|
-
"teams_url" : "https://api.dribbble.com/v1/users/483195/teams",
|
24
|
-
"created_at" : "2014-01-21T08:22:06Z",
|
25
|
-
"updated_at" : "2014-09-29T19:39:00Z"
|
26
|
-
}
|
27
|
-
]
|