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,53 @@
1
+ #encoding: UTF-8
2
+ require "spec_helper"
3
+
4
+ describe PlataformaSocial::Ranking::Custom do
5
+ describe "Platform Route" do
6
+ it "return correct url" do
7
+ PlataformaSocial::Ranking::Custom.socialp_route.should == "http://ranking.dev.plataformasocial.com.br"
8
+ end
9
+ end
10
+
11
+ describe "GET custom ranking" do
12
+ context "when request is successful" do
13
+ before :each, :vcr do
14
+ @ranking = PlataformaSocial::Ranking::Custom.new
15
+ @ranking.create({ :user_reference => 1, :points => 2, :start_date => Date.today - 5.days, :end_date => Date.today })
16
+ @ranking.create({ :user_reference => 2, :points => 2, :start_date => Date.today - 5.days, :end_date => Date.today })
17
+ @ranking.create({ :user_reference => 3, :points => 3, :start_date => Date.today - 5.days, :end_date => Date.today })
18
+ @ranking.create({ :user_reference => 4, :points => 4, :start_date => Date.today - 5.days, :end_date => Date.today })
19
+ @ranking.create({ :user_reference => 6, :points => 4, :start_date => Date.today - 5.days, :end_date => Date.today })
20
+ end
21
+
22
+ it "using params user_reference and friends", :vcr do
23
+ @ranking.get({ :friends => true, :user_reference => 3, :start_date => Date.today - 5.days, :end_date => Date.today })["users"].count.should be(4)
24
+ end
25
+
26
+ it "using another dates", :vcr do
27
+ @ranking.get({ :start_date => Date.today - 6.days, :end_date => Date.today })["users"].count.should be(0)
28
+ end
29
+
30
+ it "using corrects params", :vcr do
31
+ @ranking.get({ :start_date => Date.today - 5.days, :end_date => Date.today })["users"].count.should be(5)
32
+ end
33
+ end
34
+
35
+ context "when request is failed" do
36
+ before :each do
37
+ @ranking = PlataformaSocial::Ranking::Custom.new
38
+ end
39
+
40
+ it "with only param start_date" do
41
+ @ranking.get({ :start_date => Date.today - 5.days }).should == "Faltando o parâmetro: end_date"
42
+ end
43
+
44
+ it "with only param end_date" do
45
+ @ranking.get({ :end_date => Date.today }).should == "Faltando o parâmetro: start_date"
46
+ end
47
+
48
+ it "with param friends and without param user_reference" do
49
+ @ranking.get({ :friends => 2, :start_date => Date.today - 5.days, :end_date => Date.today }).should == "Quando temos o parâmetro friends, temos que ter obrigatóriamente o parâmetro user_reference"
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,23 @@
1
+ require "spec_helper"
2
+
3
+ describe PlataformaSocial::Ranking::General do
4
+ describe "Platform Route" do
5
+ it "return correct url" do
6
+ PlataformaSocial::Ranking::General.socialp_route.should == "http://ranking.dev.plataformasocial.com.br"
7
+ end
8
+ end
9
+
10
+ describe "GET full ranking" do
11
+ before :all, :vcr do
12
+ @ranking = PlataformaSocial::Ranking::General.new
13
+ @ranking.create({ :user_reference => 1, :points => 3 })
14
+ @ranking.create({ :user_reference => 2, :points => 2 })
15
+ @ranking.create({ :user_reference => 3, :points => 1 })
16
+ @ranking.create({ :user_reference => 4, :points => 4 })
17
+ end
18
+
19
+ it "return all ranking", :vcr do
20
+ @ranking.get["users"].count.should be(4)
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,147 @@
1
+ #encoding: UTF-8
2
+ require "spec_helper"
3
+
4
+ describe PlataformaSocial::Ranking do
5
+ describe "Platform Route" do
6
+ it "return correct url" do
7
+ PlataformaSocial::Ranking.socialp_route.should == "http://ranking.dev.plataformasocial.com.br"
8
+ end
9
+ end
10
+
11
+ describe "CREATE a new ranking" do
12
+ before :each do
13
+ @params = { :user_reference => 1, :points => 1 }
14
+ end
15
+
16
+ context "when request is successful" do
17
+ it "for general ranking", :vcr do
18
+ ranking = PlataformaSocial::Ranking.new
19
+ ranking.create(@params).should == ""
20
+ end
21
+
22
+ it "for custom date ranking", :vcr do
23
+ @params.merge!({ :start_date => Date.today - 5.days, :end_date => Date.today })
24
+ ranking = PlataformaSocial::Ranking.new
25
+ ranking.create(@params).should == ""
26
+ end
27
+
28
+ it "using min and max params ranking", :vcr do
29
+ @params.merge!({ :min => 0, :max => 5 })
30
+ ranking = PlataformaSocial::Ranking.new
31
+ ranking.create(@params).should == ""
32
+ end
33
+
34
+ it "using max param ranking", :vcr do
35
+ @params.merge!({ :max => 5 })
36
+ ranking = PlataformaSocial::Ranking.new
37
+ ranking.create(@params).should == ""
38
+ end
39
+
40
+ it "using min param ranking", :vcr do
41
+ @params.merge!({ :min => 0 })
42
+ ranking = PlataformaSocial::Ranking.new
43
+ ranking.create(@params).should == ""
44
+ end
45
+ end
46
+
47
+ context "when request is failed" do
48
+ [:user_reference, :points].each do |param|
49
+ it "dont using params: #{param}" do
50
+ @params.delete param
51
+ ranking = PlataformaSocial::Ranking.new
52
+ ranking.create(@params).should == "Faltando o parâmetro: #{param}"
53
+ end
54
+ end
55
+
56
+ it "using only end_date" do
57
+ @params.merge!({ :end_date => Date.today })
58
+ ranking = PlataformaSocial::Ranking.new
59
+ ranking.create(@params).should == "Quando temos o parâmetro end_date, temos que ter obrigatóriamente o parâmetro start_date"
60
+ end
61
+
62
+ it "using only start_date" do
63
+ @params.merge!({ :start_date => Date.today - 5.days })
64
+ ranking = PlataformaSocial::Ranking.new
65
+ ranking.create(@params).should == "Quando temos o parâmetro start_date, temos que ter obrigatóriamente o parâmetro end_date"
66
+ end
67
+ end
68
+ end
69
+
70
+ describe "GET window" do
71
+ context "when request is successful" do
72
+ before :all, :vcr do
73
+ @ranking = PlataformaSocial::Ranking.new
74
+ @ranking.create({ :user_reference => 2, :points => 3 })
75
+ @ranking.create({ :user_reference => 3, :points => 2 })
76
+ @ranking.create({ :user_reference => 4, :points => 4 })
77
+ end
78
+
79
+ it "with up param", :vcr do
80
+ @ranking.window({ :user_reference => 3, :up => 2 })["users"].count.should be(3)
81
+ end
82
+
83
+ it "with down param", :vcr do
84
+ @ranking.window({ :user_reference => 4, :down => 2 })["users"].count.should be(3)
85
+ end
86
+
87
+ it "with up and down param", :vcr do
88
+ @ranking.window({ :user_reference => 2, :up => 1, :down => 1 })["users"].count.should be(3)
89
+ end
90
+
91
+ it "without up and down param", :vcr do
92
+ @ranking.window({ :user_reference => 2 })["users"].count.should be(1)
93
+ end
94
+
95
+ it "with friends param", :vcr do
96
+ @ranking.window({ :user_reference => 2, :friends => true })["users"].count.should be(1)
97
+ end
98
+
99
+ it "with limit param", :vcr do
100
+ @ranking.window({ :user_reference => 4, :down => 2, :limit => 1 })["users"].count.should be(1)
101
+ end
102
+
103
+ it "with date params", :vcr do
104
+ @ranking.create({ :user_reference => 4, :points => 3, :start_date => Date.today - 5.days, :end_date => Date.today })
105
+ @ranking.window({ :user_reference => 4, :start_date => Date.today - 5.days, :end_date => Date.today })["users"].count.should be(1)
106
+ end
107
+ end
108
+
109
+ context "when request is failed" do
110
+ it "without user_reference param" do
111
+ ranking = PlataformaSocial::Ranking.new
112
+ ranking.window.should == "Faltando o parâmetro: user_reference"
113
+ end
114
+ end
115
+ end
116
+
117
+ describe "GET friends" do
118
+ before :all, :vcr do
119
+ @ranking = PlataformaSocial::Ranking.new
120
+ @ranking.create({ :user_reference => 2, :points => 3 })
121
+ @ranking.create({ :user_reference => 3, :points => 2 })
122
+ @ranking.create({ :user_reference => 4, :points => 4 })
123
+ end
124
+
125
+ context "when request is successful" do
126
+ it "with limit param", :vcr do
127
+ @ranking.friends({ :user_reference => 3, :limit => 2 })["users"].count.should be(2)
128
+ end
129
+
130
+ it "with page param", :vcr do
131
+ @ranking.friends({ :user_reference => 3, :page => 2, :limit => 5 })["users"].count.should be(0)
132
+ end
133
+
134
+ it "with page and limit param", :vcr do
135
+ @ranking.friends({ :user_reference => 3, :limit => 1, :page => 1 })["users"].count.should be(1)
136
+ end
137
+ end
138
+
139
+ context "when request is failed" do
140
+ it "without user_reference param" do
141
+ ranking = PlataformaSocial::Ranking.new
142
+ ranking.friends.should == "Faltando o parâmetro: user_reference"
143
+ end
144
+ end
145
+ end
146
+
147
+ end
@@ -0,0 +1,18 @@
1
+ require File.expand_path("../dummy/config/environment", __FILE__)
2
+ require "plataforma_social"
3
+ require 'vcr'
4
+
5
+ VCR.configure do |c|
6
+ c.cassette_library_dir = 'spec/cassettes'
7
+ c.hook_into :fakeweb
8
+ c.configure_rspec_metadata!
9
+ c.default_cassette_options = { :match_requests_on => [:host, :path, :method] }
10
+ end
11
+
12
+ RSpec.configure do |config|
13
+ config.mock_with :rspec
14
+
15
+ config.extend VCR::RSpec::Macros
16
+
17
+ config.treat_symbols_as_metadata_keys_with_true_values = true
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plataforma_social
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-21 00:00:00.000000000 Z
12
+ date: 2013-07-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -75,6 +75,102 @@ dependencies:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
77
  version: 0.10.0
78
+ - !ruby/object:Gem::Dependency
79
+ name: json
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: 1.7.7
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: 1.7.7
94
+ - !ruby/object:Gem::Dependency
95
+ name: bundler
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: 1.1.0
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: 1.1.0
110
+ - !ruby/object:Gem::Dependency
111
+ name: rake
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: 0.9.2.2
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: 0.9.2.2
126
+ - !ruby/object:Gem::Dependency
127
+ name: rspec
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ~>
132
+ - !ruby/object:Gem::Version
133
+ version: 2.8.0
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: 2.8.0
142
+ - !ruby/object:Gem::Dependency
143
+ name: vcr
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: 2.0.1
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: 2.0.1
158
+ - !ruby/object:Gem::Dependency
159
+ name: fakeweb
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ~>
164
+ - !ruby/object:Gem::Version
165
+ version: 1.3.0
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: 1.3.0
78
174
  description: Plataforma Social's integration gem
79
175
  email:
80
176
  - marcos.nogueira@dito.com.br
@@ -82,7 +178,10 @@ executables: []
82
178
  extensions: []
83
179
  extra_rdoc_files: []
84
180
  files:
181
+ - .DS_Store
85
182
  - .gitignore
183
+ - .rspec
184
+ - CHANGELOG.rdoc
86
185
  - Capfile
