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.
Files changed (102) hide show
  1. data/.DS_Store +0 -0
  2. data/.rspec +1 -0
  3. data/CHANGELOG.rdoc +4 -0
  4. data/Gemfile +4 -1
  5. data/lib/plataforma_social.rb +5 -0
  6. data/lib/plataforma_social/badge.rb +61 -0
  7. data/lib/plataforma_social/domains.rb +1 -1
  8. data/lib/plataforma_social/helpers.rb +9 -5
  9. data/lib/plataforma_social/ranking.rb +91 -0
  10. data/lib/plataforma_social/ranking/custom.rb +28 -0
  11. data/lib/plataforma_social/ranking/general.rb +22 -0
  12. data/lib/plataforma_social/request.rb +4 -14
  13. data/lib/plataforma_social/support.rb +25 -0
  14. data/lib/plataforma_social/version.rb +1 -1
  15. data/plataforma_social.gemspec +6 -0
  16. data/spec/.DS_Store +0 -0
  17. data/spec/cassettes/PlataformaSocial_Badge/CREATE_a_new_badge/when_request_is_successful.yml +51 -0
  18. data/spec/cassettes/PlataformaSocial_Badge/GIVE_points_to_user/when_request_is_successful_and_badges_is_array.yml +99 -0
  19. data/spec/cassettes/PlataformaSocial_Badge/GIVE_points_to_user/when_request_is_successful_and_badges_is_hash.yml +101 -0
  20. data/spec/cassettes/PlataformaSocial_Badge/return_INDEX_to_user/when_request_is_successful_and_user_has_already_earned_some_badge.yml +204 -0
  21. data/spec/cassettes/PlataformaSocial_Badge/return_INDEX_to_user/when_request_is_successful_but_user_hasnt_earned_any_badge.yml +202 -0
  22. data/spec/cassettes/PlataformaSocial_Ranking/GET_friends/when_request_is_successful/with_limit_param.yml +48 -0
  23. data/spec/cassettes/PlataformaSocial_Ranking/GET_friends/when_request_is_successful/with_page_and_limit_param.yml +48 -0
  24. data/spec/cassettes/PlataformaSocial_Ranking/GET_friends/when_request_is_successful/with_page_param.yml +48 -0
  25. data/spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_date_params.yml +96 -0
  26. data/spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_down_param.yml +48 -0
  27. data/spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_friends_param.yml +192 -0
  28. data/spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_limit_param.yml +48 -0
  29. data/spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_up_and_down_param.yml +192 -0
  30. data/spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_up_param.yml +192 -0
  31. data/spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/without_up_and_down_param.yml +192 -0
  32. data/spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful.yml +51 -0
  33. data/spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/for_custom_date_ranking.yml +51 -0
  34. data/spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/for_general_ranking.yml +51 -0
  35. data/spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/using_max_param_ranking.yml +51 -0
  36. data/spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/using_min_and_max_params_ranking.yml +51 -0
  37. data/spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/using_min_param_ranking.yml +51 -0
  38. data/spec/cassettes/PlataformaSocial_Ranking_Custom/GET_custom_ranking/when_request_is_successful/using_another_dates.yml +288 -0
  39. data/spec/cassettes/PlataformaSocial_Ranking_Custom/GET_custom_ranking/when_request_is_successful/using_corrects_params.yml +288 -0
  40. data/spec/cassettes/PlataformaSocial_Ranking_Custom/GET_custom_ranking/when_request_is_successful/using_params_user_reference_and_friends.yml +288 -0
  41. data/spec/cassettes/PlataformaSocial_Ranking_General/GET_full_ranking/return_all_ranking.yml +48 -0
  42. data/spec/dummy/.DS_Store +0 -0
  43. data/spec/dummy/.gitignore +16 -0
  44. data/spec/dummy/Gemfile +45 -0
  45. data/spec/dummy/README.rdoc +28 -0
  46. data/spec/dummy/Rakefile +6 -0
  47. data/spec/dummy/app/assets/javascripts/application.js +16 -0
  48. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  49. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  50. data/spec/dummy/{log/development.log → app/controllers/concerns/.keep} +0 -0
  51. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  52. data/spec/dummy/app/mailers/.keep +0 -0
  53. data/spec/dummy/app/models/.keep +0 -0
  54. data/spec/dummy/app/models/concerns/.keep +0 -0
  55. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  56. data/spec/dummy/bin/bundle +3 -0
  57. data/spec/dummy/bin/rails +4 -0
  58. data/spec/dummy/bin/rake +4 -0
  59. data/spec/dummy/config.ru +4 -0
  60. data/spec/dummy/config/application.rb +14 -0
  61. data/spec/dummy/config/boot.rb +4 -0
  62. data/spec/dummy/config/database.yml +25 -0
  63. data/spec/dummy/config/environment.rb +5 -0
  64. data/spec/dummy/config/environments/development.rb +37 -0
  65. data/spec/dummy/config/environments/production.rb +80 -0
  66. data/spec/dummy/config/environments/test.rb +44 -0
  67. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  68. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  69. data/spec/dummy/config/initializers/inflections.rb +16 -0
  70. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  71. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  72. data/spec/dummy/config/initializers/session_store.rb +3 -0
  73. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  74. data/spec/dummy/config/locales/en.yml +23 -0
  75. data/spec/dummy/config/routes.rb +49 -0
  76. data/spec/dummy/db/seeds.rb +7 -0
  77. data/spec/dummy/keys/public.pem +5 -0
  78. data/spec/dummy/lib/assets/.keep +0 -0
  79. data/spec/dummy/lib/tasks/.keep +0 -0
  80. data/spec/dummy/log/.keep +0 -0
  81. data/spec/dummy/plataforma_social/keys/public.pem +5 -0
  82. data/spec/dummy/public/404.html +58 -0
  83. data/spec/dummy/public/422.html +58 -0
  84. data/spec/dummy/public/500.html +57 -0
  85. data/spec/dummy/public/favicon.ico +0 -0
  86. data/spec/dummy/public/robots.txt +5 -0
  87. data/spec/dummy/test/controllers/.keep +0 -0
  88. data/spec/dummy/test/fixtures/.keep +0 -0
  89. data/spec/dummy/test/helpers/.keep +0 -0
  90. data/spec/dummy/test/integration/.keep +0 -0
  91. data/spec/dummy/test/mailers/.keep +0 -0
  92. data/spec/dummy/test/models/.keep +0 -0
  93. data/spec/dummy/test/test_helper.rb +15 -0
  94. data/spec/dummy/vendor/assets/javascripts/.keep +0 -0
  95. data/spec/dummy/vendor/assets/stylesheets/.keep +0 -0
  96. data/spec/plataforma_social/.DS_Store +0 -0
  97. data/spec/plataforma_social/badge_spec.rb +83 -0
  98. data/spec/plataforma_social/ranking/custom_spec.rb +53 -0
  99. data/spec/plataforma_social/ranking/general_spec.rb +23 -0
  100. data/spec/plataforma_social/ranking_spec.rb +147 -0
  101. data/spec/spec_helper.rb +18 -0
  102. metadata +279 -6
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://ranking.dev.plataformasocial.com.br/users/ranking?network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=b%D4%05%9A%C4M%3F%82%00%7B%A4q%96%CF%2C%94h%E2%7C%0E%09D%E4%3A%22%9E%5E%B2x%7C%95%9A%B6dE%3C%40Kq%09%94%D8%C0%0C%1D%E0%D0%E3Y%E4%16%E0%2BN2%23F%88'%E1%7D%1D3%FD%A2%F1f%C9%DCSf%1D%0F%22%D3%AE%09%02%92%08%19%A0%2C%99N%B1C%B4%FA%23T%A0%02%01t%1C%A7S%FA%F8%DF%11%C8'%88%D5%18x%1E%07t%000%FC%93%83%B8%D6%19%04%60%07%EF%87%B9%9C%AF%82&friends=true&reference=3&limit=2&page=
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
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
+ - ! '"64d86700a31dc89095112f69722ce022"'
33
+ cache-control:
34
+ - max-age=0, private, must-revalidate
35
+ x-runtime:
36
+ - '0.010338'
37
+ date:
38
+ - Thu, 30 May 2013 18:16:36 GMT
39
+ x-rack-cache:
40
+ - pass
41
+ server:
42
+ - nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ! '{"data":{"users":[{"name":"","reference":"4","score":23.0,"link":"","position":1,"social_id":"4"},{"name":"","reference":"3","score":20.0,"link":"","position":2,"social_id":"3"}],"total_pages":2}}'
46
+ http_version: '1.1'
47
+ recorded_at: Thu, 30 May 2013 18:16:36 GMT
48
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://ranking.dev.plataformasocial.com.br/users/ranking?network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%0A%D9%7C%066%D5%DD%C4%D3%A9x%90-%1F%3D%99q%A0%C3(%C3%22%9F5%A8%8C%DFM%87%18%C9t%EC%A7r%B8%AB%80%DC%1E%B5%BC0s%86%3A%D4%98%FE6%93%F1r%09U%91r%80r.Z%A9%CF%87F8x%5E%823O%BE0%B9%0A%98%15%80%A2%22%C18%D5o%96%BB%F5_V%B23%17%ED%83%91%23%25%93F%E7YE%0D70%FF%84%9A6%40%AD6%A3%3A%A5o%A2z%B4%85S%B0%11%E0Z%26%A5%DB&friends=true&reference=3&limit=1&page=1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
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
+ - ! '"32fb4e7676a4e59de96fd0a671c3385d"'
33
+ cache-control:
34
+ - max-age=0, private, must-revalidate
35
+ x-runtime:
36
+ - '0.346757'
37
+ date:
38
+ - Thu, 30 May 2013 18:15:57 GMT
39
+ x-rack-cache:
40
+ - pass
41
+ server:
42
+ - nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ! '{"data":{"users":[{"name":"","reference":"4","score":23.0,"link":"","position":1,"social_id":"4"}],"total_pages":4}}'
46
+ http_version: '1.1'
47
+ recorded_at: Thu, 30 May 2013 18:16:20 GMT
48
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://ranking.dev.plataformasocial.com.br/users/ranking?network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%90i%DC%AD%15%C2%3E%C4%AA1%85%AB%8A3%1E%12%87bz%E3%D4%92%F92%5C%AFr%93%0A%F7%C5%3BE%80y%E0%12%24%F1%91%19%82%16%BB2%E1%EF%BC8%E5%18%B3Xf3%A0%40%B6%7D%8C%13%A9%A4o%60%5C%07%BA%F7aa%0F%60%82%13%81.%26%D9P%C3l%89Q%DD%BA%CCR%D9%1Ew%8C%5E%A3JS%8CI%83%0DE%C3%EA%81%BC%A1%EE%EDB%D3c%80%A6%84%81%05%85%E2%A6%8AI%E4H%D9%E46b%5B&friends=true&reference=3&limit=5&page=2
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
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
+ - ! '"cbe9adff3c4fef6819915987aba9905a"'
33
+ cache-control:
34
+ - max-age=0, private, must-revalidate
35
+ x-runtime:
36
+ - '0.007771'
37
+ date:
38
+ - Thu, 30 May 2013 18:07:01 GMT
39
+ x-rack-cache:
40
+ - pass
41
+ server:
42
+ - nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ! '{"data":{"users":[],"total_pages":1}}'
46
+ http_version: '1.1'
47
+ recorded_at: Thu, 30 May 2013 18:07:01 GMT
48
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,96 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://ranking.dev.plataformasocial.com.br/users/4/ranking
6
+ body:
7
+ encoding: US-ASCII
8
+ string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=M%90%E5%94%81%06%D4%11%B9%9AQ%93%CC%E6%9FJ%207%BD%EA%0B%5D%20%CAl%C6%08%ADd%9B%97%25%7F%F3%A9%02eYT-%18%05%DE%8E.L%EA%0E%1A%ACo%92b%EC%F7%B2%5Bc%9CW%EB%DE%1E%14%AC%CCT%A4%CC%3ET%F1n%02%931%07%5B%E8%17o~a%A7s(%1C%00%10%8C%10%E5%A9%BAG%60'%DB7%A2%82%09%16%A6%0B%C4%3C9%C1j%CD%96%A2%8E%99j%E0%18%99K%0B%C8%8C6%CF%81%87J&start_date=2013-05-25&end_date=2013-05-30&min=&max=&points=3
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=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTgzN2E3NWY0ODRhMTY2ZTZiZGI3MWQ5NWNiOWVjYzgxBjsAVA%3D%3D--503c596394065941a80d18449b052b80efded42d;
37
+ path=/; HttpOnly
38
+ x-runtime:
39
+ - '0.006443'
40
+ date:
41
+ - Thu, 30 May 2013 17:25:38 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 17:25:39 GMT
51
+ - request:
52
+ method: get
53
+ uri: http://ranking.dev.plataformasocial.com.br/users/ranking/0/0/window?network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=_I%80%7F%FB%13G%19%E0%A2%3FN%C4%0Cz%F7%88%D3%BA9%0A%F9%20%3C%FE%85%8EJ%C7%AD%E6%8B%B9o%2Cp%AA%E3n%FA%E5%02%AA%EE%DE%3B!%C0VK%95%7D%E2nc%06gm%C3%A6%F0%19%F6%E6%DE%20v%C3%9A%10%11%0A%B1%C3%0D%BB%2Bgg%1A%93%C9%A6%C3%80O%DA5%92%82%D1%ED%C1%3A%A7i%E5%B1%B7%F4%D4%12%1D%7D%B5%FD%04%B5%D3%AA%C9%E0%CD%7F%0D%F0X%CE%FC%E1%3C%88%CA%E4%F1%A8%84%ED&start_date=2013-05-25&end_date=2013-05-30&friends=&limit=&reference=4
54
+ body:
55
+ encoding: US-ASCII
56
+ string: ''
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
+ - ! '"43605c9df7c2336308e18fc81f4e241d"'
81
+ cache-control:
82
+ - max-age=0, private, must-revalidate
83
+ x-runtime:
84
+ - '0.005834'
85
+ date:
86
+ - Thu, 30 May 2013 17:25:39 GMT
87
+ x-rack-cache:
88
+ - pass
89
+ server:
90
+ - nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
91
+ body:
92
+ encoding: US-ASCII
93
+ string: ! '{"data":{"users":[{"name":"","reference":"4","score":3.0,"link":"","position":1,"social_id":null}],"total_pages":0}}'
94
+ http_version: '1.1'
95
+ recorded_at: Thu, 30 May 2013 17:25:39 GMT
96
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://ranking.dev.plataformasocial.com.br/users/ranking/0/2/window?network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%02%F8%5E%9C0%95%A2%3E%D9W%AE%CF%8Bk%FD%95%B6J%7B%A7%E1%E4%D4%C2%8DH%87%FA%2B%87l%C85%D2x%1D%D3%E7%3C%97K%87%C6%0BP%5B%F4%C2J%CB%BD%B3%2B%C1H%DB%1C%B9%8E%00%A9%8077%90*%CC8a%E2%8B.%11%B2)Wc%E9%1A%AA%5D%E8%A8%5E%1D%99iQ%FB%88%142%84%9F%B0%0Fq%A2%5D%87A%B5%A0%D5%9D%DFd%965%A1%F4%F2%90%E7%2F%F3q%8A%B5%B0m%FDv%EC%5BM%B9%BD&start_date=&end_date=&friends=&limit=&reference=4
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
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
+ - ! '"2723e3d5d8b12105cfbc335ee924bfa9"'
33
+ cache-control:
34
+ - max-age=0, private, must-revalidate
35
+ x-runtime:
36
+ - '0.007736'
37
+ date:
38
+ - Thu, 30 May 2013 17:17:05 GMT
39
+ x-rack-cache:
40
+ - pass
41
+ server:
42
+ - nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ! '{"data":{"users":[{"name":"","reference":"4","score":20.0,"link":"","position":1,"social_id":null},{"name":"","reference":"2","score":15.0,"link":"","position":2,"social_id":null},{"name":"","reference":"3","score":10.0,"link":"","position":3,"social_id":null}],"total_pages":0}}'
46
+ http_version: '1.1'
47
+ recorded_at: Thu, 30 May 2013 17:17:05 GMT
48
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,192 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://ranking.dev.plataformasocial.com.br/users/2/ranking
6
+ body:
7
+ encoding: US-ASCII
8
+ string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%3D%04WV%83%E9tF%EAe%E6%902J%B0%1C%E54%7D%3B%131%BC%EF%E8!.%90%96%B8%2B%F8.%0F%F5%08%F3%CA%FC%09%01%06%7C%DA%7B%A8S%5C%87Zo%07%C3%C0%F2%BCJ%7Bt%C4%13)%03%A0%18%CA%EB%CF%E2KP%92%5DZ%B6%D5%C2%24%89B%E6%C6J0%5E%5C%7D%A9c%944%60%B1%3BQ%F2o%60%9FU%93%DD%3C%DD*o%11%D1%FC%5D%B3%D6%25%81%FFo%A2%BF%F6%96s%06B%3DU)%5E%98&start_date=&end_date=&min=&max=&points=3
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=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWM5YWYyM2I5NjlmNmE0NjE5YjlhNjA1YTc1OWZmMmY3BjsAVA%3D%3D--80974f8c833c6d5c61001aa6b68f35d0b43303ef;
37
+ path=/; HttpOnly
38
+ x-runtime:
39
+ - '0.005948'
40
+ date:
41
+ - Thu, 30 May 2013 17:14:40 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 17:14:41 GMT
51
+ - request:
52
+ method: post
53
+ uri: http://ranking.dev.plataformasocial.com.br/users/3/ranking
54
+ body:
55
+ encoding: US-ASCII
56
+ string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%5D%8C%A2bc%81%0D%D5m%3EH%5Cb%F2%40%84%BA%A8%04%1D%EE%FD%BF_%D4%FA%AD%3C%18%9D%E1%B2%C6%17%0B%F4%13Iy%92%05%F0%E6%ECqd%07%2F%E7%9E%DC7%D5%BB%E3%81%DD%06%A0%B1%82%10%02%5D%60%97%09L%F8Ezg%CA%9B%87F%22%FD%D4%09Tq%D5%FF%1D%FC%CA%5C%FF%5E%25%7C%3A%16%D1q%3E%A0%E2%BD%16%C4K%C7%0B%60%D6%0B_%0F%AC%9E%99%F2w%02%D9F%91%E5%EF%1C%18%EE%C7%FA%3E%91&start_date=&end_date=&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=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWFlZWRiYTBiYzAyOGZjNWU5MDk0ODU1ODM4YWUwNGQ4BjsAVA%3D%3D--7f11cb4740799d40315df5483729f16c447f80c0;
85
+ path=/; HttpOnly
86
+ x-runtime:
87
+ - '0.103270'
88
+ date:
89
+ - Thu, 30 May 2013 17:14:41 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 17:14:41 GMT
99
+ - request:
100
+ method: post
101
+ uri: http://ranking.dev.plataformasocial.com.br/users/4/ranking
102
+ body:
103
+ encoding: US-ASCII
104
+ string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%1A%9A%E6%DD%98%DA%D4%C2Z%91%17%F4.%00A%1C%E3%01%5E(%00%15%17d%9B6%3D%AE%A0%FC%01%CB%85%26%85%F9%C5%A8%C9KB%8A%BF%10%EF%E4%91%C97%04H%82%A5%BA%25%88nlj%84%D6%EE%EA%9EhR%D0%7Bzc%2B4%81%F9%B3%401I%C4%A5%BBY%D7%F0%BB%2C%D55%89%DA%94%A6%9DLD%F2%B2%8E%8B%FF%0C%DC%C4%1C'%06HN%04!%F7%BA%07%9D%E2P%03C%E9%865%E6%9B%15%D7j%3B%08&start_date=&end_date=&min=&max=&points=4
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=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWJiYzE3MmQyNTc4MjU3ZTM2NDAxYmQ4YzkzNTFiMmNmBjsAVA%3D%3D--da77cfb25d42a81fa14bd2d3e01b1e4db955a034;
133
+ path=/; HttpOnly
134
+ x-runtime:
135
+ - '0.006065'
136
+ date:
137
+ - Thu, 30 May 2013 17:14:42 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 17:14:42 GMT
147
+ - request:
148
+ method: get
149
+ uri: http://ranking.dev.plataformasocial.com.br/users/ranking/0/0/window?network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%3D2%FA%25%B9%EA%C2%CCP%C8T!%FA%06%CA%3B%3C%13H%AB%1C%99F%9A%EC%8Dp0~V%CF%DC%16M%B9d%0A.%E0%16%12%B04%FD%1B%9Dg%3F%05%C1%23%5D%CD%F2%99h%B6%B8%E8%24MZ%DD%3B%951'%9CI%06%DF%AE%1A%9B%E4Vz%14%09%E1%BE%0E%B7W8%14F%17%ED%01%92%7C%CBdh%AF%8E%5D%D3%B9%C0yw%08xm~%DA%12%97%AC%0E%04%CC%3D%D6%F3%DB%C3p%07%A3%22%DF%18.%AB%11&start_date=&end_date=&friends=true&limit=&reference=2
150
+ body:
151
+ encoding: US-ASCII
152
+ string: ''
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
+ - ! '"f522a91f63d06f6bda186406d6cd5709"'
177
+ cache-control:
178
+ - max-age=0, private, must-revalidate
179
+ x-runtime:
180
+ - '0.006315'
181
+ date:
182
+ - Thu, 30 May 2013 17:14:42 GMT
183
+ x-rack-cache:
184
+ - pass
185
+ server:
186
+ - nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
187
+ body:
188
+ encoding: US-ASCII
189
+ string: ! '{"data":{"users":[{"name":"","reference":"2","score":15.0,"link":"","position":1,"social_id":null}],"total_pages":0}}'
190
+ http_version: '1.1'
191
+ recorded_at: Thu, 30 May 2013 17:14:42 GMT
192
+ recorded_with: VCR 2.0.1