plataforma_social 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/.DS_Store +0 -0
- data/.rspec +1 -0
- data/CHANGELOG.rdoc +4 -0
- data/Gemfile +4 -1
- data/lib/plataforma_social.rb +5 -0
- data/lib/plataforma_social/badge.rb +61 -0
- data/lib/plataforma_social/domains.rb +1 -1
- data/lib/plataforma_social/helpers.rb +9 -5
- data/lib/plataforma_social/ranking.rb +91 -0
- data/lib/plataforma_social/ranking/custom.rb +28 -0
- data/lib/plataforma_social/ranking/general.rb +22 -0
- data/lib/plataforma_social/request.rb +4 -14
- data/lib/plataforma_social/support.rb +25 -0
- data/lib/plataforma_social/version.rb +1 -1
- data/plataforma_social.gemspec +6 -0
- data/spec/.DS_Store +0 -0
- data/spec/cassettes/PlataformaSocial_Badge/CREATE_a_new_badge/when_request_is_successful.yml +51 -0
- data/spec/cassettes/PlataformaSocial_Badge/GIVE_points_to_user/when_request_is_successful_and_badges_is_array.yml +99 -0
- data/spec/cassettes/PlataformaSocial_Badge/GIVE_points_to_user/when_request_is_successful_and_badges_is_hash.yml +101 -0
- data/spec/cassettes/PlataformaSocial_Badge/return_INDEX_to_user/when_request_is_successful_and_user_has_already_earned_some_badge.yml +204 -0
- data/spec/cassettes/PlataformaSocial_Badge/return_INDEX_to_user/when_request_is_successful_but_user_hasnt_earned_any_badge.yml +202 -0
- data/spec/cassettes/PlataformaSocial_Ranking/GET_friends/when_request_is_successful/with_limit_param.yml +48 -0
- data/spec/cassettes/PlataformaSocial_Ranking/GET_friends/when_request_is_successful/with_page_and_limit_param.yml +48 -0
- data/spec/cassettes/PlataformaSocial_Ranking/GET_friends/when_request_is_successful/with_page_param.yml +48 -0
- data/spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_date_params.yml +96 -0
- data/spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_down_param.yml +48 -0
- data/spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_friends_param.yml +192 -0
- data/spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_limit_param.yml +48 -0
- data/spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_up_and_down_param.yml +192 -0
- data/spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_up_param.yml +192 -0
- data/spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/without_up_and_down_param.yml +192 -0
- data/spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful.yml +51 -0
- data/spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/for_custom_date_ranking.yml +51 -0
- data/spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/for_general_ranking.yml +51 -0
- data/spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/using_max_param_ranking.yml +51 -0
- data/spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/using_min_and_max_params_ranking.yml +51 -0
- data/spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/using_min_param_ranking.yml +51 -0
- data/spec/cassettes/PlataformaSocial_Ranking_Custom/GET_custom_ranking/when_request_is_successful/using_another_dates.yml +288 -0
- data/spec/cassettes/PlataformaSocial_Ranking_Custom/GET_custom_ranking/when_request_is_successful/using_corrects_params.yml +288 -0
- data/spec/cassettes/PlataformaSocial_Ranking_Custom/GET_custom_ranking/when_request_is_successful/using_params_user_reference_and_friends.yml +288 -0
- data/spec/cassettes/PlataformaSocial_Ranking_General/GET_full_ranking/return_all_ranking.yml +48 -0
- data/spec/dummy/.DS_Store +0 -0
- data/spec/dummy/.gitignore +16 -0
- data/spec/dummy/Gemfile +45 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +16 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/{log/development.log → app/controllers/concerns/.keep} +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +14 -0
- data/spec/dummy/config/boot.rb +4 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +44 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +49 -0
- data/spec/dummy/db/seeds.rb +7 -0
- data/spec/dummy/keys/public.pem +5 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/lib/tasks/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/plataforma_social/keys/public.pem +5 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/robots.txt +5 -0
- data/spec/dummy/test/controllers/.keep +0 -0
- data/spec/dummy/test/fixtures/.keep +0 -0
- data/spec/dummy/test/helpers/.keep +0 -0
- data/spec/dummy/test/integration/.keep +0 -0
- data/spec/dummy/test/mailers/.keep +0 -0
- data/spec/dummy/test/models/.keep +0 -0
- data/spec/dummy/test/test_helper.rb +15 -0
- data/spec/dummy/vendor/assets/javascripts/.keep +0 -0
- data/spec/dummy/vendor/assets/stylesheets/.keep +0 -0
- data/spec/plataforma_social/.DS_Store +0 -0
- data/spec/plataforma_social/badge_spec.rb +83 -0
- data/spec/plataforma_social/ranking/custom_spec.rb +53 -0
- data/spec/plataforma_social/ranking/general_spec.rb +23 -0
- data/spec/plataforma_social/ranking_spec.rb +147 -0
- data/spec/spec_helper.rb +18 -0
- metadata +279 -6
@@ -0,0 +1,288 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://ranking.dev.plataformasocial.com.br/users/1/ranking
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=T%B7%AAF%98%B3%94%85%C1%1D%10%8A%BAbeb6%DA%D5v%97%0D%93%05S%1E%BB%AD%94%E7%A2%A9%88%E1%9D%B1%81v%89%FD%A3F2%B4_%B0MI%3Ew%8F%84%DFsD-%10%DE%CB%FA%8E9%8A%C3%969cD%FE%BF%5B%99%AD%D6u%E7%03%60%13%EA%AElZ%E7%7Ca%93%FE%C0pK.%03%26m%1A%B33%2C%E1%BCZ%A9%B4%CC%0C%859%90%0E%22%3F%F5Pr%A4%04%B1%CE%F97%1C%C1%82X%5B%25%A3&start_date=2013-05-25&end_date=2013-05-30&min=&max=&points=2
|
9
|
+
headers:
|
10
|
+
connection:
|
11
|
+
- close
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
content-type:
|
18
|
+
- application/json; charset=utf-8
|
19
|
+
transfer-encoding:
|
20
|
+
- chunked
|
21
|
+
connection:
|
22
|
+
- close
|
23
|
+
status:
|
24
|
+
- '200'
|
25
|
+
x-powered-by:
|
26
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
27
|
+
access-control-allow-origin:
|
28
|
+
- ! '*'
|
29
|
+
x-ua-compatible:
|
30
|
+
- IE=Edge,chrome=1
|
31
|
+
etag:
|
32
|
+
- ! '"0f26b21bed09b377813f6c111904aa42"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
set-cookie:
|
36
|
+
- _social_ranking_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTc2YTBhM2EyYmZhZjI3NjNhMzJiNTg4ZDJlNGZmMWI5BjsAVA%3D%3D--c7ca5766a66ce71c624c8add66e29305682468c6;
|
37
|
+
path=/; HttpOnly
|
38
|
+
x-runtime:
|
39
|
+
- '0.006637'
|
40
|
+
date:
|
41
|
+
- Thu, 30 May 2013 18:55:33 GMT
|
42
|
+
x-rack-cache:
|
43
|
+
- invalidate, pass
|
44
|
+
server:
|
45
|
+
- nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
46
|
+
body:
|
47
|
+
encoding: US-ASCII
|
48
|
+
string: ! '{"data":""}'
|
49
|
+
http_version: '1.1'
|
50
|
+
recorded_at: Thu, 30 May 2013 18:55:33 GMT
|
51
|
+
- request:
|
52
|
+
method: post
|
53
|
+
uri: http://ranking.dev.plataformasocial.com.br/users/2/ranking
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=o%5E%86%1E%1E%CF%F6%9Ajt%93%C6%C9%C6%82%8C%26%13*%04%0B%EDG%CCKb%07%FB%ECd%86%C3%E6%B5W%CF%0BN.%D8V%DB%A7%D0%FA%9B%F2%7Dh1Q3%2F%24%03%E3%AC%DDM%AC%AD%BA%5D%C1k%84%10c*%96n%B4v%01%0A%EB%EFA%25%E4K%E37%A2T%F9%1F%FA%D0%40%19%0E%8Bg%F4%91tIO%D0%87kl%9B%0E!%81%2C%7B%126k%D5%F0l%09%97%3EL%F1%D3%26%AA%15%20%113%00&start_date=2013-05-25&end_date=2013-05-30&min=&max=&points=2
|
57
|
+
headers:
|
58
|
+
connection:
|
59
|
+
- close
|
60
|
+
response:
|
61
|
+
status:
|
62
|
+
code: 200
|
63
|
+
message: OK
|
64
|
+
headers:
|
65
|
+
content-type:
|
66
|
+
- application/json; charset=utf-8
|
67
|
+
transfer-encoding:
|
68
|
+
- chunked
|
69
|
+
connection:
|
70
|
+
- close
|
71
|
+
status:
|
72
|
+
- '200'
|
73
|
+
x-powered-by:
|
74
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
75
|
+
access-control-allow-origin:
|
76
|
+
- ! '*'
|
77
|
+
x-ua-compatible:
|
78
|
+
- IE=Edge,chrome=1
|
79
|
+
etag:
|
80
|
+
- ! '"0f26b21bed09b377813f6c111904aa42"'
|
81
|
+
cache-control:
|
82
|
+
- max-age=0, private, must-revalidate
|
83
|
+
set-cookie:
|
84
|
+
- _social_ranking_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTBjYmJhMGRhNmJhMDBmYTlkNWE3NjhkZDcyODhkYjQzBjsAVA%3D%3D--fe47f3b41f00d5c10c433431c01ff84639077485;
|
85
|
+
path=/; HttpOnly
|
86
|
+
x-runtime:
|
87
|
+
- '0.008383'
|
88
|
+
date:
|
89
|
+
- Thu, 30 May 2013 18:55:34 GMT
|
90
|
+
x-rack-cache:
|
91
|
+
- invalidate, pass
|
92
|
+
server:
|
93
|
+
- nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ! '{"data":""}'
|
97
|
+
http_version: '1.1'
|
98
|
+
recorded_at: Thu, 30 May 2013 18:55:34 GMT
|
99
|
+
- request:
|
100
|
+
method: post
|
101
|
+
uri: http://ranking.dev.plataformasocial.com.br/users/3/ranking
|
102
|
+
body:
|
103
|
+
encoding: US-ASCII
|
104
|
+
string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=r%D3%D5%CD%DB%CA8%5D%CC%F7%12p%1EV%02%B5%3Bm%5Bi%18j%1F%06%D6%99%2F%AD~vD%07%B7%CE%94%10%BAf%A9%B5%C89%1D%8B%D3%1E%F5%DA%93%9C%8D%89%16x%3E%E7%F0%E6%FC%F0%EB%F1_%FB%A1%15%9B%98%D7%96%AC%D03%B3%C4z%F0XCER%E0%01%24%07%C0%0E%2F%26%F2(%C7%A2%FE%DAQ'%09%16%08%0BM%3E%10%8A%C3%C2%87%3D%3C%B3e%60o%8D9%5DoW%F8%20%5DL%0E%0B%AC%DE%D3&start_date=2013-05-25&end_date=2013-05-30&min=&max=&points=3
|
105
|
+
headers:
|
106
|
+
connection:
|
107
|
+
- close
|
108
|
+
response:
|
109
|
+
status:
|
110
|
+
code: 200
|
111
|
+
message: OK
|
112
|
+
headers:
|
113
|
+
content-type:
|
114
|
+
- application/json; charset=utf-8
|
115
|
+
transfer-encoding:
|
116
|
+
- chunked
|
117
|
+
connection:
|
118
|
+
- close
|
119
|
+
status:
|
120
|
+
- '200'
|
121
|
+
x-powered-by:
|
122
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
123
|
+
access-control-allow-origin:
|
124
|
+
- ! '*'
|
125
|
+
x-ua-compatible:
|
126
|
+
- IE=Edge,chrome=1
|
127
|
+
etag:
|
128
|
+
- ! '"0f26b21bed09b377813f6c111904aa42"'
|
129
|
+
cache-control:
|
130
|
+
- max-age=0, private, must-revalidate
|
131
|
+
set-cookie:
|
132
|
+
- _social_ranking_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTgzZDllNmVmYmM0ZWM2NjZiNjY5NThkZDc2Y2FkZmExBjsAVA%3D%3D--6847e7b39a016ed3dc20113f37942d5d6b6175b2;
|
133
|
+
path=/; HttpOnly
|
134
|
+
x-runtime:
|
135
|
+
- '0.006606'
|
136
|
+
date:
|
137
|
+
- Thu, 30 May 2013 18:55:35 GMT
|
138
|
+
x-rack-cache:
|
139
|
+
- invalidate, pass
|
140
|
+
server:
|
141
|
+
- nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
142
|
+
body:
|
143
|
+
encoding: US-ASCII
|
144
|
+
string: ! '{"data":""}'
|
145
|
+
http_version: '1.1'
|
146
|
+
recorded_at: Thu, 30 May 2013 18:55:35 GMT
|
147
|
+
- request:
|
148
|
+
method: post
|
149
|
+
uri: http://ranking.dev.plataformasocial.com.br/users/4/ranking
|
150
|
+
body:
|
151
|
+
encoding: US-ASCII
|
152
|
+
string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=V%F1%E3%12f%C0%08%D6%9D%7C%A4%C1%8C%C0Hw%0C%83%5DjZ%CF%F6%3Cb%D7hAl%87F%7B%B7%80)%AB%D8%D7y%F7%0E%2CmQ%B0%08'%FA%86%3D._%1A%9Ft%8D%24f%CE%DD%E4%16%BB%1Bsr%09%AA%EA%BF(%8A%AA%BF%25O%B7%60k%ABnw7b%AAz%9C!%5C%60%EA%E1m%95~%40g%BF%F7Y%DF%C6t%17Y%D6w%BF%A6%DAr%E3%8E%A4%A2IC%9E%C4%B8j%3F%E1~%CA%18%EC%AE&start_date=2013-05-25&end_date=2013-05-30&min=&max=&points=4
|
153
|
+
headers:
|
154
|
+
connection:
|
155
|
+
- close
|
156
|
+
response:
|
157
|
+
status:
|
158
|
+
code: 200
|
159
|
+
message: OK
|
160
|
+
headers:
|
161
|
+
content-type:
|
162
|
+
- application/json; charset=utf-8
|
163
|
+
transfer-encoding:
|
164
|
+
- chunked
|
165
|
+
connection:
|
166
|
+
- close
|
167
|
+
status:
|
168
|
+
- '200'
|
169
|
+
x-powered-by:
|
170
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
171
|
+
access-control-allow-origin:
|
172
|
+
- ! '*'
|
173
|
+
x-ua-compatible:
|
174
|
+
- IE=Edge,chrome=1
|
175
|
+
etag:
|
176
|
+
- ! '"0f26b21bed09b377813f6c111904aa42"'
|
177
|
+
cache-control:
|
178
|
+
- max-age=0, private, must-revalidate
|
179
|
+
set-cookie:
|
180
|
+
- _social_ranking_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTU4YzdiYTA3MzNiMTQ3ZWYwNmYzZDlkZDM3MmE2NjQ2BjsAVA%3D%3D--c6f85c15942e201313efe6b5a4668baab4706ec2;
|
181
|
+
path=/; HttpOnly
|
182
|
+
x-runtime:
|
183
|
+
- '0.006644'
|
184
|
+
date:
|
185
|
+
- Thu, 30 May 2013 18:55:35 GMT
|
186
|
+
x-rack-cache:
|
187
|
+
- invalidate, pass
|
188
|
+
server:
|
189
|
+
- nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
190
|
+
body:
|
191
|
+
encoding: US-ASCII
|
192
|
+
string: ! '{"data":""}'
|
193
|
+
http_version: '1.1'
|
194
|
+
recorded_at: Thu, 30 May 2013 18:55:35 GMT
|
195
|
+
- request:
|
196
|
+
method: post
|
197
|
+
uri: http://ranking.dev.plataformasocial.com.br/users/6/ranking
|
198
|
+
body:
|
199
|
+
encoding: US-ASCII
|
200
|
+
string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=PH%A4%8FF%DD%B2%CB%9C%0AO%2F%11%15%B8%03%EC%E7B%F6%1B%F4%2F%0C%BC%93t%A5%BDa6%EF%BD%DB4%F0%D3%C4%A03C%1EZF%ED%92%04B%CC-%F6%E0%FDw%96%01%60%3E7%1E2%CD%B2%F1v~%3E%5Cbyk%E1%CBU%CB%D7%CF%18%01%AE%C0%24d%84%40%9C%5CJ%AB%03o%1A%B7e%1D%BD%8F%40%17%00%D1%E7%B8%D59%F1%A9%B7S%D66!R%15%B7%C1%2Cx%02E%5E%AF%B6%810%24%92l&start_date=2013-05-25&end_date=2013-05-30&min=&max=&points=4
|
201
|
+
headers:
|
202
|
+
connection:
|
203
|
+
- close
|
204
|
+
response:
|
205
|
+
status:
|
206
|
+
code: 200
|
207
|
+
message: OK
|
208
|
+
headers:
|
209
|
+
content-type:
|
210
|
+
- application/json; charset=utf-8
|
211
|
+
transfer-encoding:
|
212
|
+
- chunked
|
213
|
+
connection:
|
214
|
+
- close
|
215
|
+
status:
|
216
|
+
- '200'
|
217
|
+
x-powered-by:
|
218
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
219
|
+
access-control-allow-origin:
|
220
|
+
- ! '*'
|
221
|
+
x-ua-compatible:
|
222
|
+
- IE=Edge,chrome=1
|
223
|
+
etag:
|
224
|
+
- ! '"0f26b21bed09b377813f6c111904aa42"'
|
225
|
+
cache-control:
|
226
|
+
- max-age=0, private, must-revalidate
|
227
|
+
set-cookie:
|
228
|
+
- _social_ranking_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTQ1MGI2MjA1MTZmMzQ3ZDJmM2Y1Mzc0YjM5YTNmMTA0BjsAVA%3D%3D--ebe963dbe05b3fecd9dd5f9cdcf9a49362c5eacc;
|
229
|
+
path=/; HttpOnly
|
230
|
+
x-runtime:
|
231
|
+
- '0.006590'
|
232
|
+
date:
|
233
|
+
- Thu, 30 May 2013 18:55:36 GMT
|
234
|
+
x-rack-cache:
|
235
|
+
- invalidate, pass
|
236
|
+
server:
|
237
|
+
- nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
238
|
+
body:
|
239
|
+
encoding: US-ASCII
|
240
|
+
string: ! '{"data":""}'
|
241
|
+
http_version: '1.1'
|
242
|
+
recorded_at: Thu, 30 May 2013 18:55:36 GMT
|
243
|
+
- request:
|
244
|
+
method: get
|
245
|
+
uri: http://ranking.dev.plataformasocial.com.br//users/ranking?network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%A0(%BC%18%12%C6R%02Jpc%16%0B%A4%99U%8E%88%E1%CB%8A%B4%C7'%F6H%B8%D6%F0%8B%E3%3D%E4%B6%88%B3%180%FF%EEU%20%92%00%BDm%1D%22.9s%C9%A7%EDA%A1%2F%D4%FB%05%D7%EFF%03%D4%A1%DC(%12%7C%9DX%B5%E6r%2C.%81Q%7D%B9%BCN!%AD%89%E4%02%23%84l%FC%B7%8Ae%3A%A1%B5Ci-%2B%C9%A9r%F8%B9%18g%9E%A0%8E%D3D%AE%3F%15%08T%C51*%A1n%87w%E3j&start_date=2013-05-25&end_date=2013-05-30&friends=&limit=&reference=&page=
|
246
|
+
body:
|
247
|
+
encoding: US-ASCII
|
248
|
+
string: ''
|
249
|
+
headers:
|
250
|
+
connection:
|
251
|
+
- close
|
252
|
+
response:
|
253
|
+
status:
|
254
|
+
code: 200
|
255
|
+
message: OK
|
256
|
+
headers:
|
257
|
+
content-type:
|
258
|
+
- application/json; charset=utf-8
|
259
|
+
transfer-encoding:
|
260
|
+
- chunked
|
261
|
+
connection:
|
262
|
+
- close
|
263
|
+
status:
|
264
|
+
- '200'
|
265
|
+
x-powered-by:
|
266
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
267
|
+
access-control-allow-origin:
|
268
|
+
- ! '*'
|
269
|
+
x-ua-compatible:
|
270
|
+
- IE=Edge,chrome=1
|
271
|
+
etag:
|
272
|
+
- ! '"3920b3442db956466e460d8ff4331462"'
|
273
|
+
cache-control:
|
274
|
+
- max-age=0, private, must-revalidate
|
275
|
+
x-runtime:
|
276
|
+
- '0.110133'
|
277
|
+
date:
|
278
|
+
- Thu, 30 May 2013 18:55:36 GMT
|
279
|
+
x-rack-cache:
|
280
|
+
- pass
|
281
|
+
server:
|
282
|
+
- nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
283
|
+
body:
|
284
|
+
encoding: US-ASCII
|
285
|
+
string: ! '{"data":{"users":[{"name":"","reference":"4","score":27.0,"link":"","position":1,"social_id":"4"},{"name":"","reference":"6","score":24.0,"link":"","position":2,"social_id":null},{"name":"","reference":"3","score":18.0,"link":"","position":3,"social_id":"3"},{"name":"","reference":"2","score":12.0,"link":"","position":4,"social_id":"2"},{"name":"","reference":"1","score":7.0,"link":"","position":5,"social_id":"1"}],"total_pages":0}}'
|
286
|
+
http_version: '1.1'
|
287
|
+
recorded_at: Thu, 30 May 2013 18:55:36 GMT
|
288
|
+
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,288 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://ranking.dev.plataformasocial.com.br/users/1/ranking
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%8A%E2%CB%C6%AEbQ3%96%40%E593%DD%9EN%87e%8F%A9%FFq%05(T%C2%A5%8A%A7%FD%EB%D6%06%0C%A7%C4%AAEVtS%C5'%40%0E%A5%BF%D6%C7%97%F8%7C%A4%26z%3Ct%D7%DBe%8DC%E2%C3gBi%D9%C8Rz%DF%AC4%E3mO%8C%16u%20%3D%40~%A6%94%A6*x%DE%93%C1z%5E%F5%E1%A4%85%88%CC%26%8AH%E8)%E4%C4H%1F%83%0C1%C9%96iN%EC%7B%C1V%DA%1Dj%CB%92%A1%C7%06&start_date=2013-05-25&end_date=2013-05-30&min=&max=&points=2
|
9
|
+
headers:
|
10
|
+
connection:
|
11
|
+
- close
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
content-type:
|
18
|
+
- application/json; charset=utf-8
|
19
|
+
transfer-encoding:
|
20
|
+
- chunked
|
21
|
+
connection:
|
22
|
+
- close
|
23
|
+
status:
|
24
|
+
- '200'
|
25
|
+
x-powered-by:
|
26
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
27
|
+
access-control-allow-origin:
|
28
|
+
- ! '*'
|
29
|
+
x-ua-compatible:
|
30
|
+
- IE=Edge,chrome=1
|
31
|
+
etag:
|
32
|
+
- ! '"0f26b21bed09b377813f6c111904aa42"'
|
33
|
+
cache-control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
set-cookie:
|
36
|
+
- _social_ranking_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWJhNmE2NTljZDZhNTA5NjQyYjQ0Y2QxMTBhNmVlODdkBjsAVA%3D%3D--fcefa153b845b0ad78866138c254419b1ed4d399;
|
37
|
+
path=/; HttpOnly
|
38
|
+
x-runtime:
|
39
|
+
- '0.006590'
|
40
|
+
date:
|
41
|
+
- Thu, 30 May 2013 18:57:30 GMT
|
42
|
+
x-rack-cache:
|
43
|
+
- invalidate, pass
|
44
|
+
server:
|
45
|
+
- nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
46
|
+
body:
|
47
|
+
encoding: US-ASCII
|
48
|
+
string: ! '{"data":""}'
|
49
|
+
http_version: '1.1'
|
50
|
+
recorded_at: Thu, 30 May 2013 18:57:30 GMT
|
51
|
+
- request:
|
52
|
+
method: post
|
53
|
+
uri: http://ranking.dev.plataformasocial.com.br/users/2/ranking
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%87%C9%DA%EF%8E0s%1E%C7%BD%BC%0Cp%B0%D9%E11%CE%A5%E5%88%E9'%14o%80%88T%1CJ%25_%20%12%FFC97%B2%E6D%CD~%C1Z%DE%9E%17%24%40q%D2%3B%A3)P%DB%BE%0F%03%B1)ZS%86%D5%F26%C9%1F%B7%DE%A2B%05%9F%05%F2%7D%04%25%F3%3B%8B%F3%2C%BB.CUS')%5EN%8C%FE%3A%FF0I%BF%5B%DE%F6%84%3C2%C5%E0q%19%FCQ%A5%08%E6%1D%CF%B7%B0iE%3Dm%88!%B8&start_date=2013-05-25&end_date=2013-05-30&min=&max=&points=2
|
57
|
+
headers:
|
58
|
+
connection:
|
59
|
+
- close
|
60
|
+
response:
|
61
|
+
status:
|
62
|
+
code: 200
|
63
|
+
message: OK
|
64
|
+
headers:
|
65
|
+
content-type:
|
66
|
+
- application/json; charset=utf-8
|
67
|
+
transfer-encoding:
|
68
|
+
- chunked
|
69
|
+
connection:
|
70
|
+
- close
|
71
|
+
status:
|
72
|
+
- '200'
|
73
|
+
x-powered-by:
|
74
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
75
|
+
access-control-allow-origin:
|
76
|
+
- ! '*'
|
77
|
+
x-ua-compatible:
|
78
|
+
- IE=Edge,chrome=1
|
79
|
+
etag:
|
80
|
+
- ! '"0f26b21bed09b377813f6c111904aa42"'
|
81
|
+
cache-control:
|
82
|
+
- max-age=0, private, must-revalidate
|
83
|
+
set-cookie:
|
84
|
+
- _social_ranking_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTg0ODU1MTJjNzA1Mzc3OTRkNjgzYjdkYjFkZjMyZDY3BjsAVA%3D%3D--05b10fc5f5da5b147670f7a7556946d243064636;
|
85
|
+
path=/; HttpOnly
|
86
|
+
x-runtime:
|
87
|
+
- '0.006642'
|
88
|
+
date:
|
89
|
+
- Thu, 30 May 2013 18:57:30 GMT
|
90
|
+
x-rack-cache:
|
91
|
+
- invalidate, pass
|
92
|
+
server:
|
93
|
+
- nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ! '{"data":""}'
|
97
|
+
http_version: '1.1'
|
98
|
+
recorded_at: Thu, 30 May 2013 18:57:30 GMT
|
99
|
+
- request:
|
100
|
+
method: post
|
101
|
+
uri: http://ranking.dev.plataformasocial.com.br/users/3/ranking
|
102
|
+
body:
|
103
|
+
encoding: US-ASCII
|
104
|
+
string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%88W%7F%99%FD%3BA%3F%02s%9F%AA%B0%3EZ%B8%A8%5C%CE2%A0%87%7F%9B%5E%1AP%E4_%B7%91%D6%24%A0%96%F9%E7%BB%2F%17%0F5%BA%B9%CBpB%B7%C4%AE%5E%ED%E0%ECOc%DC%DC%E5%8C%20%20%00F%0C%D8%F9%E9p%BB3'%CF%E7aVW%3C%06S%B2%D0%C3%FA%2F%B8%89%93%98%3E%CB%19%DA%B1%A7%7Ch%ECZ%11M%DC%D7%C5%19%BF%EEp%A1r%A4%F0%AF%F2c%A8%BFW(4%90%AB%90P%ADe%87%D6&start_date=2013-05-25&end_date=2013-05-30&min=&max=&points=3
|
105
|
+
headers:
|
106
|
+
connection:
|
107
|
+
- close
|
108
|
+
response:
|
109
|
+
status:
|
110
|
+
code: 200
|
111
|
+
message: OK
|
112
|
+
headers:
|
113
|
+
content-type:
|
114
|
+
- application/json; charset=utf-8
|
115
|
+
transfer-encoding:
|
116
|
+
- chunked
|
117
|
+
connection:
|
118
|
+
- close
|
119
|
+
status:
|
120
|
+
- '200'
|
121
|
+
x-powered-by:
|
122
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
123
|
+
access-control-allow-origin:
|
124
|
+
- ! '*'
|
125
|
+
x-ua-compatible:
|
126
|
+
- IE=Edge,chrome=1
|
127
|
+
etag:
|
128
|
+
- ! '"0f26b21bed09b377813f6c111904aa42"'
|
129
|
+
cache-control:
|
130
|
+
- max-age=0, private, must-revalidate
|
131
|
+
set-cookie:
|
132
|
+
- _social_ranking_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTAxNjdiNTJiNDUzNmNmOTk2OTZkOTNlNmQ3NThhZTJjBjsAVA%3D%3D--3fd56b2cefce043d36b0f7f1e3518591c736dca3;
|
133
|
+
path=/; HttpOnly
|
134
|
+
x-runtime:
|
135
|
+
- '0.006611'
|
136
|
+
date:
|
137
|
+
- Thu, 30 May 2013 18:57:31 GMT
|
138
|
+
x-rack-cache:
|
139
|
+
- invalidate, pass
|
140
|
+
server:
|
141
|
+
- nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
142
|
+
body:
|
143
|
+
encoding: US-ASCII
|
144
|
+
string: ! '{"data":""}'
|
145
|
+
http_version: '1.1'
|
146
|
+
recorded_at: Thu, 30 May 2013 18:57:31 GMT
|
147
|
+
- request:
|
148
|
+
method: post
|
149
|
+
uri: http://ranking.dev.plataformasocial.com.br/users/4/ranking
|
150
|
+
body:
|
151
|
+
encoding: US-ASCII
|
152
|
+
string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%A1%89s%5C%CC-_z%C0l%0B%D0%FDw%7C1%80O%C4%7C%8A%26b%FF%BF%DF%D8%C8r%9CJ%19%B3%18%EB%25%60%16x%CE%B5%E9%16%13%9E%AAw%0B%8FI%FF%3EVW%B2%8B%14%5E%E1A%EE%96Bq%1DM%C8%06%01%B3%88z%F2%D3%A1E%10%F9*W%DDdAA%7C%3E%FE%B9%EC%EA%804%DC%B9%A2F%18%2B%91%FF%DB%BFr%E2%3E%3D%E5%0D%DFa%94%ED!%F0%7D%C0%9B%03%8A%C8%1FDd%1AVn%AE%D0&start_date=2013-05-25&end_date=2013-05-30&min=&max=&points=4
|
153
|
+
headers:
|
154
|
+
connection:
|
155
|
+
- close
|
156
|
+
response:
|
157
|
+
status:
|
158
|
+
code: 200
|
159
|
+
message: OK
|
160
|
+
headers:
|
161
|
+
content-type:
|
162
|
+
- application/json; charset=utf-8
|
163
|
+
transfer-encoding:
|
164
|
+
- chunked
|
165
|
+
connection:
|
166
|
+
- close
|
167
|
+
status:
|
168
|
+
- '200'
|
169
|
+
x-powered-by:
|
170
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
171
|
+
access-control-allow-origin:
|
172
|
+
- ! '*'
|
173
|
+
x-ua-compatible:
|
174
|
+
- IE=Edge,chrome=1
|
175
|
+
etag:
|
176
|
+
- ! '"0f26b21bed09b377813f6c111904aa42"'
|
177
|
+
cache-control:
|
178
|
+
- max-age=0, private, must-revalidate
|
179
|
+
set-cookie:
|
180
|
+
- _social_ranking_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTc2ZDVlNWQ1MjVlOWQ4NGU5MDgyN2ExOTYzYTEyZDc4BjsAVA%3D%3D--be87970dbd4f8c57c19a1715d9c12e8913ed2b3b;
|
181
|
+
path=/; HttpOnly
|
182
|
+
x-runtime:
|
183
|
+
- '0.006634'
|
184
|
+
date:
|
185
|
+
- Thu, 30 May 2013 18:57:32 GMT
|
186
|
+
x-rack-cache:
|
187
|
+
- invalidate, pass
|
188
|
+
server:
|
189
|
+
- nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
190
|
+
body:
|
191
|
+
encoding: US-ASCII
|
192
|
+
string: ! '{"data":""}'
|
193
|
+
http_version: '1.1'
|
194
|
+
recorded_at: Thu, 30 May 2013 18:57:32 GMT
|
195
|
+
- request:
|
196
|
+
method: post
|
197
|
+
uri: http://ranking.dev.plataformasocial.com.br/users/6/ranking
|
198
|
+
body:
|
199
|
+
encoding: US-ASCII
|
200
|
+
string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%5BJ%C7I%D8d%D6%FA%FFD%0D%7Ds%B7%03%8E%7C%5C%B7C%7BN%C7m%DAs%9E%C9%DC_%AE%401%A2%B3%8F%C8v%3B%FBbO%DF%9F%26%DC%13%3CL%20%A4%00%8B%F6%7C.%8A6%AD%E7i8%22%CB%CC%84%7F%B2i2%01%F0%96D%BF%A5%B4%BF%92'%FE~%A5%96t%20%E5H%EFg%95%7B'H%5CSf%BA%0F%C3%8F%D9%DA%C5%E8%CD%9D%05%3Cz%BA%D0%D3%DC%97%E61%81%7D%D8.F%15%7D%0E%3C%0B%E2&start_date=2013-05-25&end_date=2013-05-30&min=&max=&points=4
|
201
|
+
headers:
|
202
|
+
connection:
|
203
|
+
- close
|
204
|
+
response:
|
205
|
+
status:
|
206
|
+
code: 200
|
207
|
+
message: OK
|
208
|
+
headers:
|
209
|
+
content-type:
|
210
|
+
- application/json; charset=utf-8
|
211
|
+
transfer-encoding:
|
212
|
+
- chunked
|
213
|
+
connection:
|
214
|
+
- close
|
215
|
+
status:
|
216
|
+
- '200'
|
217
|
+
x-powered-by:
|
218
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
219
|
+
access-control-allow-origin:
|
220
|
+
- ! '*'
|
221
|
+
x-ua-compatible:
|
222
|
+
- IE=Edge,chrome=1
|
223
|
+
etag:
|
224
|
+
- ! '"0f26b21bed09b377813f6c111904aa42"'
|
225
|
+
cache-control:
|
226
|
+
- max-age=0, private, must-revalidate
|
227
|
+
set-cookie:
|
228
|
+
- _social_ranking_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWJhNzUxZWU0ZjZiYzhjMjM3OTJmYzk2YTgxZDIyNjU5BjsAVA%3D%3D--daf7d573735dae0d5b35654b98705204b337c346;
|
229
|
+
path=/; HttpOnly
|
230
|
+
x-runtime:
|
231
|
+
- '0.006609'
|
232
|
+
date:
|
233
|
+
- Thu, 30 May 2013 18:57:32 GMT
|
234
|
+
x-rack-cache:
|
235
|
+
- invalidate, pass
|
236
|
+
server:
|
237
|
+
- nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
238
|
+
body:
|
239
|
+
encoding: US-ASCII
|
240
|
+
string: ! '{"data":""}'
|
241
|
+
http_version: '1.1'
|
242
|
+
recorded_at: Thu, 30 May 2013 18:57:32 GMT
|
243
|
+
- request:
|
244
|
+
method: get
|
245
|
+
uri: http://ranking.dev.plataformasocial.com.br//users/ranking?network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%AA0o%D9%25T%9F%CB%84K8%FA%5Ey%A2.%FF%95%5C-%3BT%8F%22%07%F2%3At%B4%9F%A3%F0%E4%93%08%01U%E7%07%3B%AA%8F%F5*%02g%B1f%B1I%07%40%8D%A0%85%5C%8C%BC%B3%A4%19%1B%B7%1Ct%05%CB%BE%AC%09%F8Z%D4I%A8%A7%A1%FC%EAQ%E2%FCSA%BEqC%A7%C1%A9%D2%0C%E6%ED%CA%26%AFw%E0%F2%D1%88%1B%18npZ%8F%05r%05%E4%C8%BD%F0T%FDm%10%E9%1D%AE%0DB%D3%3C%40%09&start_date=2013-05-25&end_date=2013-05-30&friends=true&limit=&reference=3&page=
|
246
|
+
body:
|
247
|
+
encoding: US-ASCII
|
248
|
+
string: ''
|
249
|
+
headers:
|
250
|
+
connection:
|
251
|
+
- close
|
252
|
+
response:
|
253
|
+
status:
|
254
|
+
code: 200
|
255
|
+
message: OK
|
256
|
+
headers:
|
257
|
+
content-type:
|
258
|
+
- application/json; charset=utf-8
|
259
|
+
transfer-encoding:
|
260
|
+
- chunked
|
261
|
+
connection:
|
262
|
+
- close
|
263
|
+
status:
|
264
|
+
- '200'
|
265
|
+
x-powered-by:
|
266
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
267
|
+
access-control-allow-origin:
|
268
|
+
- ! '*'
|
269
|
+
x-ua-compatible:
|
270
|
+
- IE=Edge,chrome=1
|
271
|
+
etag:
|
272
|
+
- ! '"fe968bf5d56a1ab966c0ca54736ed586"'
|
273
|
+
cache-control:
|
274
|
+
- max-age=0, private, must-revalidate
|
275
|
+
x-runtime:
|
276
|
+
- '0.010409'
|
277
|
+
date:
|
278
|
+
- Thu, 30 May 2013 18:57:33 GMT
|
279
|
+
x-rack-cache:
|
280
|
+
- pass
|
281
|
+
server:
|
282
|
+
- nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
283
|
+
body:
|
284
|
+
encoding: US-ASCII
|
285
|
+
string: ! '{"data":{"users":[{"name":"","reference":"3","score":48.0,"link":"","position":1,"social_id":"3"},{"name":"","reference":"4","score":35.0,"link":"","position":2,"social_id":"4"},{"name":"","reference":"2","score":16.0,"link":"","position":3,"social_id":"2"},{"name":"","reference":"1","score":11.0,"link":"","position":4,"social_id":"1"}],"total_pages":0}}'
|
286
|
+
http_version: '1.1'
|
287
|
+
recorded_at: Thu, 30 May 2013 18:57:33 GMT
|
288
|
+
recorded_with: VCR 2.0.1
|