87
186
  - Gemfile
88
187
  - LICENSE.txt
@@ -90,14 +189,104 @@ files:
90
189
  - Rakefile
91
190
  - config/deploy.rb
92
191
  - lib/plataforma_social.rb
192
+ - lib/plataforma_social/badge.rb
93
193
  - lib/plataforma_social/configuration.rb
94
194
  - lib/plataforma_social/domains.rb
95
195
  - lib/plataforma_social/facebook.rb
96
196
  - lib/plataforma_social/helpers.rb
197
+ - lib/plataforma_social/ranking.rb
198
+ - lib/plataforma_social/ranking/custom.rb
199
+ - lib/plataforma_social/ranking/general.rb
97
200
  - lib/plataforma_social/request.rb
201
+ - lib/plataforma_social/support.rb
98
202
  - lib/plataforma_social/version.rb
99
203
  - plataforma_social.gemspec
100
- - spec/dummy/log/development.log
204
+ - spec/.DS_Store
205
+ - spec/cassettes/PlataformaSocial_Badge/CREATE_a_new_badge/when_request_is_successful.yml
206
+ - spec/cassettes/PlataformaSocial_Badge/GIVE_points_to_user/when_request_is_successful_and_badges_is_array.yml
207
+ - spec/cassettes/PlataformaSocial_Badge/GIVE_points_to_user/when_request_is_successful_and_badges_is_hash.yml
208
+ - spec/cassettes/PlataformaSocial_Badge/return_INDEX_to_user/when_request_is_successful_and_user_has_already_earned_some_badge.yml
209
+ - spec/cassettes/PlataformaSocial_Badge/return_INDEX_to_user/when_request_is_successful_but_user_hasnt_earned_any_badge.yml
210
+ - spec/cassettes/PlataformaSocial_Ranking/GET_friends/when_request_is_successful/with_limit_param.yml
211
+ - spec/cassettes/PlataformaSocial_Ranking/GET_friends/when_request_is_successful/with_page_and_limit_param.yml
212
+ - spec/cassettes/PlataformaSocial_Ranking/GET_friends/when_request_is_successful/with_page_param.yml
213
+ - spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_date_params.yml
214
+ - spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_down_param.yml
215
+ - spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_friends_param.yml
216
+ - spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_limit_param.yml
217
+ - spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_up_and_down_param.yml
218
+ - spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_up_param.yml
219
+ - spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/without_up_and_down_param.yml
220
+ - spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful.yml
221
+ - spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/for_custom_date_ranking.yml
222
+ - spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/for_general_ranking.yml
223
+ - spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/using_max_param_ranking.yml
224
+ - spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/using_min_and_max_params_ranking.yml
225
+ - spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/using_min_param_ranking.yml
226
+ - spec/cassettes/PlataformaSocial_Ranking_Custom/GET_custom_ranking/when_request_is_successful/using_another_dates.yml
227
+ - spec/cassettes/PlataformaSocial_Ranking_Custom/GET_custom_ranking/when_request_is_successful/using_corrects_params.yml
228
+ - spec/cassettes/PlataformaSocial_Ranking_Custom/GET_custom_ranking/when_request_is_successful/using_params_user_reference_and_friends.yml
229
+ - spec/cassettes/PlataformaSocial_Ranking_General/GET_full_ranking/return_all_ranking.yml
230
+ - spec/dummy/.DS_Store
231
+ - spec/dummy/.gitignore
232
+ - spec/dummy/Gemfile
233
+ - spec/dummy/README.rdoc
234
+ - spec/dummy/Rakefile
235
+ - spec/dummy/app/assets/javascripts/application.js
236
+ - spec/dummy/app/assets/stylesheets/application.css
237
+ - spec/dummy/app/controllers/application_controller.rb
238
+ - spec/dummy/app/controllers/concerns/.keep
239
+ - spec/dummy/app/helpers/application_helper.rb
240
+ - spec/dummy/app/mailers/.keep
241
+ - spec/dummy/app/models/.keep
242
+ - spec/dummy/app/models/concerns/.keep
243
+ - spec/dummy/app/views/layouts/application.html.erb
244
+ - spec/dummy/bin/bundle
245
+ - spec/dummy/bin/rails
246
+ - spec/dummy/bin/rake
247
+ - spec/dummy/config.ru
248
+ - spec/dummy/config/application.rb
249
+ - spec/dummy/config/boot.rb
250
+ - spec/dummy/config/database.yml
251
+ - spec/dummy/config/environment.rb
252
+ - spec/dummy/config/environments/development.rb
253
+ - spec/dummy/config/environments/production.rb
254
+ - spec/dummy/config/environments/test.rb
255
+ - spec/dummy/config/initializers/backtrace_silencers.rb
256
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
257
+ - spec/dummy/config/initializers/inflections.rb
258
+ - spec/dummy/config/initializers/mime_types.rb
259
+ - spec/dummy/config/initializers/secret_token.rb
260
+ - spec/dummy/config/initializers/session_store.rb
261
+ - spec/dummy/config/initializers/wrap_parameters.rb
262
+ - spec/dummy/config/locales/en.yml
263
+ - spec/dummy/config/routes.rb
264
+ - spec/dummy/db/seeds.rb
265
+ - spec/dummy/keys/public.pem
266
+ - spec/dummy/lib/assets/.keep
267
+ - spec/dummy/lib/tasks/.keep
268
+ - spec/dummy/log/.keep
269
+ - spec/dummy/plataforma_social/keys/public.pem
270
+ - spec/dummy/public/404.html
271
+ - spec/dummy/public/422.html
272
+ - spec/dummy/public/500.html
273
+ - spec/dummy/public/favicon.ico
274
+ - spec/dummy/public/robots.txt
275
+ - spec/dummy/test/controllers/.keep
276
+ - spec/dummy/test/fixtures/.keep
277
+ - spec/dummy/test/helpers/.keep
278
+ - spec/dummy/test/integration/.keep
279
+ - spec/dummy/test/mailers/.keep
280
+ - spec/dummy/test/models/.keep
281
+ - spec/dummy/test/test_helper.rb
282
+ - spec/dummy/vendor/assets/javascripts/.keep
283
+ - spec/dummy/vendor/assets/stylesheets/.keep
284
+ - spec/plataforma_social/.DS_Store
285
+ - spec/plataforma_social/badge_spec.rb
286
+ - spec/plataforma_social/ranking/custom_spec.rb
287
+ - spec/plataforma_social/ranking/general_spec.rb
288
+ - spec/plataforma_social/ranking_spec.rb
289
+ - spec/spec_helper.rb
101
290
  homepage: http://www.dito.com.br/
