catarse_moip 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -6
  3. data/.rspec +2 -0
  4. data/.travis.yml +17 -0
  5. data/Gemfile +2 -109
  6. data/Gemfile.lock +73 -476
  7. data/README.md +2 -26
  8. data/Rakefile +7 -2
  9. data/app/assets/javascripts/catarse_moip/moip_form.js +80 -0
  10. data/app/assets/javascripts/catarse_moip/payment_account.js +37 -0
  11. data/app/assets/javascripts/catarse_moip/payment_card.js +89 -0
  12. data/app/assets/javascripts/catarse_moip/payment_choice.js +19 -0
  13. data/app/assets/javascripts/catarse_moip/payment_slip.js +35 -0
  14. data/app/assets/javascripts/catarse_moip/user_document.js +111 -0
  15. data/app/assets/javascripts/catarse_moip.js +7 -0
  16. data/app/controllers/catarse_moip/moip_controller.rb +126 -0
  17. data/app/views/catarse_moip/moip/review.html.slim +105 -0
  18. data/catarse_moip.gemspec +5 -5
  19. data/config/initializers/moip.rb +4 -7
  20. data/config/initializers/register.rb +5 -0
  21. data/config/locales/en.yml +2 -0
  22. data/config/locales/pt.yml +19 -0
  23. data/config/routes.rb +9 -5
  24. data/lib/catarse_moip/engine.rb +7 -0
  25. data/lib/catarse_moip/version.rb +1 -1
  26. data/lib/catarse_moip.rb +1 -1
  27. data/lib/moip_transparente/checkout.rb +218 -0
  28. data/lib/moip_transparente/version.rb +3 -0
  29. data/lib/moip_transparente.rb +32 -0
  30. data/spec/controllers/catarse_moip/moip_controller_spec.rb +230 -0
  31. data/spec/fixtures/ipn_data.txt +1 -0
  32. data/spec/javascripts/moip_form_spec.js +25 -0
  33. data/spec/javascripts/support/app.js +1 -0
  34. data/spec/javascripts/support/backbone.js +1571 -0
  35. data/spec/javascripts/support/jquery.js +8829 -0
  36. data/spec/javascripts/support/skull.js +64 -0
  37. data/spec/javascripts/support/underscore.js +1227 -0
  38. data/spec/spec_helper.rb +2 -23
  39. data/spec/support/payment_engines.rb +3 -0
  40. data/test/dummy/README.rdoc +261 -0
  41. data/test/dummy/Rakefile +7 -0
  42. data/test/dummy/app/assets/javascripts/application.js +15 -0
  43. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  44. data/test/dummy/app/controllers/application_controller.rb +3 -0
  45. data/test/dummy/app/helpers/application_helper.rb +2 -0
  46. data/test/dummy/app/mailers/.gitkeep +0 -0
  47. data/test/dummy/app/models/.gitkeep +0 -0
  48. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  49. data/test/dummy/config/application.rb +59 -0
  50. data/test/dummy/config/boot.rb +10 -0
  51. data/test/dummy/config/database.yml +50 -0
  52. data/test/dummy/config/environment.rb +5 -0
  53. data/test/dummy/config/environments/development.rb +37 -0
  54. data/test/dummy/config/environments/production.rb +67 -0
  55. data/test/dummy/config/environments/test.rb +37 -0
  56. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  57. data/test/dummy/config/initializers/inflections.rb +15 -0
  58. data/test/dummy/config/initializers/mime_types.rb +5 -0
  59. data/test/dummy/config/initializers/secret_token.rb +7 -0
  60. data/test/dummy/config/initializers/session_store.rb +8 -0
  61. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  62. data/test/dummy/config/locales/en.yml +5 -0
  63. data/test/dummy/config/routes.rb +4 -0
  64. data/test/dummy/config.ru +4 -0
  65. data/test/dummy/lib/assets/.gitkeep +0 -0
  66. data/test/dummy/log/.gitkeep +0 -0
  67. data/test/dummy/public/404.html +26 -0
  68. data/test/dummy/public/422.html +26 -0
  69. data/test/dummy/public/500.html +25 -0
  70. data/test/dummy/public/favicon.ico +0 -0
  71. data/test/dummy/script/rails +6 -0
  72. metadata +120 -35
  73. data/.gitmodules +0 -3
  74. data/app/controllers/catarse_moip/payment/moip_controller.rb +0 -49
  75. data/spec/controllers/catarse_moip/payment/moip_controller_spec.rb +0 -81
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 88b8d8dae249e0d12381233dd639979d77b5e526
4
+ data.tar.gz: 476d399ff6efd4bd1e8d9c7e2bf44dcda5ab508a
5
+ SHA512:
6
+ metadata.gz: 73207b2a7ce381f12a5d8a805321da28c3dc36af6486d2881b5cb5e2aebb19541db0f5083bf53140a010280078d80f82803d24b804dfd079d6379793f17c4cdb
7
+ data.tar.gz: a1fd2bbc748b47bc57398b733b1c2c21c9d0b861990d2841c82b74b9cc389738de37721e99910d46dc5e18e194211ea4d60b2398ea464feffe3b48e54561627c
data/.gitignore CHANGED
@@ -1,9 +1,4 @@
1
1
  .bundle/
2
- log/*.log
2
+ *.log
3
3
  pkg/
4
- test/dummy/db/*.sqlite3
5
- test/dummy/log/*.log
6
- test/dummy/tmp/
7
- test/dummy/.sass-cache
8
- test/dummy
9
4
  catarse_moip-0.0.2.gem
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --colour
2
+ --format d
data/.travis.yml ADDED
@@ -0,0 +1,17 @@
1
+ rvm:
2
+ - 1.9.3
3
+
4
+ node_js:
5
+ - "0.10"
6
+
7
+ before_script:
8
+ - "psql -c 'create role catarse SUPERUSER LOGIN;' postgres"
9
+ - "psql -c 'create database catarse_test;' -U catarse postgres"
10
+ - "npm install -g jquery jsdom jasmine-node"
11
+
12
+ script:
13
+ - "bundle exec rake"
14
+
15
+ branches:
16
+ only:
17
+ - master
data/Gemfile CHANGED
@@ -1,114 +1,7 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- # Declare your gem's dependencies in catarse_moip.gemspec.
4
- # Bundler will treat runtime dependencies like base dependencies, and
5
- # development dependencies will be added by default to the :development group.
6
3
  gemspec
7
- source 'http://rubygems.org'
8
- source 'http://gems.github.com'
9
4
 
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'
5
+ gem 'moip', git: 'git://github.com/catarse/moip-ruby.git'
57
6
  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
7
+ gem 'pg'