behance 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,55 @@
1
+ {
2
+
3
+ "wips": [
4
+ {
5
+ "id": 73,
6
+ "title": "Idea execution Poster for the 99% Conference",
7
+ "revision_count": 4,
8
+ "latest_rev_id": 281,
9
+ "latest_rev_tags": [
10
+ "poster",
11
+ "typography",
12
+ "infographics",
13
+ "conference",
14
+ "red",
15
+ "grey",
16
+ "white",
17
+ "behance",
18
+ "illustrator",
19
+ "vectors",
20
+ "printed"
21
+ ],
22
+ "latest_rev_image": "http://behance.vo.llnwd.net/profiles/50001/wips/73/disp_fef7c7756464fa218c64f7b6a83f1c8d.jpg",
23
+ "latest_rev_thumb": "http://behance.vo.llnwd.net/profiles/50001/wips/73/thumb_fef7c7756464fa218c64f7b6a83f1c8d.jpg",
24
+ "url": "http://www.behance.net/wip/73",
25
+ "created_on": 1338927695,
26
+ "stats": {
27
+ "views": 3305,
28
+ "comments": 28
29
+ }
30
+ },
31
+ {
32
+ "id": 77,
33
+ "title": "The Alva Award design",
34
+ "revision_count": 7,
35
+ "latest_rev_id": 177,
36
+ "latest_rev_tags": [
37
+ "award",
38
+ "3D",
39
+ "Black",
40
+ "typography",
41
+ "cardboard",
42
+ "model"
43
+ ],
44
+ "latest_rev_image": "http://behance.vo.llnwd.net/profiles/50001/wips/77/disp_7f4f5437af607075af9af6a2a61d9a4b.jpg",
45
+ "latest_rev_thumb": "http://behance.vo.llnwd.net/profiles/50001/wips/77/thumb_7f4f5437af607075af9af6a2a61d9a4b.jpg",
46
+ "url": "http://www.behance.net/wip/77",
47
+ "created_on": 1338929566,
48
+ "stats": {
49
+ "views": 3929,
50
+ "comments": 35
51
+ }
52
+ }
53
+ ]
54
+
55
+ }
@@ -0,0 +1,112 @@
1
+ {
2
+
3
+ "users": [
4
+ {
5
+ "id": 193936,
6
+ "first_name": "Matias",
7
+ "last_name": "Chilo",
8
+ "username": "vanth",
9
+ "city": "Buenos Aires",
10
+ "state": "",
11
+ "country": "Argentina",
12
+ "company": "",
13
+ "occupation": "",
14
+ "created_on": 1279082706,
15
+ "url": "http://www.behance.net/vanth",
16
+ "display_name": "Matias Chilo",
17
+ "images": {
18
+ "32": "http://behance.vo.llnwd.net/profiles4/193936/32x4463cd4adf137aa218b15657eaa568b1.jpg",
19
+ "50": "http://behance.vo.llnwd.net/profiles4/193936/50x4463cd4adf137aa218b15657eaa568b1.jpg",
20
+ "78": "http://behance.vo.llnwd.net/profiles4/193936/78x4463cd4adf137aa218b15657eaa568b1.jpg",
21
+ "115": "http://behance.vo.llnwd.net/profiles4/193936/115x4463cd4adf137aa218b15657eaa568b1.jpg",
22
+ "129": "http://behance.vo.llnwd.net/profiles4/193936/129x4463cd4adf137aa218b15657eaa568b1.jpg",
23
+ "138": "http://behance.vo.llnwd.net/profiles4/193936/4463cd4adf137aa218b15657eaa568b1.jpg"
24
+ },
25
+ "fields": [
26
+ "Design",
27
+ "Editorial Design",
28
+ "Graphic Design"
29
+ ]
30
+ },
31
+ {
32
+ "id": 50001,
33
+ "first_name": "Matias",
34
+ "last_name": "Corea",
35
+ "username": "MatiasCorea",
36
+ "city": "Brooklyn",
37
+ "state": "New York",
38
+ "country": "United States",
39
+ "company": "Behance",
40
+ "occupation": "Chief Designer & Co-Founder",
41
+ "created_on": 1182475806,
42
+ "url": "http://www.behance.net/MatiasCorea",
43
+ "display_name": "Matias Corea",
44
+ "images": {
45
+ "32": "http://behance.vo.llnwd.net/profiles/50001/32xac8d5163265f6898d0b970dbfcdf4868.png",
46
+ "50": "http://behance.vo.llnwd.net/profiles/50001/50xac8d5163265f6898d0b970dbfcdf4868.png",
47
+ "78": "http://behance.vo.llnwd.net/profiles/50001/78xac8d5163265f6898d0b970dbfcdf4868.png",
48
+ "115": "http://behance.vo.llnwd.net/profiles/50001/115xac8d5163265f6898d0b970dbfcdf4868.png",
49
+ "129": "http://behance.vo.llnwd.net/profiles/50001/129xac8d5163265f6898d0b970dbfcdf4868.png",
50
+ "138": "http://behance.vo.llnwd.net/profiles/50001/ac8d5163265f6898d0b970dbfcdf4868.png"
51
+ },
52
+ "fields": [
53
+ "Web Design",
54
+ "Typography",
55
+ "Interaction Design"
56
+ ]
57
+ },
58
+ {
59
+ "id": 963453,
60
+ "first_name": "Matias",
61
+ "last_name": "Furno",
62
+ "username": "matiasfurno",
63
+ "city": "Buenos Aires",
64
+ "state": "",
65
+ "country": "Argentina",
66
+ "company": "",
67
+ "occupation": "Motion Designer",
68
+ "created_on": 1330232439,
69
+ "url": "http://www.behance.net/matiasfurno",
70
+ "display_name": "Matias Furno",
71
+ "images": {
72
+ "32": "http://behance.vo.llnwd.net/profiles17/963453/32xdd99b78e4a524e3dc7f1acd5a319cd0e.png",
73
+ "50": "http://behance.vo.llnwd.net/profiles17/963453/50xdd99b78e4a524e3dc7f1acd5a319cd0e.png",
74
+ "78": "http://behance.vo.llnwd.net/profiles17/963453/78xdd99b78e4a524e3dc7f1acd5a319cd0e.png",
75
+ "115": "http://behance.vo.llnwd.net/profiles17/963453/115xdd99b78e4a524e3dc7f1acd5a319cd0e.png",
76
+ "129": "http://behance.vo.llnwd.net/profiles17/963453/129xdd99b78e4a524e3dc7f1acd5a319cd0e.png",
77
+ "138": "http://behance.vo.llnwd.net/profiles17/963453/dd99b78e4a524e3dc7f1acd5a319cd0e.png"
78
+ },
79
+ "fields": [
80
+ "Animation",
81
+ "Digital Art",
82
+ "Graphic Design"
83
+ ]
84
+ },
85
+ {
86
+ "id": 119502,
87
+ "first_name": "Matias",
88
+ "last_name": "Klingsholm",
89
+ "username": "klingsholm",
90
+ "city": "Shanghai",
91
+ "state": "",
92
+ "country": "China",
93
+ "company": "Student",
94
+ "occupation": "Graphic designer",
95
+ "created_on": 1250532885,
96
+ "url": "http://www.behance.net/klingsholm",
97
+ "display_name": "Matias Klingsholm",
98
+ "images": {
99
+ "32": "http://behance.vo.llnwd.net/profiles4/119502/32x766fe4bd281e02b9be0ce33e0713bd26.jpg",
100
+ "50": "http://behance.vo.llnwd.net/profiles4/119502/50x766fe4bd281e02b9be0ce33e0713bd26.jpg",
101
+ "78": "http://behance.vo.llnwd.net/profiles4/119502/78x766fe4bd281e02b9be0ce33e0713bd26.jpg",
102
+ "115": "http://behance.vo.llnwd.net/profiles4/119502/115x766fe4bd281e02b9be0ce33e0713bd26.jpg",
103
+ "129": "http://behance.vo.llnwd.net/profiles4/119502/129x766fe4bd281e02b9be0ce33e0713bd26.jpg",
104
+ "138": "http://behance.vo.llnwd.net/profiles4/119502/766fe4bd281e02b9be0ce33e0713bd26.jpg"
105
+ },
106
+ "fields": [
107
+ "Branding",
108
+ "Illustration",
109
+ "Graphic Design"
110
+ ]
111
+ }]
112
+ }
@@ -0,0 +1,23 @@
1
+ require File.expand_path('../../lib/behance', __FILE__)
2
+ require 'rspec'
3
+ require 'webmock/rspec'
4
+
5
+ RSpec.configure do |config|
6
+ config.include WebMock::API
7
+ end
8
+
9
+ def fixture_path
10
+ File.expand_path("../fixtures", __FILE__)
11
+ end
12
+
13
+ def fixture(file)
14
+ File.new(fixture_path + '/' + file)
15
+ end
16
+
17
+ def stub_get(path)
18
+ stub_request(:get, Behance::Client::API_URL + path)
19
+ end
20
+
21
+ def a_get(path)
22
+ a_request(:get, Behance::Client::API_URL + path)
23
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: behance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-17 00:00:00.000000000 Z
12
+ date: 2012-09-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -27,6 +27,54 @@ dependencies:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: 0.8.4
30
+ - !ruby/object:Gem::Dependency
31
+ name: faraday_middleware
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '0.8'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '0.8'
46
+ - !ruby/object:Gem::Dependency
47
+ name: json
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - '='
52
+ - !ruby/object:Gem::Version
53
+ version: 1.7.5
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 1.7.5
62
+ - !ruby/object:Gem::Dependency
63
+ name: webmock
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 1.8.10
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 1.8.10
30
78
  - !ruby/object:Gem::Dependency
