catarse_pagarme 2.8.1 → 2.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 121999520f4acae9f607f2132b8d04aa8d0d8362
4
- data.tar.gz: 07681fe865936ef122f2c04916f723c186810a36
3
+ metadata.gz: 3ea56f054c73ddb41da668e6a32b1f99ca71a613
4
+ data.tar.gz: ec3d39157a2986d30b6de4c5843d5f22e2e845d2
5
5
  SHA512:
6
- metadata.gz: fbb348a14939ca8f3d842b947fdfaf7faf293c495f440de72b5ebb61df102224c62d1d151f2cd51f4dd1ecd8a8383b6291c0e7282357dfa9ec8aaba44791cca9
7
- data.tar.gz: f24efebde327d55eaf7c0d3329116c96a9d6e88c9b30d3bdd32075ea769c86f57516215593c5ab5cf83720638780090fe37b3d6085eafabf8c96e3e00280f5e0
6
+ metadata.gz: c6f8cc928613aef53a6f0cfd12ac802a3692ee6232d46444e56ca85a5da48ff7ee1ddd52b5e5b7cd757f951fdc41e99525f6748d5b7f8702682ebd42155d5d98
7
+ data.tar.gz: 06d3b8a15cc18019b352a0256339ea48de26e369b1d0cd7d8af55cf97d26faa02e866b5e5cf78ba33f16dca84eb3d41041bd08e1dc4c88095ba3724c54a2c8d4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.8.1)
4
+ catarse_pagarme (2.8.2)
5
5
  pagarme (= 1.10.0)
6
6
  rails (~> 4.0)
7
7
  sidekiq
@@ -24,10 +24,9 @@ module CatarsePagarme
24
24
  protected
25
25
 
26
26
  def slip_attributes
27
- expiration_date = (CatarsePagarme.configuration.slip_week_day_interval || 2).weekdays_from_now
28
27
  {
29
28
  payment_method: 'boleto',
30
- boleto_expiration_date: expiration_date,
29
+ boleto_expiration_date: payment.slip_expiration_date,
31
30
  amount: delegator.value_for_transaction,
32
31
  postback_url: ipn_pagarme_index_url(host: CatarsePagarme.configuration.host,
33
32
  subdomain: CatarsePagarme.configuration.subdomain,
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.8.1"
2
+ VERSION = "2.8.2"
3
3
  end
@@ -13,6 +13,10 @@ class Payment < ActiveRecord::Base
13
13
  self.state = 'pending' # mock initial state for here we do not include the stat machine
14
14
  end
15
15
 
16
+ def slip_expiration_date
17
+ 2.weekdays_from_now
18
+ end
19
+
16
20
  def generate_key
17
21
  self.key ||= SecureRandom.uuid
18
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catarse_pagarme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.1
4
+ version: 2.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antônio Roberto Silva
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-11-19 00:00:00.000000000 Z
12
+ date: 2015-11-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails