catarse_moip 1.0.8 → 1.0.9

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: 38c0d176ff9755f2c79b8472c7d5d57ffe491db3
4
- data.tar.gz: 9f444b18ac44a26125af2a37d5371c95deb9e30b
3
+ metadata.gz: 3192db8fdc1dc785ba708c1c0ecb1e083310dd76
4
+ data.tar.gz: 3219cc44b27bc5c88674aeb6a179f93915f529c9
5
5
  SHA512:
6
- metadata.gz: 9ce8b0a39d1e76268d6bede05238ff01160e09807cb3e7ed072ed9895c87c1ea8859f3dd63a0adce3c9555f1d8b3a25a92a834adba3f5b05f0c6cdbbdcfc6981
7
- data.tar.gz: 269a733ff5fea482ef79ac5b782c0f8d79ac78b8ed18d248eaec17e897975e208081c550cc5cf79d2ab75b0dd86d81e3edcce19bee89da758607b640b654c14b
6
+ metadata.gz: 584a1d8e2f28b0571a0eaeab21146b8d5719212f36d14db063db59e7ada634d2a28b0f3274989f83a2b683663816bb6bb978281278dd05d0c48b2e53ad2b37b3
7
+ data.tar.gz: 01eac27fc7aac23e51b8bb875a257316accc18c1a3fd1c64b0f6a9321dc66303981d33411578de01ceb99f3a270703586694b58a9c4227ac0d53bf94a0d85cc5
@@ -10,7 +10,7 @@ GIT
10
10
  PATH
11
11
  remote: .
12
12
  specs:
13
- catarse_moip (1.0.8)
13
+ catarse_moip (1.0.9)
14
14
  libxml-ruby (~> 2.6.0)
15
15
  rails (~> 3.2.12)
16
16
 
@@ -97,6 +97,8 @@ module CatarseMoip
97
97
  backer.with_lock do
98
98
  if params["Status"] == "Autorizado"
99
99
  backer.confirm!
100
+ elsif backer.pending?
101
+ backer.waiting!
100
102
  end
101
103
 
102
104
  backer.update_attributes({
@@ -123,6 +125,8 @@ module CatarseMoip
123
125
  backer.refund! unless backer.refunded?
124
126
  when TransactionStatus::CANCELED
125
127
  backer.cancel! unless backer.canceled?
128
+ else
129
+ backer.waiting! if backer.pending?
126
130
  end
127
131
  end
128
132
  end
@@ -1,3 +1,3 @@
1
1
  module CatarseMoip
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
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: 1.0.8
4
+ version: 1.0.9
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: 2013-09-18 00:00:00.000000000 Z
13
+ date: 2013-09-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails