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
data/spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful.yml
ADDED
@@ -0,0 +1,51 @@
|
|
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=0L%0C%9C%C4%89%1CL%AE%F3%E5l%1A%13%9A%EB%B2%AC%8E%1C%CCg'%2BF%8F%DB%FC%F8%CF%E9%9AJ%F8%A8%EB%1F%D9%D6J%09%02%9C%C9.%F9%81EX.L%15%95%BC%D15%E2%C3%A6%1A%F7%ED%F5%E0JNZ%10%B8%3BL%9F%C9T%81%97%A1%CD%E35%FF%40%DB!%FD%A0%02%3A%C2%AB%D0%0B%A2S%5C%F4i%8B%E4%AF%C5%3E%D9eS%9F%FA%5C%7C3C'%93%A9%EA%D7%BEp%EC%8A%5C%BCF%EB%CE%BFk%CF&start_date=&end_date=&min=&max=&points=1
|
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=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWFkM2Q3NmVkYjM2ZDFkYWNmNmYzNWFmZjgwNDZjYzEzBjsAVA%3D%3D--3bed14ca856eea29630a0d9bdb70087866edaf36;
|
37
|
+
path=/; HttpOnly
|
38
|
+
x-runtime:
|
39
|
+
- '0.007147'
|
40
|
+
date:
|
41
|
+
- Thu, 30 May 2013 16:27:19 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 16:27:19 GMT
|
51
|
+
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,51 @@
|
|
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=w%FE%DF%9E%B1%9A%17%C9%1Ff%D4%87%09u%F9H%E0%C3%20!T%8C4%BEz%0D%16%BA%87%BC)%E6%AARz%2B%E5e%E0%60%40E%04%A9s%3D%B4%20%AAT%9C%2C%E7%97%FF%87%8C%C4%8F%FD%D2%0C%C7%8E%1A%8D%D1%F3%5B%E6%04%89%8B%83%DF%DC%C84m.%F1%0A%89)gyb%13!%0D%D1%E1Y%C5%8B5%EB%DD%BE%A1%07GB%98B%8D%AE%A2%DA%CDn%96%A52H%8B%84j%CC%7D%0D%1F)%DE5%3D7%3C&start_date=2013-05-25&end_date=2013-05-30&min=&max=&points=1
|
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=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWFjNWRlMzVjYTFkZDJmNjMyMzNiMGNkMmFhODBhYzVjBjsAVA%3D%3D--3a05d3d3f92227a585ca1e2638b46aef9d6a7b52;
|
37
|
+
path=/; HttpOnly
|
38
|
+
x-runtime:
|
39
|
+
- '0.006738'
|
40
|
+
date:
|
41
|
+
- Thu, 30 May 2013 16:47:28 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 16:47:28 GMT
|
51
|
+
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,51 @@
|
|
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=L%F9j%D1%FA%5E%17%CA%A2%25%CC%FB%92%A01%7DV%EE%98x%18q%86%A5%ED%DE%EE%FB%8F%87%06%D7%2B%DE%CF%82%84%DB%D7%14%C1%9A%AA%BF%AD%3D%A8%FE%D2%F1%AA%E2Pg%CAN%BE%BD%CE%A9%FE%D6%B5%B9!%F2%ED%89%AD8p%A7%FF%13%BF%E7%5D%5D%16%7B%2C%DA%DE%1BG%A1%07E%D7%8B%A3%3B%FA%C2%19%85%3C%97%AFX%B8%83~%DBDJA%BB%04.%A54K%F9%C8G%95%CE%88%96M%DE%A5%EF%16s%CC0&start_date=&end_date=&min=&max=&points=1
|
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=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTgwOTcxNmQ4NzZlOWFhNzk4NDQxMDI3ZmZmYjNlYTQ2BjsAVA%3D%3D--3baa9fa38c98cb24a2dac1977768eb5733152f34;
|
37
|
+
path=/; HttpOnly
|
38
|
+
x-runtime:
|
39
|
+
- '0.006818'
|
40
|
+
date:
|
41
|
+
- Thu, 30 May 2013 16:47:27 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 16:47:27 GMT
|
51
|
+
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,51 @@
|
|
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=%05%0A%D8U%EA%11%CC%CF%F1%9B%9Cw%5D%93Un%ACEvy%F8%A1*%0A%CD%60Yk%B5b%96%D4p%12H%C7*%A1%3A%DC%7B%B6t%E1%F8R%DF%04%9B%EE%60%F0'%D4%81%10%91%F6%C2%1A%404%8C%CC%02%15%9C%0E%5B%5CM%E3%B5%8D%A5EKdb%99%AE%C3%DF%BC%16(K%B6%AF%7B%0F%01%17%C9%DA%80%B8%234%E2%E0%40%9D%A3*%B6%08%D2%ED%20%DF4%F3%CDV%F8%B0u%C5G%5E%80!%C4%F8_m%D1&start_date=&end_date=&min=&max=5&points=1
|
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=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWEzYjY4NDhmN2ZmYmY4ZTdjNDMxNDgwY2QwNjhlZDE2BjsAVA%3D%3D--5ca32e264d15cf1e66da93d4407c8a42ff3606a6;
|
37
|
+
path=/; HttpOnly
|
38
|
+
x-runtime:
|
39
|
+
- '0.006983'
|
40
|
+
date:
|
41
|
+
- Thu, 30 May 2013 16:47:29 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 16:47:29 GMT
|
51
|
+
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,51 @@
|
|
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=%0F%A7%FF%E8ky7Z%3DP-%BEe%86k%9C6%2B%3E%14%5B%8A%F9%9F%98%B5%E8%FA%ED%CA*%F8'%B92%E6%A5%FFMA%10%1FB%9D%AB%40%F8%3Bo%C7y5%88%F2L%1D%A7%19%83D5%FF%BB%FAw%2B%01%F3%A1d%0F%D8%C0s%8F%B4a%C0.%26%BE%7F8Z%89%CA%83C%F3%AAB~%C1%3A%E5Bc5%2F%F1!%E0%5Ca_%26O%7Bz%0CS%88D%B1d%B8%A7%02%C8%E1)%05%22k%CF%14U%93&start_date=&end_date=&min=0&max=5&points=1
|
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=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWEzNDliNThhZDdkZmMwMWVjZjIzZThlMDAyYThiMTljBjsAVA%3D%3D--df6bdaf8b2b0cf0f3688fd9b3c34ae0337f43845;
|
37
|
+
path=/; HttpOnly
|
38
|
+
x-runtime:
|
39
|
+
- '0.007004'
|
40
|
+
date:
|
41
|
+
- Thu, 30 May 2013 16:47:28 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 16:47:28 GMT
|
51
|
+
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,51 @@
|
|
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=%86%CC%D6%EB%E54%2C%80%CBks%16%12%F3%18%D6R%DB%DFDW%E7%40%D1%E4c%FC%B2%7Dd%E35%ED(%A2%9E%1F%DF%E32k%0CM%83L%D9%91%3C%9B%06%8E%C4%F81%FAb%14%98Ec%D2C%E9S%CA%99%7C%24R%82%CC%EE%E8%0E%F7B%A00%ED%AC~%DD%C7g%0E%BB%16%5D%E4%A5u%60%8B%F8r%B8%12%EDf7%2F%208%1B%05%D0%02%60%0BZ%06%2B%B27%17%ED%8E%DD%5E%FFux%BD%F3%FD%D7Wp&start_date=&end_date=&min=0&max=&points=1
|
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=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTAxMDEwYzk0ODhkYjg2NTliZTc0OWU3MDk2ZTJmNWVlBjsAVA%3D%3D--02ea48db2d1ff7175e95acf7f974c6401fc18de4;
|
37
|
+
path=/; HttpOnly
|
38
|
+
x-runtime:
|
39
|
+
- '0.011559'
|
40
|
+
date:
|
41
|
+
- Thu, 30 May 2013 16:47: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 16:47:30 GMT
|
51
|
+
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=%B7%9B%0C%AB%8Eo%C2%FA%89%9CPe%3D%0C!%D1wU%C8%A3I%F9%B9%C81%E6%80D%8B5%BD%A4%02%B5%1C%EC%F3%94%C4%2F%E7%FF%8A8%C9%7C%9B%A9%86%B7N%AE%06%A9%18%CA%40%7F%F2_9qN%7D%02%1B%20%C32%C3%D7%05%EC-%97%AC%BD%D0%7FT3U%C4%94SIO%B0U%A3g%D4%A6%A2%B5%8EV%16%B6x%C0Y%9C%12Rf%94%5C%8B%D1%1D%E0%A9%86%83%05%E3%5Cj%96%FC%C5t%B3r%14%25m&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=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWM0NTUxZmEyMmM0ZWI2ZTFlZTVkZTUwM2FjNmI0YTYyBjsAVA%3D%3D--578ae2f17d9e1c6e6e567e1a84ddcdd2d55075cb;
|
37
|
+
path=/; HttpOnly
|
38
|
+
x-runtime:
|
39
|
+
- '0.006599'
|
40
|
+
date:
|
41
|
+
- Thu, 30 May 2013 18:55: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:55: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=%9D_%CC%22i%08%053%A2%93%AA%D1%1Aa%C1%B7%AD%C47%98%E7j%96%FAH%0Aa%0D%8D%01a%BC%86(%02%23%F6%88%BB%E59z%07%CE%9F%1B%B2f%E6DhyA%F2%81%82da%F2%7B6%0F%60%9D%894%5B%2B9%B6%8E%FB%BC%E8%F4%96%B5%5B%F0%BBd%B2%8Ar%17%07%1C%F5M%C7v%D9*u%B3%C7%FA%DB)%5C%E3%BD%86%C4%02%3B%1E%A8%F4%D4vn%14g%08%9D%B8%E3B%91%5B%F4%1EO%D0%00%E0%25&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=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTI4NWYxNDA0OTUyYTU1NzM5MTU4MTFlNmM5OGVmMGQ3BjsAVA%3D%3D--585c98270c279915944420f3c33574dd5dd07fbd;
|
85
|
+
path=/; HttpOnly
|
86
|
+
x-runtime:
|
87
|
+
- '0.006578'
|
88
|
+
date:
|
89
|
+
- Thu, 30 May 2013 18:55: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:55: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=%0E%FB%E6j%09x%07%CB%A5%F8%92%3F%24h%BB%5E%0F%0D%D9%BB%B4%10%01%DCM%06%14%8A%C8%3DG~%9D%17%9FV%00%AD%A4%DD%0FdK*%1D%80%D2%23%23%F1%E6%9F%89R%0D%C6j%E3%5Ca%7D%CC%86%ED%DA%DC%8F%E1%24%FA%12W%B5%2F%20lH%D1g%0B%B0%88%B7%9Ek%3F0%97%01(%A3m%E0%0BY%C09%18L%EC%FC%9Fe%13w%A8%5E%A9%F7%D7%F05i%0Dy%D8%9C%E09i%8B%F6pW%F9%A3%7C%ED&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=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWI3YWViMDgwZjBhYzVjOWMyYWJkZTE3ZjgyZmVjYTAzBjsAVA%3D%3D--1edbc7d99584a3cfcceb3a6c45efb54153f75910;
|
133
|
+
path=/; HttpOnly
|
134
|
+
x-runtime:
|
135
|
+
- '0.006621'
|
136
|
+
date:
|
137
|
+
- Thu, 30 May 2013 18:55: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:55: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=zR%1BB%8E%DDF%FE%B3X%14%DB%A1%B7%0FT%8B%86%13%3F%FD%CDTi%8C5Mac0%E6%7Bw%DF%3D_%99%F8%92%96P%AA%2F%E8%A1htm%10%02%E38%3B%E3Xo*%C4%2C%24d%83%8A%DFs%0E%A5%D9%E8h%007%3D%F4%8A%E5%23%E6%9E%CFm%D7I(%C1%B0%A6t%94%1E%9F%8B%1B%14%8A%D0mQ%82%24%11%B1scb_%B82%FCUA1%11%91%3C%D3PS%EB%E2%EDEX%8F%E9%96%FC%AA&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=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWY2ZWYyMzc2M2NkOWMwMzA1Y2Q4MGZiY2VhMWJmN2FmBjsAVA%3D%3D--bb9c1035a6a30c16a9fd41b5d69cacd41653ad5f;
|
181
|
+
path=/; HttpOnly
|
182
|
+
x-runtime:
|
183
|
+
- '0.006582'
|
184
|
+
date:
|
185
|
+
- Thu, 30 May 2013 18:55:31 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: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=%04y%D1%2CY%0D%1B%1A3%E8%B6%05dF%B0p%AA%D7q%5E%EE%60%B9v%D9%CD%2B%16%A8%B42C%A67%F35%3B-p%E1g%DC%99%B9%1B%07%E4'%A8N(%3B%DAf%7D%F5(%9A%89%FC%04%C7%1B%ED%3FT%80%17)%89z%FF%E6d6I%A3%BAp%A4a%23%C3%1D%857%07%19%09%CA%9F%FD%E9%A7%15%00a%A7%26%F1%0D%0D%9AF%D0T%E5%25a%95DP%F1%91%00y1P%CF%19%DB%DDfU%DB%F4%82W&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=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTgyN2U0OTM1YTcxNTdiNTVmMTM0MGRkNmE0ODdhODBmBjsAVA%3D%3D--13cddf0b6412d0229241d8b55d168140e18e6841;
|
229
|
+
path=/; HttpOnly
|
230
|
+
x-runtime:
|
231
|
+
- '0.006662'
|
232
|
+
date:
|
233
|
+
- Thu, 30 May 2013 18:55: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:55: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=w%FB%F9%B2%AD%DE%AC%04%5Eu%DA%EE%8D%E0Y%A6%E4%14%97x%FD%06%1B%98.%B0%DA%1B%F7%A0m%BAebT)%B4%BDJ%88E%D3%D6%F9I(%09%E9%2B%B6%9C%D5%98%22%02%12%E7%A2U%18%8E%19%19%B0o%85%C5%EE%8C%C5%A7k%81x%A0%0F%04%CE%25%B8%D8%5E%DF%A3%DA%0F%CC%DF%40%1C%EE%8A%8F%845q%B4%02%9DA%CB%A3%FC4%83P%FD%8D%81%9EyA%8CR%7Dw%F05%AB%3B%07'%DFi%BBY%D6%A9&start_date=2013-05-24&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
|
+
- ! '"2ed0d34b783822bd299c2d30cca1a377"'
|
273
|
+
cache-control:
|
274
|
+
- max-age=0, private, must-revalidate
|
275
|
+
x-runtime:
|
276
|
+
- '0.004846'
|
277
|
+
date:
|
278
|
+
- Thu, 30 May 2013 18:55: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":[],"total_pages":0}}'
|
286
|
+
http_version: '1.1'
|
287
|
+
recorded_at: Thu, 30 May 2013 18:55:33 GMT
|
288
|
+
recorded_with: VCR 2.0.1
|