catarse_moip 2.3.2 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 142863c200d1d3be6c1020d2a52c373ad2c03148
4
- data.tar.gz: d71309cbc85db385fcb09b242d728068bb83b700
3
+ metadata.gz: cb1876ecc2bd7b8805a62f4be47396f67b10e931
4
+ data.tar.gz: 2f5ffd62a252d33250597c5391ecf9a7fc40f90b
5
5
  SHA512:
6
- metadata.gz: a17421ace9c3d857a722c838c556ead06c2f8ed250fd2c37b5505f827c44b8d7741aacde3a119d4c2ff160b413748212221a17509de4e08643ceddf5fc19648e
7
- data.tar.gz: 4c52820066263aae9d4f92ea04d6a55ad439787ac66b3e2e2d6e1f370e58e1f7decd2f4229e2cc3c35b0dea27acbbbf1065e9a029a603096d3eec4744641fa2f
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.2)
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.2)
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({name: 'moip', review_path: ->(contribution){ CatarseMoip::Engine.routes.url_helpers.review_moip_path(contribution) }, locale: 'pt'})
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
@@ -1,3 +1,3 @@
1
1
  module CatarseMoip
2
- VERSION = "2.3.2"
2
+ VERSION = "2.3.3"
3
3
  end
data/lib/catarse_moip.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "catarse_moip/engine"
2
+ require "catarse_moip/payment_engine"
2
3
  #require "moip"
3
4
 
4
5
  module CatarseMoip
@@ -1,3 +1,5 @@
1
1
  # dummy class to be stubbed should use interface defined in Catarse
2
2
  class PaymentEngines
3
+ class Interface
4
+ end
3
5
  end
@@ -13,7 +13,7 @@ development:
13
13
  encoding: utf-8
14
14
  database: catarse_development
15
15
  pool: 5
16
- username: catarse
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: catarse
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: catarse
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.2
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-02-28 00:00:00.000000000 Z
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