catarse_pagarme 2.7.4 → 2.7.5

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: 518769bb406735121120c82abfae48381497604d
4
- data.tar.gz: d324bbad4a9c03c9b674191b04b091b4d0f26851
3
+ metadata.gz: 6718ed84954953775a70a8f15d1dea5f9602c8a2
4
+ data.tar.gz: 0785da5c0b96d09f67f3e39520821fbc0cae3161
5
5
  SHA512:
6
- metadata.gz: e7bc595815c8e8afe117d15d30a9677a6cfd91d7e93d71ed11bf5c5d19ed301d46019f12431e516fcae479133a253a43ff57fb349336e694408b492131879ed6
7
- data.tar.gz: 3f0c91b24031c17845bf9278dc283b87cd1c324d07975df111f80a8ae7bdb38aa352fbf3924eef4223f846bfc2b748e51bf5c43d286b44432593938a2c4ec804
6
+ metadata.gz: 591d72d0f85ce7a0ea7722c9cc7a42c3ffa90aceb6919b4c1dd5ac91c00273c49474ba220ce5b00201155f8444fc2818791a5d061e4877403ab8b8c985f1be77
7
+ data.tar.gz: 6f5637f671ad7739714da3c2314fc3d6a810672475901f59696dcfaaf41cf0c6730d96afbdb9af33f0dfd798023be6a7836ac4590e68d8d6b8ccb3cab84c5f7a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.7.4)
4
+ catarse_pagarme (2.7.5)
5
5
  pagarme (= 1.10.0)
6
6
  rails (~> 4.0)
7
7
  weekdays (>= 1.0.2)
@@ -3,7 +3,6 @@ App.views.Pagarme.addChild('PaymentSlip', _.extend({
3
3
 
4
4
  events: {
5
5
  'click input#build_boleto' : 'onBuildBoletoClick',
6
- 'click .link_content a' : 'onContentClick',
7
6
  'blur input' : 'checkInput'
8
7
  },
9
8
 
@@ -18,16 +17,6 @@ App.views.Pagarme.addChild('PaymentSlip', _.extend({
18
17
  this.$('#user_bank_account_attributes_name').brbanks();
19
18
  },
20
19
 
21
- onContentClick: function() {
22
- var thank_you = $('#project_review').data('thank-you-path');
23
-
24
- if(thank_you){
25
- location.href = thank_you;
26
- } else {
27
- location.href = '/';
28
- }
29
- },
30
-
31
20
  onBuildBoletoClick: function(e){
32
21
  var that = this;
33
22
 
@@ -50,11 +39,13 @@ App.views.Pagarme.addChild('PaymentSlip', _.extend({
50
39
 
51
40
  $(e.currentTarget).show();
52
41
  } else if(response.boleto_url) {
53
- var link = $('<a class="alt-link" target="__blank">Clique aqui para ver o boleto e completar o pagamento.</a>')
54
- link.attr('href', response.boleto_url);
55
- that.$('.link_content').empty().html(link);
56
- that.$('> div:not(.after-success)').hide();
57
- that.$('#payment-slip-link').slideDown('slow');
42
+ var thank_you = $('#project_review').data('thank-you-path');
43
+
44
+ if(thank_you){
45
+ location.href = thank_you;
46
+ } else {
47
+ location.href = '/';
48
+ }
58
49
  }
59
50
  });
60
51
  }
@@ -98,11 +98,6 @@
98
98
  .payment-error-message.card.card-error.u-radius.zindex-10.u-marginbottom-30.w-hidden
99
99
  .fontsize-smaller.fontweight-bold.u-marginbottom-10= t('projects.contributions.edit.review_errors_title')
100
100
  .message-text.fontsize-smaller = t('.review_errors')
101
- .w-row.after-success
102
- .w-col.w-col-12
103
- #payment-slip-link.card.card-message.fontsize-small.u-radius.u-marginbottom-30.zindex-10.w-hidden
104
- .link_content.fontsize-small
105
- .fontsize-small= t('projects.contributions.edit.review_slip_email')
106
101
  .w-row
107
102
  .w-col.w-col-12
108
103
  .u-margintop-30.u-marginbottom-60.u-radius.card-big.card
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.7.4"
2
+ VERSION = "2.7.5"
3
3
  end
@@ -56,6 +56,10 @@ describe CatarsePagarme::CreditCardsController do
56
56
  it "should have created a payment" do
57
57
  expect(contribution.payments.size).to eq(2)
58
58
  end
59
+
60
+ it "should update the payment key on the local database" do
61
+ expect(contribution.payments.last.key).to_not be_nil
62
+ end
59
63
  end
60
64
  end
61
65
  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.7.4
4
+ version: 2.7.5
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-08-04 00:00:00.000000000 Z
12
+ date: 2015-08-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails