catarse_moip 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -4,3 +4,111 @@ source "http://rubygems.org"
4
4
  # Bundler will treat runtime dependencies like base dependencies, and
5
5
  # development dependencies will be added by default to the :development group.
6
6
  gemspec
7
+ source 'http://rubygems.org'
8
+ source 'http://gems.github.com'
9
+
10
+ gem 'rails', '3.2.6'
11
+ gem 'rake', '0.9.2.2'
12
+ gem 'catarse_paypal_express', :path => '~/store/code/catarse_paypal_express'
13
+
14
+ # Database [Putting pg to the end because of a weird bug with Lion, pg and openssl]
15
+ gem 'pg'
16
+ gem 'foreigner'
17
+ gem 'activerecord-postgresql-adapter'
18
+
19
+ # Frontend stuff
20
+ gem 'jquery-rails'
21
+ gem 'slim'
22
+ gem 'slim-rails'
23
+
24
+ # Authentication and Authorization
25
+ gem 'omniauth', "~> 1.1.0"
26
+ gem 'omniauth-openid', '~> 1.0.1'
27
+ gem 'omniauth-twitter', '~> 0.0.12'
28
+ gem 'omniauth-facebook', '~> 1.2.0'
29
+ gem 'omniauth-github', '~> 1.0.1'
30
+ gem 'omniauth-linkedin', '~> 0.0.6'
31
+ gem 'omniauth-yahoo', '~> 0.0.4'
32
+ gem 'devise', '1.5.3'
33
+ gem 'cancan'
34
+
35
+ gem 'rails_autolink', '~> 1.0.7'
36
+
37
+ # Tools
38
+ gem 'mailchimp'
39
+ gem "airbrake"
40
+ gem 'feedzirra'
41
+ gem 'formtastic'
42
+ gem "auto_html", '= 1.4.2'
43
+ gem 'validation_reflection', git: 'git://github.com/ncri/validation_reflection.git'
44
+ gem 'maxim-sexy_pg_constraints'
45
+ gem 'inherited_resources', '1.3.1'
46
+ gem 'spectator-validates_email', require: 'validates_email'
47
+ gem 'has_vimeo_video', '>= 0.0.4'
48
+ gem 'wirble'
49
+ gem "on_the_spot"
50
+ gem 'weekdays'
51
+ gem 'brcep'
52
+ gem "RedCloth"
53
+ gem 'unicode'
54
+ gem 'carrierwave', '= 0.5.8'
55
+ gem 'rmagick'
56
+ gem 'fog'
57
+ gem 'enumerate_it'
58
+ gem 'httparty', '~> 0.6.1'
59
+ gem "rack-timeout"
60
+ gem 'kaminari'
61
+ gem 'tumblr-api'
62
+ gem 'dalli'
63
+ gem 'capybara', ">= 1.0.1"
64
+
65
+ # Translations
66
+ gem 'http_accept_language'
67
+ gem 'web_translate_it'
68
+ gem 'routing-filter' #, :git => 'git://github.com/svenfuchs/routing-filter.git'
69
+
70
+ # Administration
71
+ gem 'activeadmin', git: 'git://github.com/gregbell/active_admin.git'
72
+ gem "meta_search", "1.1.3"
73
+
74
+ # Payment (moip)
75
+ gem 'moip', git: 'https://github.com/danielweinmann/moip-ruby.git', ref: 'db1b879358c623b597dc1c221b53336f9f06db0e'
76
+
77
+ # Payment (paypal adaptive)
78
+ gem 'activemerchant', '1.17.0', require: 'active_merchant'
79
+ #gem 'active_paypal_adaptive_payment', '~> 0.3.13'
80
+ gem 'httpclient', '2.2.5'
81
+ gem 'selenium-webdriver', '~> 2.25.0'
82
+ gem 'bourbon'
83
+ gem 'paypal-express', :require => 'paypal'
84
+
85
+ # Server
86
+ gem 'thin'
87
+
88
+ group :assets do
89
+ gem 'sass-rails', '~> 3.2.5'
90
+ gem 'coffee-rails', '~> 3.2.2'
91
+ gem "compass-rails", "~> 1.0.1"
92
+ gem 'uglifier', '>= 1.0.3'
93
+ gem 'compass-960-plugin', '~> 0.10.4'
94
+ end
95
+
96
+ group :test, :development do
97
+ gem 'annotate'
98
+ gem 'launchy'
99
+ gem 'database_cleaner'
100
+ gem 'steak', "~> 1.1.0"
101
+ gem 'rspec-rails', "~> 2.10.0"
102
+ gem 'rcov', '= 0.9.11'
103
+ gem 'mocha', '0.10.4'
104
+ end
105
+
106
+ group :development do
107
+ gem 'mailcatcher'
108
+ gem 'ruby-debug19'
109
+ end
110
+
111
+ group :test do
112
+ gem 'shoulda'
113
+ gem 'factory_girl_rails', '1.7.0'
114
+ end
data/Gemfile.lock CHANGED
@@ -1,125 +1,536 @@
1
+ GIT
2
+ remote: git://github.com/gregbell/active_admin.git
3
+ revision: 3130933893714019684d5713e6afba92a7717d2d
4
+ specs:
5
+ activeadmin (0.4.4)
6
+ arbre (>= 1.0.0.rc4)
7
+ bourbon (>= 1.0.0)
8
+ devise (>= 1.1.2)
9
+ fastercsv
10
+ formtastic (>= 2.0.0)
11
+ inherited_resources (>= 1.3.1)
12
+ jquery-rails (>= 1.0.0)
13
+ kaminari (>= 0.13.0)
14
+ meta_search (>= 0.9.2)
15
+ rails (>= 3.0.0)
16
+ sass (>= 3.1.0)
17
+
18
+ GIT
19
+ remote: git://github.com/ncri/validation_reflection.git
20
+ revision: 60320e6beb088808fd625a8d958dbd0d2661d494
21
+ specs:
22
+ validation_reflection (1.0.0)
23
+
24
+ GIT
25
+ remote: https://github.com/danielweinmann/moip-ruby.git
26
+ revision: db1b879358c623b597dc1c221b53336f9f06db0e
27
+ ref: db1b879358c623b597dc1c221b53336f9f06db0e
28
+ specs:
29
+ moip (1.0.2)
30
+ activesupport (>= 2.3.2)
31
+ httparty (~> 0.6.1)
32
+ nokogiri (~> 1.4.3)
33
+
1
34
  PATH