31
79
  name: rspec
32
80
  requirement: !ruby/object:Gem::Requirement
@@ -57,7 +105,22 @@ files:
57
105
  - Rakefile
58
106
  - behance.gemspec
59
107
  - lib/behance.rb
108
+ - lib/behance/client.rb
109
+ - lib/behance/project.rb
110
+ - lib/behance/user.rb
60
111
  - lib/behance/version.rb
112
+ - spec/behance/client_spec.rb
113
+ - spec/behance/project_spec.rb
114
+ - spec/behance/user_spec.rb
115
+ - spec/fixtures/project.json
116
+ - spec/fixtures/project_comments.json
117
+ - spec/fixtures/projects.json
118
+ - spec/fixtures/user.json
119
+ - spec/fixtures/user_appreciations.json
120
+ - spec/fixtures/user_projects.json
121
+ - spec/fixtures/user_wips.json
122
+ - spec/fixtures/users.json
123
+ - spec/spec_helper.rb
61
124
  homepage: ''
62
125
  licenses: []
63
126
  post_install_message:
@@ -82,4 +145,16 @@ rubygems_version: 1.8.23
82
145
  signing_key:
83
146
  specification_version: 3
84
147
  summary: A Ruby wrapper for the Behance API
85
- test_files: []
148
+ test_files:
149
+ - spec/behance/client_spec.rb
150
+ - spec/behance/project_spec.rb
151
+ - spec/behance/user_spec.rb
152
+ - spec/fixtures/project.json
153
+ - spec/fixtures/project_comments.json
154
+ - spec/fixtures/projects.json
155
+ - spec/fixtures/user.json
156
+ - spec/fixtures/user_appreciations.json
157
+ - spec/fixtures/user_projects.json
158
+ - spec/fixtures/user_wips.json
159
+ - spec/fixtures/users.json
160
+ - spec/spec_helper.rb