catarse_dineromail 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +9 -3
- data/Gemfile.lock +28 -3
- data/README.md +4 -0
- data/app/controllers/catarse_dineromail/payment/dineromail_controller.rb +2 -2
- data/lib/catarse_dineromail/version.rb +1 -1
- metadata +1 -1
data/Gemfile
CHANGED
@@ -1,8 +1,14 @@
|
|
1
|
-
source
|
2
|
-
|
1
|
+
source "http://rubygems.org"
|
2
|
+
|
3
|
+
# Declare your gem's dependencies in catarse_dineromail.gemspec.
|
4
|
+
# Bundler will treat runtime dependencies like base dependencies, and
|
5
|
+
# development dependencies will be added by default to the :development group
|
6
|
+
gemspec
|
3
7
|
|
4
8
|
gem 'dinero_mail_checkout', git: "git://github.com/josemarluedke/dinero_mail_checkout.git"
|
5
9
|
gem 'dinero_mail_ipn', git: "git://github.com/josemarluedke/dinero_mail_ipn.git"
|
10
|
+
source 'http://rubygems.org'
|
11
|
+
source 'http://gems.github.com'
|
6
12
|
|
7
13
|
gem 'rails', '3.2.6'
|
8
14
|
gem 'rake', '0.9.2.2'
|
@@ -64,7 +70,7 @@ gem 'web_translate_it'
|
|
64
70
|
gem 'routing-filter' #, :git => 'git://github.com/svenfuchs/routing-filter.git'
|
65
71
|
|
66
72
|
# Administration
|
67
|
-
|
73
|
+
gem 'activeadmin'
|
68
74
|
gem "meta_search", "1.1.3"
|
69
75
|
|
70
76
|
# Payment (moip)
|
data/Gemfile.lock
CHANGED
@@ -6,7 +6,7 @@ GIT
|
|
6
6
|
|
7
7
|
GIT
|
8
8
|
remote: git://github.com/josemarluedke/dinero_mail_ipn.git
|
9
|
-
revision:
|
9
|
+
revision: 6263eabff915e7939a71d4c62c2bafc35cd4be7a
|
10
10
|
specs:
|
11
11
|
dinero_mail_ipn (1.0.2)
|
12
12
|
httparty (~> 0.6.1)
|
@@ -28,7 +28,16 @@ GIT
|
|
28
28
|
httparty (~> 0.6.1)
|
29
29
|
nokogiri (~> 1.4.3)
|
30
30
|
|
31
|
+
PATH
|
32
|
+
remote: .
|
33
|
+
specs:
|
34
|
+
catarse_dineromail (0.1.7)
|
35
|
+
dinero_mail_checkout
|
36
|
+
dinero_mail_ipn
|
37
|
+
rails (~> 3.2.6)
|
38
|
+
|
31
39
|
GEM
|
40
|
+
remote: http://rubygems.org/
|
32
41
|
remote: http://rubygems.org/
|
33
42
|
remote: http://gems.github.com/
|
34
43
|
specs:
|
@@ -46,6 +55,17 @@ GEM
|
|
46
55
|
rack-cache (~> 1.2)
|
47
56
|
rack-test (~> 0.6.1)
|
48
57
|
sprockets (~> 2.1.3)
|
58
|
+
activeadmin (0.4.4)
|
59
|
+
bourbon (>= 1.0.0)
|
60
|
+
devise (>= 1.1.2)
|
61
|
+
fastercsv
|
62
|
+
formtastic (~> 2.1.1)
|
63
|
+
inherited_resources (>= 1.3.1)
|
64
|
+
jquery-rails (>= 1.0.0)
|
65
|
+
kaminari (>= 0.13.0)
|
66
|
+
meta_search (>= 0.9.2)
|
67
|
+
rails (>= 3.0.0)
|
68
|
+
sass (>= 3.1.0)
|
49
69
|
activemerchant (1.17.0)
|
50
70
|
activesupport (>= 2.3.11)
|
51
71
|
braintree (>= 2.0.0)
|
@@ -139,8 +159,10 @@ GEM
|
|
139
159
|
factory_girl_rails (1.7.0)
|
140
160
|
factory_girl (~> 2.6.0)
|
141
161
|
railties (>= 3.0.0)
|
162
|
+
fakeweb (1.3.0)
|
142
163
|
faraday (0.8.1)
|
143
164
|
multipart-post (~> 1.1)
|
165
|
+
fastercsv (1.5.5)
|
144
166
|
feedzirra (0.0.31)
|
145
167
|
activesupport (>= 3.0.8)
|
146
168
|
builder (~> 3.0.0)
|
@@ -165,8 +187,8 @@ GEM
|
|
165
187
|
foreigner (1.2.0)
|
166
188
|
activerecord (>= 3.0.0)
|
167
189
|
formatador (0.2.3)
|
168
|
-
formtastic (2.
|
169
|
-
actionpack (
|
190
|
+
formtastic (2.1.1)
|
191
|
+
actionpack (~> 3.0)
|
170
192
|
fssm (0.2.9)
|
171
193
|
haml (3.1.6)
|
172
194
|
has_scope (0.5.1)
|
@@ -434,6 +456,7 @@ PLATFORMS
|
|
434
456
|
|
435
457
|
DEPENDENCIES
|
436
458
|
RedCloth
|
459
|
+
activeadmin
|
437
460
|
activemerchant (= 1.17.0)
|
438
461
|
activerecord-postgresql-adapter
|
439
462
|
airbrake
|
@@ -444,6 +467,7 @@ DEPENDENCIES
|
|
444
467
|
cancan
|
445
468
|
capybara (>= 1.0.1)
|
446
469
|
carrierwave (= 0.5.8)
|
470
|
+
catarse_dineromail!
|
447
471
|
coffee-rails (~> 3.2.2)
|
448
472
|
compass-960-plugin (~> 0.10.4)
|
449
473
|
compass-rails (~> 1.0.1)
|
@@ -454,6 +478,7 @@ DEPENDENCIES
|
|
454
478
|
dinero_mail_ipn!
|
455
479
|
enumerate_it
|
456
480
|
factory_girl_rails (= 1.7.0)
|
481
|
+
fakeweb
|
457
482
|
feedzirra
|
458
483
|
fog
|
459
484
|
foreigner
|
data/README.md
CHANGED
@@ -50,6 +50,7 @@ And then execute:
|
|
50
50
|
$ bundle
|
51
51
|
|
52
52
|
Replace the content of test/dummy/config/boot.rb by this:
|
53
|
+
|
53
54
|
require 'rubygems'
|
54
55
|
gemfile = File.expand_path('../../../../Gemfile', __FILE__)
|
55
56
|
if File.exist?(gemfile)
|
@@ -57,8 +58,11 @@ Replace the content of test/dummy/config/boot.rb by this:
|
|
57
58
|
require 'bundler'
|
58
59
|
Bundler.setup
|
59
60
|
end
|
61
|
+
YAML::ENGINE.yamler= 'syck' if defined?(YAML::ENGINE)
|
62
|
+
|
60
63
|
$:.unshift File.expand_path('../../../../lib', __FILE__)
|
61
64
|
|
65
|
+
|
62
66
|
## Troubleshooting in development environment
|
63
67
|
|
64
68
|
Remove the admin folder from test/dummy application to prevent a weird active admin bug:
|
@@ -51,14 +51,14 @@ module CatarseDineromail
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def notifications
|
54
|
-
notification =
|
54
|
+
notification = params[:Notificacion]
|
55
55
|
return render(status: 404, nothing: true) if notification.nil?
|
56
56
|
|
57
57
|
xml = Nokogiri::XML(notification)
|
58
58
|
ids = []
|
59
59
|
xml.xpath("//OPERACION//ID").each {|o| ids << o.children.text}
|
60
60
|
|
61
|
-
c = DineroMailIpn::Client.new(account: ::Configuration[:dineromail_merchant], password: ::Configuration[:dineromail_ipn_password], pais: DineroMailCheckout::Configuration.country_name(::Configuration[:dineromail_country_id]))
|
61
|
+
c = DineroMailIpn::Client.new(account: ::Configuration[:dineromail_merchant], password: ::Configuration[:dineromail_ipn_password], pais: DineroMailCheckout::Configuration.country_name(::Configuration[:dineromail_country_id].to_i))
|
62
62
|
reports = c.consulta_transacciones(ids).reports
|
63
63
|
if reports
|
64
64
|
reports.each do |report|
|