2
35
  remote: .
3
36
  specs:
4
- catarse_moip (0.0.1)
5
- moip (~> 1.0.4)
37
+ catarse_moip (0.0.2)
38
+ moip_catarse (~> 1.0.6)
39
+ rails (~> 3.2.6)
40
+
41
+ PATH
42
+ remote: ~/store/code/catarse_paypal_express
43
+ specs:
44
+ catarse_paypal_express (0.0.2)
45
+ activemerchant (~> 1.17.0)
6
46
  rails (~> 3.2.6)
7
47
 
8
48
  GEM
9
49
  remote: http://rubygems.org/
50
+ remote: http://rubygems.org/
51
+ remote: http://gems.github.com/
10
52
  specs:
11
- actionmailer (3.2.7)
12
- actionpack (= 3.2.7)
53
+ RedCloth (4.2.9)
54
+ actionmailer (3.2.6)
55
+ actionpack (= 3.2.6)
13
56
  mail (~> 2.4.4)
14
- actionpack (3.2.7)
15
- activemodel (= 3.2.7)
16
- activesupport (= 3.2.7)
57
+ actionpack (3.2.6)
58
+ activemodel (= 3.2.6)
59
+ activesupport (= 3.2.6)
17
60
  builder (~> 3.0.0)
18
61
  erubis (~> 2.7.0)
19
- journey (~> 1.0.4)
62
+ journey (~> 1.0.1)
20
63
  rack (~> 1.4.0)
21
64
  rack-cache (~> 1.2)
22
65
  rack-test (~> 0.6.1)
23
66
  sprockets (~> 2.1.3)
24
- activemodel (3.2.7)
25
- activesupport (= 3.2.7)
67
+ activemerchant (1.17.0)
68
+ activesupport (>= 2.3.11)
69
+ braintree (>= 2.0.0)
70
+ builder (>= 2.0.0)
71
+ json (>= 1.5.1)
72
+ activemodel (3.2.6)
73
+ activesupport (= 3.2.6)
26
74
  builder (~> 3.0.0)
27
- activerecord (3.2.7)
28
- activemodel (= 3.2.7)
29
- activesupport (= 3.2.7)
75
+ activerecord (3.2.6)
76
+ activemodel (= 3.2.6)
77
+ activesupport (= 3.2.6)
30
78
  arel (~> 3.0.2)
31
79
  tzinfo (~> 0.3.29)
32
- activeresource (3.2.7)
33
- activemodel (= 3.2.7)
34
- activesupport (= 3.2.7)
35
- activesupport (3.2.7)
80
+ activerecord-postgresql-adapter (0.0.1)
81
+ pg
82
+ activeresource (3.2.6)
83
+ activemodel (= 3.2.6)
84
+ activesupport (= 3.2.6)
85
+ activesupport (3.2.6)
36
86
  i18n (~> 0.6)
37
87
  multi_json (~> 1.0)
88
+ addressable (2.3.2)
89
+ airbrake (3.1.2)
90
+ activesupport
91
+ builder
92
+ annotate (2.5.0)
93
+ rake
94
+ arbre (1.0.0.rc4)
95
+ activesupport (>= 3.0.0)
96
+ archive-tar-minitar (0.5.2)
38
97
  arel (3.0.2)
98
+ attr_required (0.0.5)
99
+ auto_html (1.4.2)
100
+ RedCloth
101
+ redcarpet
102
+ rinku
103
+ tag_helper
104
+ bcrypt-ruby (3.0.1)
105
+ bourbon (2.1.1)
106
+ sass (>= 3.1)
107
+ braintree (2.16.0)
108
+ builder (>= 2.0.0)
109
+ brcep (3.1.0)
39
110
  builder (3.0.0)
111
+ cancan (1.6.8)
112
+ capybara (1.1.2)
113
+ mime-types (>= 1.16)
114
+ nokogiri (>= 1.3.3)
115
+ rack (>= 1.0.0)
116
+ rack-test (>= 0.5.4)
117
+ selenium-webdriver (~> 2.0)
118
+ xpath (~> 0.1.4)
119
+ carrierwave (0.5.8)
120
+ activesupport (~> 3.0)
121
+ childprocess (0.3.5)
122
+ ffi (~> 1.0, >= 1.0.6)
123
+ chunky_png (1.2.6)
124
+ coffee-rails (3.2.2)
125
+ coffee-script (>= 2.2.0)
126
+ railties (~> 3.2.0)
127
+ coffee-script (2.2.0)
128
+ coffee-script-source
129
+ execjs
130
+ coffee-script-source (1.3.3)
131
+ columnize (0.3.6)
132
+ compass (0.12.2)
133
+ chunky_png (~> 1.2)
134
+ fssm (>= 0.2.7)
135
+ sass (~> 3.1)
136
+ compass-960-plugin (0.10.4)
137
+ compass (>= 0.10.0)
138
+ compass-rails (1.0.3)
139
+ compass (>= 0.12.2, < 0.14)
140
+ crack (0.1.8)
141
+ curb (0.7.18)
142
+ daemons (1.1.8)
143
+ dalli (2.1.0)
40
144
  database_cleaner (0.8.0)
145
+ devise (1.5.3)
146
+ bcrypt-ruby (~> 3.0)
147
+ orm_adapter (~> 0.0.3)
148
+ warden (~> 1.1)
41
149
  diff-lcs (1.1.3)
42
- erubis (2.7.0)
43
- factory_girl (3.6.1)
150
+ enumerate_it (0.7.16)
44
151
  activesupport (>= 3.0.0)
45
- factory_girl_rails (3.6.0)
46
- factory_girl (~> 3.6.0)
152
+ erubis (2.7.0)
153
+ eventmachine (0.12.10)
154
+ excon (0.6.6)
155
+ execjs (1.4.0)
156
+ multi_json (~> 1.0)
157
+ factory_girl (2.6.4)
158
+ activesupport (>= 2.3.9)
159
+ factory_girl_rails (1.7.0)
160
+ factory_girl (~> 2.6.0)
47
161
  railties (>= 3.0.0)
162
+ faraday (0.8.1)
163
+ multipart-post (~> 1.1)
164
+ fastercsv (1.5.5)
165
+ feedzirra (0.0.31)
166
+ activesupport (>= 3.0.8)
167
+ builder (~> 3.0.0)
168
+ curb (~> 0.7.15)
169
+ i18n (>= 0.5.0)
170
+ loofah (~> 1.0.0)
171
+ nokogiri (~> 1.4.4)
172
+ rake (>= 0.9.2)
173
+ rdoc (~> 3.8)
174
+ sax-machine (~> 0.0.20)
175
+ ffi (1.1.4)
176
+ fog (0.9.0)
177
+ builder
178
+ excon (~> 0.6.1)
179
+ formatador (>= 0.1.3)
180
+ json
181
+ mime-types
182
+ net-scp (>= 1.0.4)
183
+ net-ssh (>= 2.1.4)
184
+ nokogiri (>= 1.4.4)
185
+ ruby-hmac
186
+ foreigner (1.2.0)
187
+ activerecord (>= 3.0.0)
188
+ formatador (0.2.3)
189
+ formtastic (2.2.1)
190
+ actionpack (>= 3.0)
191
+ fssm (0.2.9)
192
+ haml (3.1.6)
193
+ has_scope (0.5.1)
194
+ has_vimeo_video (0.0.5)
195
+ supermodel
196
+ vimeo
197
+ hashie (1.2.0)
48
198
  hike (1.2.1)
49
- httparty (0.8.3)
50
- multi_json (~> 1.0)
51
- multi_xml
199
+ http_accept_language (1.0.2)
200
+ httparty (0.6.1)
201
+ crack (= 0.1.8)
202
+ httpauth (0.1)
203
+ httpclient (2.2.5)
52
204
  i18n (0.6.0)
205
+ inherited_resources (1.3.1)
206
+ has_scope (~> 0.5.0)
207
+ responders (~> 0.6)
53
208
  journey (1.0.4)
54
- json (1.7.4)
209
+ jquery-rails (2.0.2)
210
+ railties (>= 3.2.0, < 5.0)
211
+ thor (~> 0.14)
212
+ json (1.7.3)
213
+ json_pure (1.7.4)
214
+ jwt (0.1.5)
215
+ multi_json (>= 1.0)
216
+ kaminari (0.13.0)
217
+ actionpack (>= 3.0.0)
218
+ activesupport (>= 3.0.0)
219
+ railties (>= 3.0.0)
220
+ launchy (2.1.2)
221
+ addressable (~> 2.3)
222
+ libwebsocket (0.1.5)
223
+ addressable
224
+ linecache19 (0.5.12)
225
+ ruby_core_source (>= 0.1.4)
226
+ loofah (1.0.0)
227
+ nokogiri (>= 1.3.3)
55
228
  mail (2.4.4)
56
229
  i18n (>= 0.4.0)
57
230
  mime-types (~> 1.16)
58
231
  treetop (~> 1.4.8)
232
+ mailcatcher (0.5.8)
233
+ activesupport (~> 3.0)
234
+ eventmachine (~> 0.12)
235
+ haml (~> 3.1)
236
+ mail (~> 2.3)
237
+ sinatra (~> 1.2)
238
+ skinny (~> 0.2, >= 0.2.1)
239
+ sqlite3 (~> 1.3)
240
+ thin (~> 1.2)
241
+ mailchimp (0.0.7.alpha)
242
+ httparty
243
+ maxim-sexy_pg_constraints (0.1.3)
244
+ meta_search (1.1.3)
245
+ actionpack (~> 3.1)
246
+ activerecord (~> 3.1)
247
+ activesupport (~> 3.1)
248
+ polyamorous (~> 0.5.0)
249
+ metaclass (0.0.1)
59
250
  mime-types (1.19)
60
- moip (1.0.4)
251
+ mocha (0.10.4)
252
+ metaclass (~> 0.0.1)
253
+ moip_catarse (1.0.6)
61
254
  activesupport (>= 2.3.2)
62
- httparty (~> 0.8.1)
63
- moip
64
- nokogiri (~> 1.4.3)
255
+ httparty (~> 0.6.1)
256
+ nokogiri (~> 1.4.2)
65
257
  multi_json (1.3.6)
66
- multi_xml (0.5.1)
258
+ multipart-post (1.1.5)
259
+ net-scp (1.0.4)
260
+ net-ssh (>= 1.99.1)
261
+ net-ssh (2.5.2)
67
262
  nokogiri (1.4.7)
263
+ oauth (0.4.6)
264
+ oauth2 (0.8.0)
265
+ faraday (~> 0.8)
266
+ httpauth (~> 0.1)
267
+ jwt (~> 0.1.4)
268
+ multi_json (~> 1.0)
269
+ rack (~> 1.2)
270
+ omniauth (1.1.0)
271
+ hashie (~> 1.2)
272
+ rack
273
+ omniauth-facebook (1.2.0)
274
+ omniauth-oauth2 (~> 1.0.0)
275
+ omniauth-github (1.0.1)
276
+ omniauth (~> 1.0)
277
+ omniauth-oauth2 (~> 1.0)
278
+ omniauth-linkedin (0.0.6)
279
+ omniauth-oauth (~> 1.0.0)
280
+ omniauth-oauth (1.0.1)
281
+ oauth
282
+ omniauth (~> 1.0)
283
+ omniauth-oauth2 (1.0.3)
284
+ oauth2 (~> 0.8.0)
285
+ omniauth (~> 1.0)
286
+ omniauth-openid (1.0.1)
287
+ omniauth (~> 1.0)
288
+ rack-openid (~> 1.3.1)
289
+ omniauth-twitter (0.0.12)
290
+ multi_json (~> 1.3)
291
+ omniauth-oauth (~> 1.0)
292
+ omniauth-yahoo (0.0.4)
293
+ omniauth-oauth (~> 1.0)
294
+ on_the_spot (1.0.1)
295
+ json_pure (>= 1.4.6)
296
+ orm_adapter (0.0.7)
297
+ paypal-express (0.5.0)
298
+ activesupport (>= 2.3)
299
+ attr_required (>= 0.0.5)
300
+ i18n
301
+ restclient_with_cert
302
+ pg (0.14.0)
303
+ polyamorous (0.5.0)
304
+ activerecord (~> 3.0)
68
305
  polyglot (0.3.3)
69
306
  rack (1.4.1)
70
307
  rack-cache (1.2)
71
308
  rack (>= 0.4)
309
+ rack-openid (1.3.1)
310
+ rack (>= 1.1.0)
311
+ ruby-openid (>= 2.1.8)
312
+ rack-protection (1.2.0)
313
+ rack
72
314
  rack-ssl (1.3.2)
73
315
  rack
74
316
  rack-test (0.6.1)
75
317
  rack (>= 1.0)
76
- rails (3.2.7)
77
- actionmailer (= 3.2.7)
78
- actionpack (= 3.2.7)
79
- activerecord (= 3.2.7)
80
- activeresource (= 3.2.7)
81
- activesupport (= 3.2.7)
318
+ rack-timeout (0.0.3)
319
+ rails (3.2.6)
320
+ actionmailer (= 3.2.6)
321
+ actionpack (= 3.2.6)
322
+ activerecord (= 3.2.6)
323
+ activeresource (= 3.2.6)
324
+ activesupport (= 3.2.6)
82
325
  bundler (~> 1.0)
83
- railties (= 3.2.7)
84
- railties (3.2.7)
85
- actionpack (= 3.2.7)
86
- activesupport (= 3.2.7)
326
+ railties (= 3.2.6)
327
+ rails_autolink (1.0.9)
328
+ rails (~> 3.1)
329
+ railties (3.2.6)
330
+ actionpack (= 3.2.6)
331
+ activesupport (= 3.2.6)
87
332
  rack-ssl (~> 1.3.2)
88
333
  rake (>= 0.8.7)
89
334
  rdoc (~> 3.4)
90
335
  thor (>= 0.14.6, < 2.0)
91
336
  rake (0.9.2.2)
337
+ rcov (0.9.11)
92
338
  rdoc (3.12)
93
339
  json (~> 1.4)
94
- rspec (2.11.0)
95
- rspec-core (~> 2.11.0)
96
- rspec-expectations (~> 2.11.0)
97
- rspec-mocks (~> 2.11.0)
98
- rspec-core (2.11.1)
99
- rspec-expectations (2.11.2)
340
+ redcarpet (2.1.1)
341
+ responders (0.9.2)
342
+ railties (~> 3.1)
343
+ rest-client (1.6.7)
344
+ mime-types (>= 1.16)
345
+ restclient_with_cert (0.0.8)
346
+ rest-client (>= 1.6)
347
+ rinku (1.7.0)
348
+ rmagick (2.13.1)
349
+ routing-filter (0.3.1)
350
+ actionpack
351
+ rspec (2.10.0)
352
+ rspec-core (~> 2.10.0)
353
+ rspec-expectations (~> 2.10.0)
354
+ rspec-mocks (~> 2.10.0)
355
+ rspec-core (2.10.1)
356
+ rspec-expectations (2.10.0)
100
357
  diff-lcs (~> 1.1.3)
101
- rspec-mocks (2.11.1)
102
- rspec-rails (2.11.0)
358
+ rspec-mocks (2.10.1)
359
+ rspec-rails (2.10.1)
103
360
  actionpack (>= 3.0)
104
361
  activesupport (>= 3.0)
105
362
  railties (>= 3.0)
106
- rspec (~> 2.11.0)
363
+ rspec (~> 2.10.0)
364
+ ruby-debug-base19 (0.11.25)
365
+ columnize (>= 0.3.1)
366
+ linecache19 (>= 0.5.11)
367
+ ruby_core_source (>= 0.1.4)
368
+ ruby-debug19 (0.11.6)
369
+ columnize (>= 0.3.1)
370
+ linecache19 (>= 0.5.11)
371
+ ruby-debug-base19 (>= 0.11.19)
372
+ ruby-hmac (0.4.0)
373
+ ruby-openid (2.2.0)
374
+ ruby_core_source (0.1.5)
375
+ archive-tar-minitar (>= 0.5.2)
376
+ rubyzip (0.9.9)
377
+ sass (3.1.20)
378
+ sass-rails (3.2.5)
379
+ railties (~> 3.2.0)
380
+ sass (>= 3.1.10)
381
+ tilt (~> 1.3)
382
+ sax-machine (0.0.20)
383
+ nokogiri (> 0.0.0)
384
+ selenium-webdriver (2.25.0)
385
+ childprocess (>= 0.2.5)
386
+ libwebsocket (~> 0.1.3)
387
+ multi_json (~> 1.0)
388
+ rubyzip
389
+ shoulda (3.1.1)
390
+ shoulda-context (~> 1.0)
391
+ shoulda-matchers (~> 1.2)
392
+ shoulda-context (1.0.0)
393
+ shoulda-matchers (1.2.0)
394
+ activesupport (>= 3.0.0)
395
+ sinatra (1.3.2)
396
+ rack (~> 1.3, >= 1.3.6)
397
+ rack-protection (~> 1.2)
398
+ tilt (~> 1.3, >= 1.3.3)
399
+ skinny (0.2.1)
400
+ eventmachine (~> 0.12)
401
+ thin (~> 1.2)
402
+ slim (1.2.2)
403
+ temple (~> 0.4.0)
404
+ tilt (~> 1.3.3)
405
+ slim-rails (1.0.3)
406
+ actionpack (~> 3.0)
407
+ activesupport (~> 3.0)
408
+ railties (~> 3.0)
409
+ slim (~> 1.0)
410
+ spectator-validates_email (0.1.1)
411
+ actionpack (>= 3.0.0)
412
+ activemodel (>= 3.0.0)
107
413
  sprockets (2.1.3)
108
414
  hike (~> 1.2)
109
415
  rack (~> 1.0)
110
416
  tilt (~> 1.1, != 1.3.0)
417
+ sqlite3 (1.3.6)
418
+ steak (1.1.0)
419
+ rspec (>= 1.3)
420
+ supermodel (0.1.4)
421
+ activemodel (>= 3.0.0.beta)
422
+ tag_helper (0.0.3)
423
+ temple (0.4.0)
424
+ thin (1.4.1)
425
+ daemons (>= 1.0.9)
426
+ eventmachine (>= 0.12.6)
427
+ rack (>= 1.0.0)
111
428
  thor (0.15.4)
112
429
  tilt (1.3.3)
113
430
  treetop (1.4.10)
114
431
  polyglot
115
432
  polyglot (>= 0.3.1)
433
+ trollop (1.16.2)
434
+ tumblr-api (0.1.4)
435
+ activesupport
436
+ httparty
116
437
  tzinfo (0.3.33)