102
291
  licenses: []
103
292
  post_install_message:
@@ -118,10 +307,94 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
307
  version: '0'
119
308
  requirements: []
120
309
  rubyforge_project:
121
- rubygems_version: 1.8.24
310
+ rubygems_version: 1.8.25
122
311
  signing_key:
123
312
  specification_version: 3
124
313
  summary: Plataforma Social's integration gem
125
314
  test_files:
126
- - spec/dummy/log/development.log
127
- has_rdoc:
315
+ - spec/.DS_Store
316
+ - spec/cassettes/PlataformaSocial_Badge/CREATE_a_new_badge/when_request_is_successful.yml
317
+ - spec/cassettes/PlataformaSocial_Badge/GIVE_points_to_user/when_request_is_successful_and_badges_is_array.yml
318
+ - spec/cassettes/PlataformaSocial_Badge/GIVE_points_to_user/when_request_is_successful_and_badges_is_hash.yml
319
+ - spec/cassettes/PlataformaSocial_Badge/return_INDEX_to_user/when_request_is_successful_and_user_has_already_earned_some_badge.yml
320
+ - spec/cassettes/PlataformaSocial_Badge/return_INDEX_to_user/when_request_is_successful_but_user_hasnt_earned_any_badge.yml
321
+ - spec/cassettes/PlataformaSocial_Ranking/GET_friends/when_request_is_successful/with_limit_param.yml
322
+ - spec/cassettes/PlataformaSocial_Ranking/GET_friends/when_request_is_successful/with_page_and_limit_param.yml
323
+ - spec/cassettes/PlataformaSocial_Ranking/GET_friends/when_request_is_successful/with_page_param.yml
324
+ - spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_date_params.yml
325
+ - spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_down_param.yml
326
+ - spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_friends_param.yml
327
+ - spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_limit_param.yml
328
+ - spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_up_and_down_param.yml
329
+ - spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/with_up_param.yml
330
+ - spec/cassettes/PlataformaSocial_Ranking/GET_window/when_request_is_successful/without_up_and_down_param.yml
331
+ - spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful.yml
332
+ - spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/for_custom_date_ranking.yml
333
+ - spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/for_general_ranking.yml
334
+ - spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/using_max_param_ranking.yml
335
+ - spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/using_min_and_max_params_ranking.yml
336
+ - spec/cassettes/PlataformaSocial_Ranking/create_a_new_ranking/when_request_is_successful/using_min_param_ranking.yml
337
+ - spec/cassettes/PlataformaSocial_Ranking_Custom/GET_custom_ranking/when_request_is_successful/using_another_dates.yml
338
+ - spec/cassettes/PlataformaSocial_Ranking_Custom/GET_custom_ranking/when_request_is_successful/using_corrects_params.yml
339
+ - spec/cassettes/PlataformaSocial_Ranking_Custom/GET_custom_ranking/when_request_is_successful/using_params_user_reference_and_friends.yml
340
+ - spec/cassettes/PlataformaSocial_Ranking_General/GET_full_ranking/return_all_ranking.yml
341
+ - spec/dummy/.DS_Store
342
+ - spec/dummy/.gitignore
343
+ - spec/dummy/Gemfile
344
+ - spec/dummy/README.rdoc
345
+ - spec/dummy/Rakefile
346
+ - spec/dummy/app/assets/javascripts/application.js
347
+ - spec/dummy/app/assets/stylesheets/application.css
348
+ - spec/dummy/app/controllers/application_controller.rb
349
+ - spec/dummy/app/controllers/concerns/.keep
350
+ - spec/dummy/app/helpers/application_helper.rb
351
+ - spec/dummy/app/mailers/.keep
352
+ - spec/dummy/app/models/.keep
353
+ - spec/dummy/app/models/concerns/.keep
354
+ - spec/dummy/app/views/layouts/application.html.erb
355
+ - spec/dummy/bin/bundle
356
+ - spec/dummy/bin/rails
357
+ - spec/dummy/bin/rake
358
+ - spec/dummy/config.ru
359
+ - spec/dummy/config/application.rb
360
+ - spec/dummy/config/boot.rb
361
+ - spec/dummy/config/database.yml
362
+ - spec/dummy/config/environment.rb
363
+ - spec/dummy/config/environments/development.rb
364
+ - spec/dummy/config/environments/production.rb
365
+ - spec/dummy/config/environments/test.rb
366
+ - spec/dummy/config/initializers/backtrace_silencers.rb
367
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
368
+ - spec/dummy/config/initializers/inflections.rb
369
+ - spec/dummy/config/initializers/mime_types.rb
370
+ - spec/dummy/config/initializers/secret_token.rb
371
+ - spec/dummy/config/initializers/session_store.rb
372
+ - spec/dummy/config/initializers/wrap_parameters.rb
373
+ - spec/dummy/config/locales/en.yml
374
+ - spec/dummy/config/routes.rb
375
+ - spec/dummy/db/seeds.rb
376
+ - spec/dummy/keys/public.pem
377
+ - spec/dummy/lib/assets/.keep
378
+ - spec/dummy/lib/tasks/.keep
379
+ - spec/dummy/log/.keep
380
+ - spec/dummy/plataforma_social/keys/public.pem
381
+ - spec/dummy/public/404.html
382
+ - spec/dummy/public/422.html
383
+ - spec/dummy/public/500.html
384
+ - spec/dummy/public/favicon.ico
385
+ - spec/dummy/public/robots.txt
386
+ - spec/dummy/test/controllers/.keep
387
+ - spec/dummy/test/fixtures/.keep
388
+ - spec/dummy/test/helpers/.keep
389
+ - spec/dummy/test/integration/.keep
390
+ - spec/dummy/test/mailers/.keep
391
+ - spec/dummy/test/models/.keep
392
+ - spec/dummy/test/test_helper.rb
393
+ - spec/dummy/vendor/assets/javascripts/.keep
394
+ - spec/dummy/vendor/assets/stylesheets/.keep
395
+ - spec/plataforma_social/.DS_Store
396
+ - spec/plataforma_social/badge_spec.rb
397
+ - spec/plataforma_social/ranking/custom_spec.rb
398
+ - spec/plataforma_social/ranking/general_spec.rb
399
+ - spec/plataforma_social/ranking_spec.rb
400
+ - spec/spec_helper.rb