catarse_paypal_express 2.1.1 → 2.1.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: afa957fb517b7455b2fe330ae7f0dbae30367f56
4
- data.tar.gz: 79d72c792565945ce21d9d7246687abe92bc1c30
3
+ metadata.gz: f323901b060ab2f8cc2234ee11d938cb20c1eccb
4
+ data.tar.gz: b1e65c23abcd20e393c6bdbd95d65af8b9b0f7b5
5
5
  SHA512:
6
- metadata.gz: 714f8a31749ab64ca03cec3353c79c2410613fd5b7e3f3c8ed0808ad49e7a968284f2ab51b20cd1b69883bb3c12359d2bbb54d949b95629c0df5e6e13eadb9ce
7
- data.tar.gz: a446630032570b5600edf3e58223f6ee2c3ad7bca7f553f28b16baafb2e189039861507949259b303f823334d6f4e905a5c4fc6a2378dd60f49edb5a4bd2d4d4
6
+ metadata.gz: 34668b07aff98ff93c42e412b0d960ca858a481c24e0c7d30d8b128d0eaf1ba1f18610987780fcab2307ccb9d8faf1753873b2a7e61290f36ce2f4a5853af3d1
7
+ data.tar.gz: ef20fa639114faa6c3cecdc5e515f0e71522afaf82a5398afcab07f58c24973c0d69b9760eba3b5cf977cd81fedfefbd3f4a5bd3fd748eb6feef22141ae71d44
@@ -11,10 +11,11 @@ class CatarsePaypalExpress::PaypalExpressController < ApplicationController
11
11
  def refund
12
12
  refund_request = gateway.refund(nil, backer.payment_id)
13
13
 
14
+
14
15
  if refund_request.success?
15
16
  flash[:notice] = I18n.t('projects.backers.refund.success')
16
17
  else
17
- flash[:alert] = I18n.t('projects.backers.refund.error')
18
+ flash[:alert] = refund_request.try(:message) || I18n.t('projects.backers.refund.error')
18
19
  end
19
20
 
20
21
  redirect_to main_app.admin_backers_path
@@ -1,3 +1,3 @@
1
1
  module CatarsePaypalExpress
2
- VERSION = "2.1.1"
2
+ VERSION = "2.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catarse_paypal_express
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
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-12-13 00:00:00.000000000 Z
13
+ date: 2013-12-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  version: '0'
187
187
  requirements: []
188
188
  rubyforge_project:
189
- rubygems_version: 2.0.7
189
+ rubygems_version: 2.1.10
190
190
  signing_key:
191
191
  specification_version: 4
192
192
  summary: PaypalExpress integration with Catarse