catarse_pagarme 2.9.6 → 2.9.7

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: 185bd4250e358af76710ce94d9a3c703820f41c5
4
- data.tar.gz: 6a67184aa54291976fea34be692724399678b300
3
+ metadata.gz: 32d86f548a6da4361bd96f91af536713d103f664
4
+ data.tar.gz: 708071f6cdd2a534e66457e8b18f8258e6e859f3
5
5
  SHA512:
6
- metadata.gz: 76558ef9eaccbb5b43be7be3abeddfb10301ab89cc7517b537eda2b58f055ec8dd5a44209af1e4df990ad414e11d7597b7fc6a5bfc25bf31af4a367bdc113dfe
7
- data.tar.gz: c2ffd38296376c43d0e1e15b648a1ac70f4129b6f19717611255fb85332ecd4ec450c8b00cabf35145a630ca5b87107c6c194ccd0db6f3f27e69ecc8b519f3b1
6
+ metadata.gz: 64fd9604b09364c0410857af9c0782a574963c5e029a90659a992945946523d77a30355b53cd7e1306bbb63217e469c660b5fb36fc901ac8afdb4bac8848863c
7
+ data.tar.gz: 89aff104baf53a6edff9335c4626569a6f48cdcda1fbf486d88542f2556cbb13d324d6a0082a1d04e7df413375acc62635850cdb99a2b2b86f535f11f24a7fb6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.9.6)
4
+ catarse_pagarme (2.9.7)
5
5
  pagarme (= 2.1.3)
6
6
  rails (~> 4.0)
7
7
  sidekiq
@@ -12,7 +12,13 @@ module CatarsePagarme
12
12
  def metadata_attributes
13
13
  {
14
14
  key: payment.generate_key,
15
- contribution_id: payment.contribution.id
15
+ contribution_id: payment.contribution.id,
16
+ project_name: payment.project.name,
17
+ permalink: payment.project.permalink,
18
+ project_online: payment.project.online_at,
19
+ project_expires: payment.project.expires_at,
20
+ user_total_contributions: payment.user.contributions.was_confirmed.count,
21
+ user_id: payment.user.id
16
22
  }
17
23
  end
18
24
 
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.9.6"
2
+ VERSION = "2.9.7"
3
3
  end
@@ -4,6 +4,7 @@ class Contribution < ActiveRecord::Base
4
4
  belongs_to :country
5
5
  has_many :payment_notifications
6
6
  has_many :payments
7
+ scope :was_confirmed, -> { where("contributions.was_confirmed") }
7
8
 
8
9
  def international?
9
10
  false
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.9.6
4
+ version: 2.9.7
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: 2016-08-11 00:00:00.000000000 Z
12
+ date: 2016-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails