spree_zaez_komerci 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.rspec +1 -0
  4. data/.travis.yml +11 -0
  5. data/Gemfile +9 -0
  6. data/Guardfile +90 -0
  7. data/LICENSE +26 -0
  8. data/README.md +52 -0
  9. data/Rakefile +21 -0
  10. data/app/assets/images/rede-credit-cards/rede-dinersclub.png +0 -0
  11. data/app/assets/images/rede-credit-cards/rede-hipercard.png +0 -0
  12. data/app/assets/images/rede-credit-cards/rede-jcb.png +0 -0
  13. data/app/assets/images/rede-credit-cards/rede-mastercard.png +0 -0
  14. data/app/assets/images/rede-credit-cards/rede-visa.png +0 -0
  15. data/app/assets/javascripts/spree/backend/spree_zaez_komerci.js +1 -0
  16. data/app/assets/javascripts/spree/frontend/app/komerci_credit_card.js.coffee +26 -0
  17. data/app/assets/javascripts/spree/frontend/spree_zaez_komerci.js +1 -0
  18. data/app/assets/stylesheets/spree/frontend/spree_zaez_komerci.css +7 -0
  19. data/app/controllers/spree/admin/komerci_settings_controller.rb +20 -0
  20. data/app/models/spree/credit_card_decorator.rb +7 -0
  21. data/app/models/spree/komerci_transaction.rb +8 -0
  22. data/app/models/spree/payment/gateway_options_decorator.rb +14 -0
  23. data/app/models/spree/payment_method/komerci.rb +250 -0
  24. data/app/overrides/spree/admin/shared/sub_menu/_configuration/add_komerci_settings_to_configuration_tab.html.erb.deface +2 -0
  25. data/app/views/spree/admin/komerci_settings/edit.html.erb +67 -0
  26. data/app/views/spree/admin/payments/source_forms/_komerci.html.erb +62 -0
  27. data/app/views/spree/admin/payments/source_views/_komerci.html.erb +33 -0
  28. data/app/views/spree/checkout/payment/_komerci.html.erb +62 -0
  29. data/bin/rails +7 -0
  30. data/config/locales/en.yml +31 -0
  31. data/config/locales/pt-br.yml +32 -0
  32. data/config/routes.rb +5 -0
  33. data/db/migrate/20160630132716_add_portions_to_spree_payments.rb +5 -0
  34. data/db/migrate/20160630161016_create_spree_komerci_transaction.rb +14 -0
  35. data/db/migrate/20160701184408_add_payment_id_to_spree_komerci_transactions.rb +5 -0
  36. data/db/migrate/20160704120859_add_total_to_spree_komerci_transactions.rb +5 -0
  37. data/lib/generators/spree_zaez_komerci/install/install_generator.rb +30 -0
  38. data/lib/spree/komerci_configuration.rb +190 -0
  39. data/lib/spree_zaez_komerci/engine.rb +30 -0
  40. data/lib/spree_zaez_komerci/factories.rb +30 -0
  41. data/lib/spree_zaez_komerci.rb +5 -0
  42. data/spec/features/admin/komerci_actions_spec.rb +80 -0
  43. data/spec/features/admin/komerci_settings_spec.rb +77 -0
  44. data/spec/features/checkout_with_komerci_spec.rb +75 -0
  45. data/spec/fixtures/authorize_error.txt +14 -0
  46. data/spec/fixtures/authorize_success.txt +14 -0
  47. data/spec/fixtures/conf_authorize_error.txt +7 -0
  48. data/spec/fixtures/conf_authorize_success.txt +7 -0
  49. data/spec/fixtures/error.txt +1 -0
  50. data/spec/fixtures/void_error.txt +7 -0
  51. data/spec/fixtures/void_success.txt +7 -0
  52. data/spec/lib/spree/komerci_configuration_spec.rb +82 -0
  53. data/spec/models/spree/payment_method/komerci_spec.rb +206 -0
  54. data/spec/spec_helper.rb +99 -0
  55. data/spec/support/capybara_login.rb +11 -0
  56. data/spec/support/shared_contexts/checkout_setup.rb +9 -0
  57. data/spree_zaez_komerci.gemspec +42 -0
  58. data/vendor/assets/javascripts/jquery.payment.js +612 -0
  59. metadata +423 -0
metadata ADDED
@@ -0,0 +1,423 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spree_zaez_komerci
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.4
5
+ platform: ruby
6
+ authors:
7
+ - Zaez Team
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-08-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: spree_core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.0.4
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.0.4
27
+ - !ruby/object:Gem::Dependency
28
+ name: httparty
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: poltergeist
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.5.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.5.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: capybara
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.4'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.4'
69
+ - !ruby/object:Gem::Dependency
70
+ name: coffee-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: database_cleaner
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: factory_girl
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '4.5'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '4.5'
111
+ - !ruby/object:Gem::Dependency
112
+ name: factory_girl_rails
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: ffaker
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rspec-rails
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '3.1'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '3.1'
153
+ - !ruby/object:Gem::Dependency
154
+ name: sass-rails
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 5.0.0.beta1
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 5.0.0.beta1
167
+ - !ruby/object:Gem::Dependency
168
+ name: selenium-webdriver
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: simplecov
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: sqlite3
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: guard
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: guard-bundler
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: guard-rspec
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: guard-shell
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
265
+ - !ruby/object:Gem::Dependency
266
+ name: http_logger
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ type: :development
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
279
+ - !ruby/object:Gem::Dependency
280
+ name: better_errors
281
+ requirement: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - ">="
284
+ - !ruby/object:Gem::Version
285
+ version: '0'
286
+ type: :development
287
+ prerelease: false
288
+ version_requirements: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - ">="
291
+ - !ruby/object:Gem::Version
292
+ version: '0'
293
+ - !ruby/object:Gem::Dependency
294
+ name: binding_of_caller
295
+ requirement: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - ">="
298
+ - !ruby/object:Gem::Version
299
+ version: '0'
300
+ type: :development
301
+ prerelease: false
302
+ version_requirements: !ruby/object:Gem::Requirement
303
+ requirements:
304
+ - - ">="
305
+ - !ruby/object:Gem::Version
306
+ version: '0'
307
+ - !ruby/object:Gem::Dependency
308
+ name: webmock
309
+ requirement: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - ">="
312
+ - !ruby/object:Gem::Version
313
+ version: '0'
314
+ type: :development
315
+ prerelease: false
316
+ version_requirements: !ruby/object:Gem::Requirement
317
+ requirements:
318
+ - - ">="
319
+ - !ruby/object:Gem::Version
320
+ version: '0'
321
+ description: Adds Komerci as a Payment Method to Spree Commerce
322
+ email: contato@zaez.net
323
+ executables: []
324
+ extensions: []
325
+ extra_rdoc_files: []
326
+ files:
327
+ - ".gitignore"
328
+ - ".rspec"
329
+ - ".travis.yml"
330
+ - Gemfile
331
+ - Guardfile
332
+ - LICENSE
333
+ - README.md
334
+ - Rakefile
335
+ - app/assets/images/rede-credit-cards/rede-dinersclub.png
336
+ - app/assets/images/rede-credit-cards/rede-hipercard.png
337
+ - app/assets/images/rede-credit-cards/rede-jcb.png
338
+ - app/assets/images/rede-credit-cards/rede-mastercard.png
339
+ - app/assets/images/rede-credit-cards/rede-visa.png
340
+ - app/assets/javascripts/spree/backend/spree_zaez_komerci.js
341
+ - app/assets/javascripts/spree/frontend/app/komerci_credit_card.js.coffee
342
+ - app/assets/javascripts/spree/frontend/spree_zaez_komerci.js
343
+ - app/assets/stylesheets/spree/frontend/spree_zaez_komerci.css
344
+ - app/controllers/spree/admin/komerci_settings_controller.rb
345
+ - app/models/spree/credit_card_decorator.rb
346
+ - app/models/spree/komerci_transaction.rb
347
+ - app/models/spree/payment/gateway_options_decorator.rb
348
+ - app/models/spree/payment_method/komerci.rb
349
+ - app/overrides/spree/admin/shared/sub_menu/_configuration/add_komerci_settings_to_configuration_tab.html.erb.deface
350
+ - app/views/spree/admin/komerci_settings/edit.html.erb
351
+ - app/views/spree/admin/payments/source_forms/_komerci.html.erb
352
+ - app/views/spree/admin/payments/source_views/_komerci.html.erb
353
+ - app/views/spree/checkout/payment/_komerci.html.erb
354
+ - bin/rails
355
+ - config/locales/en.yml
356
+ - config/locales/pt-br.yml
357
+ - config/routes.rb
358
+ - db/migrate/20160630132716_add_portions_to_spree_payments.rb
359
+ - db/migrate/20160630161016_create_spree_komerci_transaction.rb
360
+ - db/migrate/20160701184408_add_payment_id_to_spree_komerci_transactions.rb
361
+ - db/migrate/20160704120859_add_total_to_spree_komerci_transactions.rb
362
+ - lib/generators/spree_zaez_komerci/install/install_generator.rb
363
+ - lib/spree/komerci_configuration.rb
364
+ - lib/spree_zaez_komerci.rb
365
+ - lib/spree_zaez_komerci/engine.rb
366
+ - lib/spree_zaez_komerci/factories.rb
367
+ - spec/features/admin/komerci_actions_spec.rb
368
+ - spec/features/admin/komerci_settings_spec.rb
369
+ - spec/features/checkout_with_komerci_spec.rb
370
+ - spec/fixtures/authorize_error.txt
371
+ - spec/fixtures/authorize_success.txt
372
+ - spec/fixtures/conf_authorize_error.txt
373
+ - spec/fixtures/conf_authorize_success.txt
374
+ - spec/fixtures/error.txt
375
+ - spec/fixtures/void_error.txt
376
+ - spec/fixtures/void_success.txt
377
+ - spec/lib/spree/komerci_configuration_spec.rb
378
+ - spec/models/spree/payment_method/komerci_spec.rb
379
+ - spec/spec_helper.rb
380
+ - spec/support/capybara_login.rb
381
+ - spec/support/shared_contexts/checkout_setup.rb
382
+ - spree_zaez_komerci.gemspec
383
+ - vendor/assets/javascripts/jquery.payment.js
384
+ homepage: http://www.spreecommerce.com
385
+ licenses: []
386
+ metadata: {}
387
+ post_install_message:
388
+ rdoc_options: []
389
+ require_paths:
390
+ - lib
391
+ required_ruby_version: !ruby/object:Gem::Requirement
392
+ requirements:
393
+ - - ">="
394
+ - !ruby/object:Gem::Version
395
+ version: 2.0.0
396
+ required_rubygems_version: !ruby/object:Gem::Requirement
397
+ requirements:
398
+ - - ">="
399
+ - !ruby/object:Gem::Version
400
+ version: '0'
401
+ requirements:
402
+ - none
403
+ rubyforge_project:
404
+ rubygems_version: 2.4.5.1
405
+ signing_key:
406
+ specification_version: 4
407
+ summary: Adds Komerci as a Payment Method to Spree Commerce
408
+ test_files:
409
+ - spec/features/admin/komerci_actions_spec.rb
410
+ - spec/features/admin/komerci_settings_spec.rb
411
+ - spec/features/checkout_with_komerci_spec.rb
412
+ - spec/fixtures/authorize_error.txt
413
+ - spec/fixtures/authorize_success.txt
414
+ - spec/fixtures/conf_authorize_error.txt
415
+ - spec/fixtures/conf_authorize_success.txt
416
+ - spec/fixtures/error.txt
417
+ - spec/fixtures/void_error.txt
418
+ - spec/fixtures/void_success.txt
419
+ - spec/lib/spree/komerci_configuration_spec.rb
420
+ - spec/models/spree/payment_method/komerci_spec.rb
421
+ - spec/spec_helper.rb
422
+ - spec/support/capybara_login.rb
423
+ - spec/support/shared_contexts/checkout_setup.rb