behance 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +5 -13
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +143 -63
  4. data/lib/behance/client.rb +3 -1
  5. data/lib/behance/collections.rb +24 -16
  6. data/lib/behance/creatives_to_follow.rb +23 -0
  7. data/lib/behance/fields.rb +12 -1
  8. data/lib/behance/project.rb +36 -30
  9. data/lib/behance/user.rb +91 -35
  10. data/lib/behance/version.rb +1 -1
  11. data/lib/behance/wips.rb +19 -22
  12. data/spec/behance/client_spec.rb +1 -1
  13. data/spec/behance/collections_spec.rb +5 -5
  14. data/spec/behance/creatives_to_follow_spec.rb +44 -0
  15. data/spec/behance/fields_spec.rb +20 -1
  16. data/spec/behance/project_spec.rb +4 -4
  17. data/spec/behance/user_spec.rb +122 -28
  18. data/spec/behance/wips_spec.rb +28 -13
  19. data/spec/fixtures/collection.json +218 -34
  20. data/spec/fixtures/collection_projects.json +688 -88
  21. data/spec/fixtures/collections.json +2192 -104
  22. data/spec/fixtures/creatives_to_follow.json +302 -0
  23. data/spec/fixtures/fields.json +323 -26
  24. data/spec/fixtures/project.json +716 -10
  25. data/spec/fixtures/project_comments.json +13140 -271
  26. data/spec/fixtures/projects.json +786 -339
  27. data/spec/fixtures/user.json +165 -31
  28. data/spec/fixtures/user_appreciations.json +1155 -211
  29. data/spec/fixtures/user_collections.json +2153 -70
  30. data/spec/fixtures/user_followers.json +319 -0
  31. data/spec/fixtures/user_following.json +362 -0
  32. data/spec/fixtures/user_projects.json +2076 -172
  33. data/spec/fixtures/user_stats.json +14 -13
  34. data/spec/fixtures/user_wips.json +2095 -46
  35. data/spec/fixtures/user_work_experience.json +37 -29
  36. data/spec/fixtures/users.json +347 -97
  37. data/spec/fixtures/wip.json +72 -23
  38. data/spec/fixtures/wip_revision.json +28 -8
  39. data/spec/fixtures/wip_revision_comments.json +184 -108
  40. data/spec/fixtures/wips.json +1015 -158
  41. metadata +26 -17
@@ -1,30 +1,79 @@
1
1
  {
2
-
3
2
  "wip": {
4
3
  "id": 69,
5
- "title": "Portfolio Review Schedule Design",
6
- "revision_count": 1,
7
- "latest_rev_id": 133,
8
- "latest_rev_tags": [
9
- "behance",
10
- "schedule",
11
- "information"
12
- ],
13
- "latest_rev_image": "http://behance.vo.llnwd.net/profiles/50004/wips/69/disp_4eb1864fcbe705dbcd6eca5ff155a454.png",
14
- "latest_rev_thumb": "http://behance.vo.llnwd.net/profiles/50004/wips/69/thumb_4eb1864fcbe705dbcd6eca5ff155a454.png",
15
- "url": "http://www.behance.net/wip/69",
16
- "created_on": 1338927430,
17
- "stats": {
18
- "views": 149,
19
- "comments": 8
20
- },
21
- "revisions": [
22
- {
4
+ "url": "https://www.behance.net/wip/69",
5
+ "title": "Portfolio Review Schedule Design",
6
+ "revision_count": 1,
7
+ "project_id": 0,
8
+ "privacy": "public",
9
+ "mature_content": 0,
10
+ "mature_access": "allowed",
11
+ "created_on": 1338927430,
12
+ "stats": {
13
+ "revisions": 1,
14
+ "views": 246,
15
+ "comments": 8
16
+ },
17
+ "revisions": {
18
+ "133": {
23
19
  "id": 133,
20
+ "wip_id": 69,
24
21
  "description": "Here's the first version of the schedule for a sample event. I think the time increments for actual review meetings work for small groups, but possibly not for larger ones. I like the actions at the bottom. Working for others?",
25
- "image": "http://behance.vo.llnwd.net/profiles/50004/wips/69/disp_4eb1864fcbe705dbcd6eca5ff155a454.png"
22
+ "short_url": "http://be.net/wip/69/133",
23
+ "url": "https://www.behance.net/wip/69/133",
24
+ "images": {
25
+ "thumbnail_sm": {
26
+ "width": 160,
27
+ "height": 160,
28
+ "url": "https://mir-s3-cdn-cf.behance.net/wip/thumb/133.53e395739d959.png"
29
+ },
30
+ "thumbnail": {
31
+ "width": 320,
32
+ "height": 200,
33
+ "url": "https://mir-s3-cdn-cf.behance.net/wip/320pxthumb/133.53e395739d959.png"
34
+ },
35
+ "normal_resolution": {
36
+ "width": 708,
37
+ "height": 443,
38
+ "url": "https://mir-s3-cdn-cf.behance.net/wip/disp/133.53e395739d959.png"
39
+ }
40
+ },
41
+ "number": 1,
42
+ "created_on": 1338927430,
43
+ "tags": [
44
+ "behance",
45
+ "schedule",
46
+ "information"
47
+ ]
26
48
  }
27
- ]
28
- }
29
-
49
+ },
50
+ "owner": {
51
+ "id": 50004,
52
+ "first_name": "Scott",
53
+ "last_name": "Belsky",
54
+ "username": "sbelsky",
55
+ "city": "New York",
56
+ "state": "New York",
57
+ "country": "United States",
58
+ "location": "New York, NY, USA",
59
+ "company": "Adobe",
60
+ "occupation": "Head of Behance; Community",
61
+ "created_on": 1182480652,
62
+ "url": "https://www.behance.net/sbelsky",
63
+ "images": {
64
+ "50": "https://mir-s3-cdn-cf.behance.net/user/50/50004.53a9829c17328.jpg",
65
+ "115": "https://mir-s3-cdn-cf.behance.net/user/115/50004.53a9829c17328.jpg",
66
+ "138": "https://mir-s3-cdn-cf.behance.net/user/138/50004.53a9829c17328.jpg"
67
+ },
68
+ "display_name": "Scott Belsky",
69
+ "fields": [
70
+ "Interaction Design",
71
+ "UI/UX",
72
+ "Web Design"
73
+ ],
74
+ "has_default_image": 0,
75
+ "website": "http://www.scottbelsky.com"
76
+ }
77
+ },
78
+ "http_code": 200
30
79
  }
@@ -1,14 +1,34 @@
1
1
  {
2
-
3
2
  "revision": {
4
3
  "id": 133,
5
- "description": "Here's the first version of the schedule for a sample event. I think the time increments for actual review meetings work for small groups, but possibly not for larger ones. I like the actions at the bottom. Working for others?",
6
- "image": "http://behance.vo.llnwd.net/profiles/50004/wips/69/disp_4eb1864fcbe705dbcd6eca5ff155a454.png",
7
- "tags": [
8
- "behance",
4
+ "wip_id": 69,
5
+ "description": "Here's the first version of the schedule for a sample event. I think the time increments for actual review meetings work for small groups, but possibly not for larger ones. I like the actions at the bottom. Working for others?",
6
+ "short_url": "http://be.net/wip/69/133",
7
+ "url": "https://www.behance.net/wip/69/133",
8
+ "images": {
9
+ "thumbnail_sm": {
10
+ "width": 160,
11
+ "height": 160,
12
+ "url": "https://mir-s3-cdn-cf.behance.net/wip/thumb/133.53e395739d959.png"
13
+ },
14
+ "thumbnail": {
15
+ "width": 320,
16
+ "height": 200,
17
+ "url": "https://mir-s3-cdn-cf.behance.net/wip/320pxthumb/133.53e395739d959.png"
18
+ },
19
+ "normal_resolution": {
20
+ "width": 708,
21
+ "height": 443,
22
+ "url": "https://mir-s3-cdn-cf.behance.net/wip/disp/133.53e395739d959.png"
23
+ }
24
+ },
25
+ "number": 1,
26
+ "created_on": 1338927430,
27
+ "tags": [
28
+ "behance",
9
29
  "schedule",
10
30
  "information"
11
- ]
12
- }
13
-
31
+ ]
32
+ },
33
+ "http_code": 200
14
34
  }