438
+ uglifier (1.2.7)
439
+ execjs (>= 0.3.0)
440
+ multi_json (~> 1.3)
441
+ unicode (0.4.2)
442
+ vimeo (1.5.3)
443
+ httparty (>= 0.4.5)
444
+ httpclient (>= 2.1.5.2)
445
+ json (>= 1.1.9)
446
+ multipart-post (>= 1.0.1)
447
+ oauth (>= 0.4.3)
448
+ warden (1.2.1)
449
+ rack (>= 1.0)
450
+ web_translate_it (2.0.4)
451
+ json
452
+ multipart-post (~> 1.1.3)
453
+ trollop (~> 1.16.2)
454
+ weekdays (1.0.2)
455
+ wirble (0.1.3)
456
+ xpath (0.1.4)
457
+ nokogiri (~> 1.3)
117
458
 
118
459
  PLATFORMS
119
460
  ruby
120
461
 
121
462
  DEPENDENCIES
463
+ RedCloth
464
+ activeadmin!
465
+ activemerchant (= 1.17.0)
466
+ activerecord-postgresql-adapter
467
+ airbrake
468
+ annotate
469
+ auto_html (= 1.4.2)
470
+ bourbon
471
+ brcep
472
+ cancan
473
+ capybara (>= 1.0.1)
474
+ carrierwave (= 0.5.8)
122
475
  catarse_moip!
476
+ catarse_paypal_express!
477
+ coffee-rails (~> 3.2.2)
478
+ compass-960-plugin (~> 0.10.4)
479
+ compass-rails (~> 1.0.1)
480
+ dalli
123
481
  database_cleaner
124
- factory_girl_rails
125
- rspec-rails
482
+ devise (= 1.5.3)
483
+ enumerate_it
484
+ factory_girl_rails (= 1.7.0)
485
+ feedzirra
486
+ fog
487
+ foreigner
488
+ formtastic
489
+ has_vimeo_video (>= 0.0.4)
490
+ http_accept_language
491
+ httparty (~> 0.6.1)
492
+ httpclient (= 2.2.5)
493
+ inherited_resources (= 1.3.1)
494
+ jquery-rails
495
+ kaminari
496
+ launchy
497
+ mailcatcher
498
+ mailchimp
499
+ maxim-sexy_pg_constraints
500
+ meta_search (= 1.1.3)
501
+ mocha (= 0.10.4)
502
+ moip!
503
+ omniauth (~> 1.1.0)
504
+ omniauth-facebook (~> 1.2.0)
505
+ omniauth-github (~> 1.0.1)
506
+ omniauth-linkedin (~> 0.0.6)
507
+ omniauth-openid (~> 1.0.1)
508
+ omniauth-twitter (~> 0.0.12)
509
+ omniauth-yahoo (~> 0.0.4)
510
+ on_the_spot
511
+ paypal-express
512
+ pg
513
+ rack-timeout
514
+ rails (= 3.2.6)
515
+ rails_autolink (~> 1.0.7)
516
+ rake (= 0.9.2.2)
517
+ rcov (= 0.9.11)
518
+ rmagick
519
+ routing-filter
520
+ rspec-rails (~> 2.10.0)
521
+ ruby-debug19
522
+ sass-rails (~> 3.2.5)
523
+ selenium-webdriver (~> 2.25.0)
524
+ shoulda
525
+ slim
526
+ slim-rails
527
+ spectator-validates_email
528
+ steak (~> 1.1.0)
529
+ thin
530
+ tumblr-api
531
+ uglifier (>= 1.0.3)
532
+ unicode
533
+ validation_reflection!
534
+ web_translate_it
535
+ weekdays
536
+ wirble
@@ -1,19 +1,19 @@
1
1
  module CatarseMoip::Payment
2
2
  class MoipController < ApplicationController
3
- def checkout
3
+ def pay
4
4
  @backer = current_user.backs.not_confirmed.find params[:id]
5
- #begin
5
+ begin
6
6
  response = MoIP::Client.checkout(payment_info)
7
7
  @backer.update_attribute :payment_token, response["Token"]
8
8
  session[:_payment_token] = response["Token"]
9
9
 
10
10
  redirect_to MoIP::Client.moip_page(response["Token"])
11
- #rescue Exception => e
12
- #Airbrake.notify({ :error_class => "Checkout MOIP Error", :error_message => "MOIP Error: #{e.inspect}", :parameters => params}) rescue nil
13
- #Rails.logger.info "-----> #{e.inspect}"
14
- #flash[:failure] = t('projects.backers.checkout.moip_error')
15
- #return redirect_to main_app.new_project_backer_path(@backer.project)
16
- #end
11
+ rescue Exception => e
12
+ Airbrake.notify({ :error_class => "Checkout MOIP Error", :error_message => "MOIP Error: #{e.inspect}", :parameters => params}) rescue nil
13
+ Rails.logger.info "-----> #{e.inspect}"
14
+ flash[:failure] = t('projects.backers.checkout.moip_error')
15
+ return redirect_to main_app.new_project_backer_path(@backer.project)
16
+ end
17
17
  end
18
18
 
19
19
  protected
@@ -0,0 +1,7 @@
1
+ en:
2
+ projects:
3
+ backers:
4
+ checkout:
5
+ moip_error: "Ooops. There was an error while sending your payment to MoIP. Please try again."
6
+ success: "Your back was successfully made. Thanks a lot!"
7
+
@@ -0,0 +1,6 @@
1
+ en:
2
+ projects:
3
+ backers:
4
+ checkout:
5
+ moip_error: "Ooops. Ocorreu um erro ao enviar seu pagamento para o MoIP. Por favor, tente novamente."
6
+ success: "Seu apoio foi realizado com sucesso. Muito obrigado!"
data/config/routes.rb CHANGED
@@ -2,7 +2,7 @@ CatarseMoip::Engine.routes.draw do
2
2
  namespace :payment do
3
3
  resources :moip, only: [] do
4
4
  member do
5
- match :checkout
5
+ match :pay
6
6
  end
7
7
  end
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module CatarseMoip
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -15,7 +15,7 @@ describe CatarseMoip::Payment::MoipController do
15
15
  context 'found some errors' do
16
16
  it 'should raise a error when current_user is not present' do
17
17
  lambda {
18
- post :checkout, { id: 10, locale: 'en', use_route: 'catarse_moip' }
18
+ post :pay, { id: 10, locale: 'en', use_route: 'catarse_moip' }
19
19
  }.should raise_exception
20
20
  end
21
21
 
@@ -24,7 +24,7 @@ describe CatarseMoip::Payment::MoipController do
24
24
  backer = Factory(:backer, confirmed: true, user: current_user)
25
25
 
26
26
  lambda {
27
- post :checkout, { id: backer.id, locale: 'en', use_route: 'catarse_moip' }
27
+ post :pay, { id: backer.id, locale: 'en', use_route: 'catarse_moip' }
28
28
  }.should raise_exception ActiveRecord::RecordNotFound
29
29
  end
30
30
 
@@ -33,7 +33,7 @@ describe CatarseMoip::Payment::MoipController do
33
33
  backer = Factory(:backer)
34
34
 
35
35
  lambda {
36
- post :checkout, { id: backer.id, locale: 'en', use_route: 'catarse_moip' }
36
+ post :pay, { id: backer.id, locale: 'en', use_route: 'catarse_moip' }
37
37
  }.should raise_exception ActiveRecord::RecordNotFound
38
38
  end
39
39
  end
@@ -48,7 +48,7 @@ describe CatarseMoip::Payment::MoipController do
48
48
  sign_in(current_user)
49
49
  backer = Factory(:backer, confirmed: false, user: current_user)
50
50
 
51
- post :checkout, { id: backer.id, locale: 'en', use_route: 'catarse_moip' }
51
+ post :pay, { id: backer.id, locale: 'en', use_route: 'catarse_moip' }
52
52
  backer.reload
53
53
 
54
54
  backer.payment_token.should be_nil
@@ -66,7 +66,7 @@ describe CatarseMoip::Payment::MoipController do
66
66
  sign_in(current_user)
67
67
  backer = Factory(:backer, confirmed: false, user: current_user)
68
68
 
69
- post :checkout, { id: backer.id, locale: 'en', use_route: 'catarse_moip' }
69
+ post :pay, { id: backer.id, locale: 'en', use_route: 'catarse_moip' }
70
70
  backer.reload
71
71
 
72
72
  backer.payment_token.should == 'ABCD'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catarse_moip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
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: 2012-08-03 00:00:00.000000000 Z
12
+ date: 2012-08-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -108,6 +108,8 @@ files:
108
108
  - app/controllers/catarse_moip/payment/moip_controller.rb
109
109
  - catarse_moip.gemspec
110
110
  - config/initializers/moip.rb
111
+ - config/locales/en.yml
112
+ - config/locales/pt.yml
111
113
  - config/routes.rb
112
114
  - lib/catarse_moip.rb
113
115
  - lib/catarse_moip/engine.rb