catarse_moip 2.3.2 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/config/initializers/register.rb +1 -1
- data/lib/catarse_moip/payment_engine.rb +21 -0
- data/lib/catarse_moip/version.rb +1 -1
- data/lib/catarse_moip.rb +1 -0
- data/spec/support/payment_engines.rb +2 -0
- data/test/dummy/config/database.yml +4 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb1876ecc2bd7b8805a62f4be47396f67b10e931
|
4
|
+
data.tar.gz: 2f5ffd62a252d33250597c5391ecf9a7fc40f90b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bd5bd33687a318b08ffe2ebffbf429c4fd4c78e4bae14804babef9f72d2de45262e77ea308c90e02908da2276002bd83c6b99dfc80f04c1d97e16a29666b645
|
7
|
+
data.tar.gz: 98993d82cdd35ef14918fea1d69fb0e755c6c0044e35acea844c9ce31514ec2380df6df15c5516f3a72ad7a879ec47d4c3771aad374f9c3fea36d74e3e91f102
|
data/Gemfile.lock
CHANGED
@@ -10,7 +10,7 @@ GIT
|
|
10
10
|
PATH
|
11
11
|
remote: .
|
12
12
|
specs:
|
13
|
-
catarse_moip (2.3.
|
13
|
+
catarse_moip (2.3.3)
|
14
14
|
enumerate_it
|
15
15
|
libxml-ruby (~> 2.6.0)
|
16
16
|
rails (~> 4.0)
|
@@ -42,7 +42,7 @@ GEM
|
|
42
42
|
multi_json (~> 1.3)
|
43
43
|
thread_safe (~> 0.1)
|
44
44
|
tzinfo (~> 0.3.37)
|
45
|
-
arel (4.0.
|
45
|
+
arel (4.0.1)
|
46
46
|
atomic (1.1.14)
|
47
47
|
builder (3.1.4)
|
48
48
|
crack (0.1.8)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
begin
|
2
|
-
PaymentEngines.register(
|
2
|
+
PaymentEngines.register(CatarseMoip::PaymentEngine.new)
|
3
3
|
rescue Exception => e
|
4
4
|
puts "Error while registering payment engine: #{e}"
|
5
5
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
begin
|
2
|
+
module CatarseMoip
|
3
|
+
class PaymentEngine < PaymentEngines::Interface
|
4
|
+
|
5
|
+
def name
|
6
|
+
'MoIP'
|
7
|
+
end
|
8
|
+
|
9
|
+
def review_path contribution
|
10
|
+
CatarseMoip::Engine.routes.url_helpers.review_moip_path(contribution)
|
11
|
+
end
|
12
|
+
|
13
|
+
def locale
|
14
|
+
'pt'
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
19
|
+
rescue Exception => e
|
20
|
+
puts "Error while use payment engine interface: #{e}"
|
21
|
+
end
|
data/lib/catarse_moip/version.rb
CHANGED
data/lib/catarse_moip.rb
CHANGED
@@ -13,7 +13,7 @@ development:
|
|
13
13
|
encoding: utf-8
|
14
14
|
database: catarse_development
|
15
15
|
pool: 5
|
16
|
-
username:
|
16
|
+
username: ton
|
17
17
|
|
18
18
|
|
19
19
|
# Connect on a TCP socket. Omitted by default since the client uses a
|
@@ -35,11 +35,12 @@ development:
|
|
35
35
|
# re-generated from your development database when you run "rake".
|
36
36
|
# Do not set this db to the same as development or production.
|
37
37
|
test: &test
|
38
|
+
host: localhost
|
38
39
|
adapter: postgresql
|
39
40
|
encoding: utf-8
|
40
41
|
database: catarse_test
|
41
42
|
pool: 5
|
42
|
-
username:
|
43
|
+
username: ton
|
43
44
|
|
44
45
|
|
45
46
|
production:
|
@@ -47,4 +48,4 @@ production:
|
|
47
48
|
encoding: utf-8
|
48
49
|
database: catarse_production
|
49
50
|
pool: 5
|
50
|
-
username:
|
51
|
+
username: ton
|
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: 2.3.
|
4
|
+
version: 2.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antônio Roberto Silva
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-03-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -130,6 +130,7 @@ files:
|
|
130
130
|
- config/routes.rb
|
131
131
|
- lib/catarse_moip.rb
|
132
132
|
- lib/catarse_moip/engine.rb
|
133
|
+
- lib/catarse_moip/payment_engine.rb
|
133
134
|
- lib/catarse_moip/version.rb
|
134
135
|
- lib/moip_transparente.rb
|
135
136
|
- lib/moip_transparente/checkout.rb
|