@@ -1,127 +1,203 @@
1
1
  {
2
2
  "comments": [
3
- {
4
- "user": {
5
- "id": 105815,
6
- "first_name": "Déno",
7
- "last_name": "Lelić",
3
+ {
4
+ "id": 4075,
5
+ "comment": "Love the infinity icon below \"Mingle & Drinks\". ",
6
+ "user": {
7
+ "id": 105815,
8
+ "first_name": "Denis",
9
+ "last_name": "Lelic",
8
10
  "username": "denolelic",
9
11
  "city": "Ljubljana",
10
12
  "state": "",
11
13
  "country": "Slovenia",
12
- "company": "",
13
- "occupation": "",
14
+ "location": "Ljubljana, Slovenia",
15
+ "company": "De Biro®",
16
+ "occupation": "Creative",
14
17
  "created_on": 1243263958,
15
- "url": "http://www.behance.net/denolelic",
16
- "display_name": "Déno Lelić",
18
+ "url": "https://www.behance.net/denolelic",
17
19
  "images": {
18
- "32": "http://behance.vo.llnwd.net/profiles2/105815/32xc919ae43c8859f13293576b364c345dd.jpg",
19
- "50": "http://behance.vo.llnwd.net/profiles2/105815/50xc919ae43c8859f13293576b364c345dd.jpg",
20
- "78": "http://behance.vo.llnwd.net/profiles2/105815/78xc919ae43c8859f13293576b364c345dd.jpg",
21
- "115": "http://behance.vo.llnwd.net/profiles2/105815/115xc919ae43c8859f13293576b364c345dd.jpg",
22
- "129": "http://behance.vo.llnwd.net/profiles2/105815/129xc919ae43c8859f13293576b364c345dd.jpg",
23
- "138": "http://behance.vo.llnwd.net/profiles2/105815/c919ae43c8859f13293576b364c345dd.jpg"
20
+ "50": "https://mir-s3-cdn-cf.behance.net/user/50/105815.53ab6741822e5.jpg",
21
+ "100": "https://mir-s3-cdn-cf.behance.net/user/100/105815.53ab6741822e5.jpg",
22
+ "115": "https://mir-s3-cdn-cf.behance.net/user/115/105815.53ab6741822e5.jpg",
23
+ "230": "https://mir-s3-cdn-cf.behance.net/user/230/105815.53ab6741822e5.jpg",
24
+ "138": "https://mir-s3-cdn-cf.behance.net/user/138/105815.53ab6741822e5.jpg",
25
+ "276": "https://mir-s3-cdn-cf.behance.net/user/276/105815.53ab6741822e5.jpg"
24
26
  },
27
+ "display_name": "Denis Lelic",
25
28
  "fields": [
26
29
  "Art Direction",
27
- "Branding",
28
- "Graphic Design"
29
- ]
30
+ "Graphic Design",
31
+ "Branding"
32
+ ],
33
+ "has_default_image": 0,
34
+ "website": "www.debureau.si"
35
+ },
36
+ "created_on": 1340304230
30
37
  },
31
- "comment": "Love the infinity icon below \"Mingle & Drinks\". ",
32
- "created_on": "2012-06-21 18:43:50"
33
- },
34
- {
35
- "user": {
36
- "id": 50004,
37
- "first_name": "Scott",
38
- "last_name": "Belsky",
39
- "username": "sbelsky",
40
- "city": "New York",
41
- "state": "New York",
42
- "country": "United States",
43
- "company": "Behance LLC",
44
- "occupation": "CEO",
45
- "created_on": 1182480652,
46
- "url": "http://www.behance.net/sbelsky",
47
- "display_name": "Scott Belsky",
48
- "images": {
49
- "32": "http://behance.vo.llnwd.net/profiles/50004/32x0500041182480801.jpg",
50
- "50": "http://behance.vo.llnwd.net/profiles/50004/50x0500041182480801.jpg",
51
- "78": "http://behance.vo.llnwd.net/profiles/50004/78x0500041182480801.jpg",
52
- "115": "http://behance.vo.llnwd.net/profiles/50004/115x0500041182480801.jpg",
53
- "129": "http://behance.vo.llnwd.net/profiles/50004/129x0500041182480801.jpg",
54
- "138": "http://behance.vo.llnwd.net/profiles/50004/0500041182480801.jpg"
38
+ {
39
+ "id": 2759,
40
+ "comment": "Agreed; good feedback. We've reduced them...",
41
+ "user": {
42
+ "id": 50004,
43
+ "first_name": "Scott",
44
+ "last_name": "Belsky",
45
+ "username": "sbelsky",
46
+ "city": "New York",
47
+ "state": "New York",
48
+ "country": "United States",
49
+ "location": "New York, NY, USA",
50
+ "company": "Adobe",
51
+ "occupation": "Head of Behance; Community",
52
+ "created_on": 1182480652,
53
+ "url": "https://www.behance.net/sbelsky",
54
+ "images": {
55
+ "50": "https://mir-s3-cdn-cf.behance.net/user/50/50004.53a9829c17328.jpg",
56
+ "115": "https://mir-s3-cdn-cf.behance.net/user/115/50004.53a9829c17328.jpg",
57
+ "138": "https://mir-s3-cdn-cf.behance.net/user/138/50004.53a9829c17328.jpg"
58
+ },
59
+ "display_name": "Scott Belsky",
60
+ "fields": [
61
+ "Interaction Design",
62
+ "UI/UX",
63
+ "Web Design"
64
+ ],
65
+ "has_default_image": 0,
66
+ "website": "http://www.scottbelsky.com"
55
67
  },
56
- "fields": [
57
- "Entrepreneurship",
58
- "Furniture Design",
59
- "Writing"
60
- ]
68
+ "created_on": 1340192764
61
69
  },
62
- "comment": "Agreed; good feedback. We've reduced them...",
63
- "created_on": "2012-06-20 11:46:04"
64
- },
65
- {
66
- "user": {
67
- "id": 183493,
68
- "first_name": "Fahim",
69
- "last_name": "MD",
70
- "username": "workoffahimmd",
71
- "city": "Toronto",
72
- "state": "Ontario",
73
- "country": "Canada",
74
- "company": "Work Of Fahim MD",
75
- "occupation": "Creative Designer",
76
- "created_on": 1277406314,
77
- "url": "http://www.behance.net/workoffahimmd",
78
- "display_name": "Fahim MD",
79
- "images": {
80
- "32": "http://behance.vo.llnwd.net/profiles4/183493/32x661ae522810f714aa781c7224970ae91.png",
81
- "50": "http://behance.vo.llnwd.net/profiles4/183493/50x661ae522810f714aa781c7224970ae91.png",
82
- "78": "http://behance.vo.llnwd.net/profiles4/183493/78x661ae522810f714aa781c7224970ae91.png",
83
- "115": "http://behance.vo.llnwd.net/profiles4/183493/115x661ae522810f714aa781c7224970ae91.png",
84
- "129": "http://behance.vo.llnwd.net/profiles4/183493/129x661ae522810f714aa781c7224970ae91.png",
85
- "138": "http://behance.vo.llnwd.net/profiles4/183493/661ae522810f714aa781c7224970ae91.png"
70
+ {
71
+ "id": 2739,
72
+ "comment": "The buttons for \"Attend\" and \"Organize are way too big. Have you tried aligning the width end of the \" : \" ? ",
73
+ "user": {
74
+ "id": 183493,
75
+ "first_name": "Fahim",
76
+ "last_name": "MD",
77
+ "username": "workoffahimmd",
78
+ "city": "Toronto",
79
+ "state": "Ontario",
80
+ "country": "Canada",
81
+ "location": "Toronto, Ontario, Canada",
82
+ "company": "",
83
+ "occupation": "Senior UX/UI Designer & Founder of Zhaboom.com",
84
+ "created_on": 1277406314,
85
+ "url": "https://www.behance.net/workoffahimmd",
86
+ "images": {
87
+ "50": "https://mir-s3-cdn-cf.behance.net/user/50/183493.53ac2c9d31411.jpg",
88
+ "100": "https://mir-s3-cdn-cf.behance.net/user/100/183493.53ac2c9d31411.jpg",
89
+ "115": "https://mir-s3-cdn-cf.behance.net/user/115/183493.53ac2c9d31411.jpg",
90
+ "230": "https://mir-s3-cdn-cf.behance.net/user/230/183493.53ac2c9d31411.jpg",
91
+ "138": "https://mir-s3-cdn-cf.behance.net/user/138/183493.53ac2c9d31411.jpg",
92
+ "276": "https://mir-s3-cdn-cf.behance.net/user/276/183493.53ac2c9d31411.jpg"
93
+ },
94
+ "display_name": "Fahim MD",
95
+ "fields": [
96
+ "Web Design",
97
+ "UI/UX",
98
+ "Graphic Design"
99
+ ],
100
+ "has_default_image": 0,
101
+ "website": "www.workoffahimmd.com"
86
102
  },
87
- "fields": [
88
- "Branding",
89
- "User Interface Design",
90
- "Web Design"
91
- ]
103
+ "created_on": 1340192217
92
104
  },
93
- "comment": "The buttons for \"Attend\" and \"Organize are way too big. Have you tried aligning the width end of the \" : \" ? ",
94
- "created_on": "2012-06-20 11:36:57"
95
- },
96
- {
97
- "user": {
98
- "id": 50004,
99
- "first_name": "Scott",
100
- "last_name": "Belsky",
101
- "username": "sbelsky",
102
- "city": "New York",
103
- "state": "New York",
104
- "country": "United States",
105
- "company": "Behance LLC",
106
- "occupation": "CEO",
107
- "created_on": 1182480652,
108
- "url": "http://www.behance.net/sbelsky",
109
- "display_name": "Scott Belsky",
110
- "images": {
111
- "32": "http://behance.vo.llnwd.net/profiles/50004/32x0500041182480801.jpg",
112
- "50": "http://behance.vo.llnwd.net/profiles/50004/50x0500041182480801.jpg",
113
- "78": "http://behance.vo.llnwd.net/profiles/50004/78x0500041182480801.jpg",
114
- "115": "http://behance.vo.llnwd.net/profiles/50004/115x0500041182480801.jpg",
115
- "129": "http://behance.vo.llnwd.net/profiles/50004/129x0500041182480801.jpg",
116
- "138": "http://behance.vo.llnwd.net/profiles/50004/0500041182480801.jpg"
105
+ {
106
+ "id": 155,
107
+ "comment": "Ha! Thanks Nicklaus...we were trying to use iconography because of the very international audience that was participating. Many of the events happened a few weeks ago, here's a collection of images from the events: http://pinterest.com/behance/behance-portfolio-reviews/",
108
+ "user": {
109
+ "id": 50004,
110
+ "first_name": "Scott",
111
+ "last_name": "Belsky",
112
+ "username": "sbelsky",
113
+ "city": "New York",
114
+ "state": "New York",
115
+ "country": "United States",
116
+ "location": "New York, NY, USA",
117
+ "company": "Adobe",
118
+ "occupation": "Head of Behance; Community",
119
+ "created_on": 1182480652,
120
+ "url": "https://www.behance.net/sbelsky",
121
+ "images": {
122
+ "50": "https://mir-s3-cdn-cf.behance.net/user/50/50004.53a9829c17328.jpg",
123
+ "115": "https://mir-s3-cdn-cf.behance.net/user/115/50004.53a9829c17328.jpg",
124
+ "138": "https://mir-s3-cdn-cf.behance.net/user/138/50004.53a9829c17328.jpg"
125
+ },
126
+ "display_name": "Scott Belsky",
127
+ "fields": [
128
+ "Interaction Design",
129
+ "UI/UX",
130
+ "Web Design"
131
+ ],
132
+ "has_default_image": 0,
133
+ "website": "http://www.scottbelsky.com"
117
134
  },
118
- "fields": [
119
- "Entrepreneurship",
120
- "Furniture Design",
121
- "Writing"
122
- ]
135
+ "created_on": 1338983157
123
136
  },
124
- "comment": "Ha! Thanks Nicklaus...we were trying to use iconography because of the very international audience that was participating. Many of the events happened a few weeks ago, here's a collection of images from the events: http://pinterest.com/behance/behance-portfolio-reviews/",
125
- "created_on": "2012-06-06 11:45:57"
126
- }]
137
+ {
138
+ "id": 91,
139
+ "comment": "Ha. The context of the full page makes those buttons a bit smaller...but, ok, I get your point.",
140
+ "user": {
141
+ "id": 50004,
142
+ "first_name": "Scott",
143
+ "last_name": "Belsky",
144
+ "username": "sbelsky",
145
+ "city": "New York",
146
+ "state": "New York",
147
+ "country": "United States",
148
+ "location": "New York, NY, USA",
149
+ "company": "Adobe",
150
+ "occupation": "Head of Behance; Community",
151
+ "created_on": 1182480652,
152
+ "url": "https://www.behance.net/sbelsky",
153
+ "images": {
154
+ "50": "https://mir-s3-cdn-cf.behance.net/user/50/50004.53a9829c17328.jpg",
155
+ "115": "https://mir-s3-cdn-cf.behance.net/user/115/50004.53a9829c17328.jpg",
156
+ "138": "https://mir-s3-cdn-cf.behance.net/user/138/50004.53a9829c17328.jpg"
157
+ },
158
+ "display_name": "Scott Belsky",
159
+ "fields": [
160
+ "Interaction Design",
161
+ "UI/UX",
162
+ "Web Design"
163
+ ],
164
+ "has_default_image": 0,
165
+ "website": "http://www.scottbelsky.com"
166
+ },
167
+ "created_on": 1338931324
168
+ },
169
+ {
170
+ "id": 49,
171
+ "comment": "Can you make the buttons bigger? I can still see other parts of the screen...\n",
172
+ "user": {
173
+ "id": 70905,
174
+ "first_name": "Zach",
175
+ "last_name": "McCullough",
176
+ "username": "zachmccullough",
177
+ "city": "New York",
178
+ "state": "New York",
179
+ "country": "United States",
180
+ "location": "New York, NY, USA",
181
+ "company": "Behance",
182
+ "occupation": "Lead Designer",
183
+ "created_on": 1207321164,
184
+ "url": "https://www.behance.net/zachmccullough",
185
+ "images": {
186
+ "50": "https://mir-s3-cdn-cf.behance.net/user/50/70905.53ab0a31b9d18.jpg",
187
+ "115": "https://mir-s3-cdn-cf.behance.net/user/115/70905.53ab0a31b9d18.jpg",
188
+ "138": "https://mir-s3-cdn-cf.behance.net/user/138/70905.53ab0a31b9d18.jpg"
189
+ },
190
+ "display_name": "Zach McCullough",
191
+ "fields": [
192
+ "Web Design",
193
+ "Interaction Design",
194
+ "UI/UX"
195
+ ],
196
+ "has_default_image": 0,
197
+ "website": "zachwashere.com"
198
+ },
199
+ "created_on": 1338927640
200
+ }
201
+ ],
202
+ "http_code": 200
127
203
  }