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,101 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://badge.dev.plataformasocial.com.br/users/badge/1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%877%ECM%12.%AD%5D%1FJ%92%60%FA%ABxs%7F%FD%0B%E1%C7%99%A6%DAu%90%3C%601S%F9%80%CBB%F7%0B%7F%8D%DE%05F%D7%91%FB%B9%A7M%D9%DC%CF%B3%1F%0C%DBU%F3%04'-%8E%1Es%EE%AC%0Ee%B5%D0%FA%DD%F5%A8Y%8D5%AEm%0DvD%0A%5C%06%40%EE%A0%AF%A7%40m%12i%EF%1A%DC%9A%8C%FA%BCg%25%84%CD*%FC%FEy%05%B5%8C%2F%8E%C3Jp%10%B2J~%A6%3C%AF%1AP%95%99%04y&badge=%7B%22reference%22%3A%221%22%2C%22updated_at%22%3A%222012-07-13T19%3A53%3A20Z%22%2C%22id%22%3A1%2C%22share_text%22%3A%22Parab%5Cu00e9ns%2C%20voc%5Cu00ea%20ganhou%20a%20Badge%20de%20Coloridos%20da%20Dito.%22%2C%22events_count%22%3A10%2C%22picture_url%22%3A%22http%3A%2F%2Fwww.jorge.com.br%2Fsergio%22%2C%22description%22%3A%22Essa%20badge%20%5Cu00e9%20dada%20para%20todos%20os%20Coloridos%20da%20Dito.%22%2C%22name%22%3A%22Dito%20Colorida%22%2C%22created_at%22%3A%222012-07-13T19%3A53%3A20Z%22%2C%22app_id%22%3A23%7D
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
+ - ! '"a9f1136aafcb7e3f978ab689bf079317"'
33
+ cache-control:
34
+ - max-age=0, private, must-revalidate
35
+ set-cookie:
36
+ - _social_badge_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWZmZDJkNTRlOTJjMTQ2MTRmNTUxNGFmNTEzNzU2ZmE1BjsAVA%3D%3D--0cd383bad09755ddf1718a2d22860c8ff2bb9a94;
37
+ path=/; HttpOnly
38
+ x-runtime:
39
+ - '0.095546'
40
+ date:
41
+ - Thu, 30 May 2013 19:19:22 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":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=1&app_id=23"}'
49
+ http_version: '1.1'
50
+ recorded_at: Thu, 30 May 2013 19:19:22 GMT
51
+ - request:
52
+ method: post
53
+ uri: http://badge.dev.plataformasocial.com.br/users/1/badges
54
+ body:
55
+ encoding: US-ASCII
56
+ string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=J%20!%8C%B8%00%EA%FA%E1E%D4%83%8F%07f%D9%99%D7%10%AC%89%06%E5p%89x%A3%07%F4%F7%87%95Q!c%17%F4%17%2F%0A*d%1B%3A%FA%14M%5E%12b%DE%D75%A1(%94%1AB%C5.%BF%93m*%04%DC%8E%94%9A%C0%ACU%88%86y%17%07%F2%2Ck%E3%0C%FF%A9%AB%3D%F2%8DB~%AD%FE%E1%DE8%BE%06XC%9C%C1%8B%06%97%B4O%F8_D%E9%B5%B0%F1%17%B8%D6%80%136%3BX%FA9y%B4%1C5%1D&badges[][1]=12
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
+ - ! '"8f3d39946201d5a17c44a5b396f7d04e"'
81
+ cache-control:
82
+ - max-age=0, private, must-revalidate
83
+ set-cookie:
84
+ - _social_badge_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWY0ZDc0NjFmMjFkYjc4YmQyZGZlZTc1YmM4OThkOWFkBjsAVA%3D%3D--15eb586c47447f3c23d3f54a67111ca41acc48cc;
85
+ path=/; HttpOnly
86
+ x-runtime:
87
+ - '0.007579'
88
+ date:
89
+ - Thu, 30 May 2013 19:19:23 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":[{"reference":"1","updated_at":"2012-07-13T19:53:20Z","id":1,"share_text":"Parab\u00e9ns,
97
+ voc\u00ea ganhou a Badge de Coloridos da Dito.","events_count":10,"picture_url":"http://www.jorge.com.br/sergio","description":"Essa
98
+ badge \u00e9 dada para todos os Coloridos da Dito.","name":"Dito Colorida","created_at":"2012-07-13T19:53:20Z","app_id":23,"url":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=1&app_id=23"}]}'
99
+ http_version: '1.1'
100
+ recorded_at: Thu, 30 May 2013 19:19:23 GMT
101
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,204 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://badge.dev.plataformasocial.com.br/users/badge/5
6
+ body:
7
+ encoding: US-ASCII
8
+ string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%07%0E%BA-%B3%85%8B%3ABH%AC%11%AF%86%DF%AB%C0y%5CbY%DA%00%FE%8D%07%11%82%04%EF%3B%5D%FF%B2%A6%E6%8B%0B%C5%8E%C3%EC7%E82A%01%04%03%DDS%9E%93mQ%A2%BF%8B3%C4%AB%15%24p%B4r%BA%DD%10%C9%AD%FE%FC%93%01%8Ap%F3%F22%BB%C0%C87%1F%15%DB%08%F5*%8DP_%3Ea%CFq9%5D%B03%E7%B1m%F0%C0j6%2B%EC%99%BBjO%24%5B%E1%3E%80%A70%D5%C3mA%DE%A7%D7&badge=%7B%22reference%22%3A%225%22%2C%22updated_at%22%3A%222012-07-13T19%3A53%3A20Z%22%2C%22id%22%3A1%2C%22share_text%22%3A%22Parab%5Cu00e9ns%2C%20voc%5Cu00ea%20ganhou%20a%20Badge%20de%20Coloridos%20da%20Dito.%22%2C%22events_count%22%3A10%2C%22picture_url%22%3A%22http%3A%2F%2Fwww.jorge.com.br%2Fsergio%22%2C%22description%22%3A%22Essa%20badge%20%5Cu00e9%20dada%20para%20todos%20os%20Coloridos%20da%20Dito.%22%2C%22name%22%3A%22Dito%20Colorida%22%2C%22created_at%22%3A%222012-07-13T19%3A53%3A20Z%22%2C%22app_id%22%3A23%7D
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
+ - ! '"e21130944a95d0d07044553aab203e7a"'
33
+ cache-control:
34
+ - max-age=0, private, must-revalidate
35
+ set-cookie:
36
+ - _social_badge_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTU4ZjA1MWM5OGU5Y2YxYWI0ODIyYWU1ZDZlOWQ5Njg0BjsAVA%3D%3D--f7215d7db058717bfb629a2235afc5261b960205;
37
+ path=/; HttpOnly
38
+ x-runtime:
39
+ - '0.094243'
40
+ date:
41
+ - Thu, 30 May 2013 19:30:11 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":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=5&app_id=23"}'
49
+ http_version: '1.1'
50
+ recorded_at: Thu, 30 May 2013 19:30:11 GMT
51
+ - request:
52
+ method: post
53
+ uri: http://badge.dev.plataformasocial.com.br/users/badge/6
54
+ body:
55
+ encoding: US-ASCII
56
+ string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%80%C2%16v%85X%FB0F%3D%04j%2C%C9%85%FFZ2%94M%09%A0Pb%8C%5E%03%5DYy%B9%B2%FF%92%BDr%2B%88%EA%AE%2F%06%E2%8D0%D0%8E%92%C4%5CV%B9%DE%2Bb%98%85%22%7C%B4%A7%A6%D8%80F%09%9F%CB%99%CC%B5%AA%87r%E5%5D%0B%DF%05%FF%15%D1%07%90o%87%0D%A5%DCl%F8%A0%8E%15%1B%26%F9J%06%5D%E9J%E5%E52u0zL%0Ej%A3Q%AD%1A%EB%97%97%7F%EF%DD%E6W%A3%D5%ED%90%87&badge=%7B%22reference%22%3A%226%22%2C%22updated_at%22%3A%222012-07-13T19%3A53%3A20Z%22%2C%22id%22%3A1%2C%22share_text%22%3A%22Parab%5Cu00e9ns%2C%20voc%5Cu00ea%20ganhou%20a%20Badge%20de%20Coloridos%20da%20Dito.%22%2C%22events_count%22%3A10%2C%22picture_url%22%3A%22http%3A%2F%2Fwww.jorge.com.br%2Fsergio%22%2C%22description%22%3A%22Essa%20badge%20%5Cu00e9%20dada%20para%20todos%20os%20Coloridos%20da%20Dito.%22%2C%22name%22%3A%22Dito%20Colorida%22%2C%22created_at%22%3A%222012-07-13T19%3A53%3A20Z%22%2C%22app_id%22%3A23%7D
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
+ - ! '"6e0a7ce0984d3d169c64ff6ef05dc584"'
81
+ cache-control:
82
+ - max-age=0, private, must-revalidate
83
+ set-cookie:
84
+ - _social_badge_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWE5MzI2NTFlZDMyZDhkYzU3NDVkMjBjM2FmOGEwMjUyBjsAVA%3D%3D--60a426b0829eaf730d581235389ffcaa0a910a0b;
85
+ path=/; HttpOnly
86
+ x-runtime:
87
+ - '0.094694'
88
+ date:
89
+ - Thu, 30 May 2013 19:30:11 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":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=6&app_id=23"}'
97
+ http_version: '1.1'
98
+ recorded_at: Thu, 30 May 2013 19:30:12 GMT
99
+ - request:
100
+ method: post
101
+ uri: http://badge.dev.plataformasocial.com.br/users/5/badges
102
+ body:
103
+ encoding: US-ASCII
104
+ string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%05%96XlC%E5%EA%A9%A7%D1A%B4%87%22%7B%89%9F%16%DEt3s%95%FE%AF%BA%2F%3E%25U%10%87%83w%C0%1E%BF%0F2D%9A%90%AB%8DR%F4%05'5%91E%AA0%3C(%E0%C8r%FC%C8%F9%04%E0%CC%19%C5%D4%81%8F%98L%B9y%A3%AE%F4%08%ACoS%2BBRks%0A%3E%C6.hd3%0F%F3%DC1%19%CFn%DB%D5%EF%AA%05%86%89%E3%F5%BDA%EA3z!1%95%F9%E8%84%F8%BF%F4%E2%1At%A2%5D%F4&badges[][6]=12
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
+ - ! '"503bde4e7f09e769e9a0219fa4643b6b"'
129
+ cache-control:
130
+ - max-age=0, private, must-revalidate
131
+ set-cookie:
132
+ - _social_badge_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTJkMGY3MDAxY2QzZTdiZGE3ZmY2ZmRiMTk0Y2YwYzZkBjsAVA%3D%3D--dc451b81bc3e552e5c8a4df8a326f8e8be6e264b;
133
+ path=/; HttpOnly
134
+ x-runtime:
135
+ - '0.057924'
136
+ date:
137
+ - Thu, 30 May 2013 19:30:12 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":[{"reference":"6","updated_at":"2012-07-13T19:53:20Z","id":1,"share_text":"Parab\u00e9ns,
145
+ voc\u00ea ganhou a Badge de Coloridos da Dito.","events_count":10,"picture_url":"http://www.jorge.com.br/sergio","description":"Essa
146
+ badge \u00e9 dada para todos os Coloridos da Dito.","name":"Dito Colorida","created_at":"2012-07-13T19:53:20Z","app_id":23,"url":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=6&app_id=23"}]}'
147
+ http_version: '1.1'
148
+ recorded_at: Thu, 30 May 2013 19:30:12 GMT
149
+ - request:
150
+ method: get
151
+ uri: http://badge.dev.plataformasocial.com.br/users/5/badges?network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=G%8F%D6O(%07k%D97%F2%1F%0F%12b%C5%F3%EF%F87%22%C9%D2%A5%40%FE(Y4%AA%CD%22S%CA%AF%9D%A2%0D%84%84%C2!0%FF%90%5B%3F%13%9DYB%C1%A46%1F%40%A1%1E%81%A2%5D%0By%3AE%06%D7V%D4%AA%0Cm%88%2F~%CCs4j%F7%1B)%967a%40%19%09%92v%02%A6%F9y%22o%DA%82%A8%F7%BB%3F.-%A3%3C%D34%93H%40%F8%18%5B%D3%25%0E%8Eo2l%8243%E0s%B7%3FH
152
+ body:
153
+ encoding: US-ASCII
154
+ string: ''
155
+ headers:
156
+ connection:
157
+ - close
158
+ response:
159
+ status:
160
+ code: 200
161
+ message: OK
162
+ headers:
163
+ content-type:
164
+ - application/json; charset=utf-8
165
+ transfer-encoding:
166
+ - chunked
167
+ connection:
168
+ - close
169
+ status:
170
+ - '200'
171
+ x-powered-by:
172
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.11
173
+ access-control-allow-origin:
174
+ - ! '*'
175
+ x-ua-compatible:
176
+ - IE=Edge,chrome=1
177
+ etag:
178
+ - ! '"4b671dd10555e4d791d5d69b1b7e1013"'
179
+ cache-control:
180
+ - max-age=0, private, must-revalidate
181
+ x-runtime:
182
+ - '0.006724'
183
+ date:
184
+ - Thu, 30 May 2013 19:30:13 GMT
185
+ x-rack-cache:
186
+ - pass
187
+ server:
188
+ - nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
189
+ body:
190
+ encoding: US-ASCII
191
+ string: ! '{"data":[{"reference":"3","updated_at":"2012-07-13T19:53:20Z","id":1,"share_text":"Parab\u00e9ns,
192
+ voc\u00ea ganhou a Badge de Coloridos da Dito.","events_count":10,"picture_url":"http://www.jorge.com.br/sergio","description":"Essa
193
+ badge \u00e9 dada para todos os Coloridos da Dito.","name":"Dito Colorida","created_at":"2012-07-13T19:53:20Z","app_id":23,"earned":false,"url":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=3&app_id=23"},{"reference":"3","updated_at":"2012-07-13T19:53:20Z","id":1,"share_text":"Parab\u00e9ns,
194
+ voc\u00ea ganhou a Badge de Coloridos da Dito.","events_count":10,"picture_url":"http://www.jorge.com.br/sergio","description":"Essa
195
+ badge \u00e9 dada para todos os Coloridos da Dito.","name":"Dito Colorida","created_at":"2012-07-13T19:53:20Z","app_id":23,"earned":false,"url":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=3&app_id=23"},{"reference":"4","updated_at":"2012-07-13T19:53:20Z","id":1,"share_text":"Parab\u00e9ns,
196
+ voc\u00ea ganhou a Badge de Coloridos da Dito.","events_count":10,"picture_url":"http://www.jorge.com.br/sergio","description":"Essa
197
+ badge \u00e9 dada para todos os Coloridos da Dito.","name":"Dito Colorida","created_at":"2012-07-13T19:53:20Z","app_id":23,"earned":false,"url":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=4&app_id=23"},{"reference":"5","updated_at":"2012-07-13T19:53:20Z","id":1,"share_text":"Parab\u00e9ns,
198
+ voc\u00ea ganhou a Badge de Coloridos da Dito.","events_count":10,"picture_url":"http://www.jorge.com.br/sergio","description":"Essa
199
+ badge \u00e9 dada para todos os Coloridos da Dito.","name":"Dito Colorida","created_at":"2012-07-13T19:53:20Z","app_id":23,"earned":false,"url":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=5&app_id=23"},{"reference":"6","updated_at":"2012-07-13T19:53:20Z","id":1,"share_text":"Parab\u00e9ns,
200
+ voc\u00ea ganhou a Badge de Coloridos da Dito.","events_count":10,"picture_url":"http://www.jorge.com.br/sergio","description":"Essa
201
+ badge \u00e9 dada para todos os Coloridos da Dito.","name":"Dito Colorida","created_at":"2012-07-13T19:53:20Z","app_id":23,"earned":true,"url":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=6&app_id=23"}]}'
202
+ http_version: '1.1'
203
+ recorded_at: Thu, 30 May 2013 19:30:13 GMT
204
+ recorded_with: VCR 2.0.1
@@ -0,0 +1,202 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://badge.dev.plataformasocial.com.br/users/badge/5
6
+ body:
7
+ encoding: US-ASCII
8
+ string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%01%10%C2%CFS%FD%F5%CEK%15%5B%ADi%3D%F8%0F%20%CB%B0w%12UylU%A1%5B%E7%A2%02%C73%7CLK%5CyM%8E%7D%A07%99%05%E3E%00_%DF%073%8F%17%25%95%1A%8F%D8%8C!%DD%92%B0%CB%7D%08%1D%91%C6%C6%3F%B4%B6%A87%CA%0F%9C-%0E%EB%91%D1%80P%ACcTR%CE%17W9%B0%0C%E0w%19%13%96%DE%FA%9E%8A%AB%85%BC%0A%03Tmf%11L%D4%00%CFV%BEE%B0Y%D4%98v%9D%10%B0&badge=%7B%22reference%22%3A%225%22%2C%22updated_at%22%3A%222012-07-13T19%3A53%3A20Z%22%2C%22id%22%3A1%2C%22share_text%22%3A%22Parab%5Cu00e9ns%2C%20voc%5Cu00ea%20ganhou%20a%20Badge%20de%20Coloridos%20da%20Dito.%22%2C%22events_count%22%3A10%2C%22picture_url%22%3A%22http%3A%2F%2Fwww.jorge.com.br%2Fsergio%22%2C%22description%22%3A%22Essa%20badge%20%5Cu00e9%20dada%20para%20todos%20os%20Coloridos%20da%20Dito.%22%2C%22name%22%3A%22Dito%20Colorida%22%2C%22created_at%22%3A%222012-07-13T19%3A53%3A20Z%22%2C%22app_id%22%3A23%7D
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
+ - ! '"e21130944a95d0d07044553aab203e7a"'
33
+ cache-control:
34
+ - max-age=0, private, must-revalidate
35
+ set-cookie:
36
+ - _social_badge_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWU2NTFkYzgzZTkzMjVmYjMwNWYzZjE5ODFlZjBkZTViBjsAVA%3D%3D--6ced9002aef58a980096b77ebe3aaa4629f70257;
37
+ path=/; HttpOnly
38
+ x-runtime:
39
+ - '0.198419'
40
+ date:
41
+ - Thu, 30 May 2013 19:30:08 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":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=5&app_id=23"}'
49
+ http_version: '1.1'
50
+ recorded_at: Thu, 30 May 2013 19:30:08 GMT
51
+ - request:
52
+ method: post
53
+ uri: http://badge.dev.plataformasocial.com.br/users/badge/6
54
+ body:
55
+ encoding: US-ASCII
56
+ string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=%A2Y%F1.%C8%19%AB%8Aw%1A%D1%2F%B6%9D%CA%01%DC%0EN%AE%C9%1C%C8%D4%89%AC%18P%2C_%C4'%9A%2B%3C%3B%2F%04V!%BB%8F%94%C6R%F8AA%CE%F1%C1%DB%01%EB%C2%B1%B7%EB%EC%CD%2C%CCH%ACI%88%EF%AC%E7%9D%D1%84%80%FB%1D%13%18%B8f%86%A6%25%7F%DF%223%8B%5C%13%01-5i5%F6j%93F%FA%D7%C3V%97G%A0%3CQT%ECG%EER%D8%EC%0F%9D%10%06.N8%BB%A5%F0R%97%D51&badge=%7B%22reference%22%3A%226%22%2C%22updated_at%22%3A%222012-07-13T19%3A53%3A20Z%22%2C%22id%22%3A1%2C%22share_text%22%3A%22Parab%5Cu00e9ns%2C%20voc%5Cu00ea%20ganhou%20a%20Badge%20de%20Coloridos%20da%20Dito.%22%2C%22events_count%22%3A10%2C%22picture_url%22%3A%22http%3A%2F%2Fwww.jorge.com.br%2Fsergio%22%2C%22description%22%3A%22Essa%20badge%20%5Cu00e9%20dada%20para%20todos%20os%20Coloridos%20da%20Dito.%22%2C%22name%22%3A%22Dito%20Colorida%22%2C%22created_at%22%3A%222012-07-13T19%3A53%3A20Z%22%2C%22app_id%22%3A23%7D
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
+ - ! '"6e0a7ce0984d3d169c64ff6ef05dc584"'
81
+ cache-control:
82
+ - max-age=0, private, must-revalidate
83
+ set-cookie:
84
+ - _social_badge_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWM2ZjU5ZTMxMzFkZTEwMWQzNjVkNjA5OWZhYjkzMjM4BjsAVA%3D%3D--d573edd864cdb9d69bcd1083ff02f65dedf7c9e7;
85
+ path=/; HttpOnly
86
+ x-runtime:
87
+ - '0.102127'
88
+ date:
89
+ - Thu, 30 May 2013 19:30:09 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":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=6&app_id=23"}'
97
+ http_version: '1.1'
98
+ recorded_at: Thu, 30 May 2013 19:30:09 GMT
99
+ - request:
100
+ method: post
101
+ uri: http://badge.dev.plataformasocial.com.br/users/4/badges
102
+ body:
103
+ encoding: US-ASCII
104
+ string: network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=R%C1%20%14%FE%60yPR%DB%F5%C5%98%08%B5%05%D1%7F7%91%EE%2B%EA-%D1%018K(%F8%86%FB%DB%DE%86O%8FM%40%EA%04%04%A8%F8%C0%CB%D6%BEs%D8%88%B8%86%D1%DC%3A%E4%C2G%3E%24%19b%CA%0AU%B9%1Da%B0%60%1Dd%BF%C2n%CC%00%87%DF%AD%8E0%B9V%C8%B2%92%A3%86%B3y%7B%FBCE%07%20k%A2%1D%A7%89%BE%BB%A33%8DW_(%09%7DD%F0%FD%A4%7C%3F%F8kt%9Cd%E5D%2B%B7&badges[]=5
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
+ - ! '"e0234245cb00aa260ccfa99a9a0b235e"'
129
+ cache-control:
130
+ - max-age=0, private, must-revalidate
131
+ set-cookie:
132
+ - _social_badge_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTBkOTAwN2M4ZTcyN2I2N2QzNzdhYjE2YjgzYWFjYmM4BjsAVA%3D%3D--50223ad2d0e1618b0afcf9f824812146a8fcc531;
133
+ path=/; HttpOnly
134
+ x-runtime:
135
+ - '0.006724'
136
+ date:
137
+ - Thu, 30 May 2013 19:30:10 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 19:30:10 GMT
147
+ - request:
148
+ method: get
149
+ uri: http://badge.dev.plataformasocial.com.br/users/4/badges?network_name=fb&platform_api_key=MjAxMy0wMy0xMyAxNzoyMTo1MCArMDAwMERFViAtIFNreXkgVm9ka2EyMw&signature=spb6%F1jc%A2%84C%90%01%A8h%0D%A2%071S%B11%C08%8E%C9%0A%7D%E6%BB%C0%C2.%FD%DC%9C%3C%D4j%99%A9%5C%00%1A%AF%F6%D9h%ED5%9Cb%D20%F7%BC%3E%91av%E5Q%1C%E2%8D%3C%DD%100%1B%BA%5Du%3D%9C-%8C%F2%40%BE'%05%7D%83%F7%F2R%90%0E%FF%BA%BEt%80%9Bo~!b%D0J%07%87%E8%60%E41Ze%FA%3D%13%EB%AF%00%F3%F1%96%FD%40%F76%A0%E0fl%C3%0Ef
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
+ - ! '"03f9db8a382b8861884ba71fa4d562ca"'
177
+ cache-control:
178
+ - max-age=0, private, must-revalidate
179
+ x-runtime:
180
+ - '0.006795'
181
+ date:
182
+ - Thu, 30 May 2013 19:30:10 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":[{"reference":"3","updated_at":"2012-07-13T19:53:20Z","id":1,"share_text":"Parab\u00e9ns,
190
+ voc\u00ea ganhou a Badge de Coloridos da Dito.","events_count":10,"picture_url":"http://www.jorge.com.br/sergio","description":"Essa
191
+ badge \u00e9 dada para todos os Coloridos da Dito.","name":"Dito Colorida","created_at":"2012-07-13T19:53:20Z","app_id":23,"earned":false,"url":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=3&app_id=23"},{"reference":"3","updated_at":"2012-07-13T19:53:20Z","id":1,"share_text":"Parab\u00e9ns,
192
+ voc\u00ea ganhou a Badge de Coloridos da Dito.","events_count":10,"picture_url":"http://www.jorge.com.br/sergio","description":"Essa
193
+ badge \u00e9 dada para todos os Coloridos da Dito.","name":"Dito Colorida","created_at":"2012-07-13T19:53:20Z","app_id":23,"earned":false,"url":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=3&app_id=23"},{"reference":"4","updated_at":"2012-07-13T19:53:20Z","id":1,"share_text":"Parab\u00e9ns,
194
+ voc\u00ea ganhou a Badge de Coloridos da Dito.","events_count":10,"picture_url":"http://www.jorge.com.br/sergio","description":"Essa
195
+ badge \u00e9 dada para todos os Coloridos da Dito.","name":"Dito Colorida","created_at":"2012-07-13T19:53:20Z","app_id":23,"earned":false,"url":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=4&app_id=23"},{"reference":"5","updated_at":"2012-07-13T19:53:20Z","id":1,"share_text":"Parab\u00e9ns,
196
+ voc\u00ea ganhou a Badge de Coloridos da Dito.","events_count":10,"picture_url":"http://www.jorge.com.br/sergio","description":"Essa
197
+ badge \u00e9 dada para todos os Coloridos da Dito.","name":"Dito Colorida","created_at":"2012-07-13T19:53:20Z","app_id":23,"earned":false,"url":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=5&app_id=23"},{"reference":"6","updated_at":"2012-07-13T19:53:20Z","id":1,"share_text":"Parab\u00e9ns,
198
+ voc\u00ea ganhou a Badge de Coloridos da Dito.","events_count":10,"picture_url":"http://www.jorge.com.br/sergio","description":"Essa
199
+ badge \u00e9 dada para todos os Coloridos da Dito.","name":"Dito Colorida","created_at":"2012-07-13T19:53:20Z","app_id":23,"earned":false,"url":"http://appprova.sandbox.plataformasocial.com.br/badge?badge_reference=6&app_id=23"}]}'
200
+ http_version: '1.1'
201
+ recorded_at: Thu, 30 May 2013 19:30:10 GMT
202
+ recorded_with: VCR 2.0.1