pay 1.0.0.rc2 → 1.0.0.rc3

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
  SHA256:
3
- metadata.gz: fafe7e9eb84a3fcde55691d789cc6111a35f9da862565c7aed0f9689c57826d4
4
- data.tar.gz: 04f9c558b0f1c693eed8a9d611fce3b1bf124c4d718486bfe282205a1f9d20ac
3
+ metadata.gz: 66c49f668b673801a021ca055ec7523e53ba3e4e911e8eed3c3524a25848180e
4
+ data.tar.gz: ce0316fe7dca26c2d9b200c53ff4ce5566bcde1d14d9a5f0345e238823a00d20
5
5
  SHA512:
6
- metadata.gz: a4c8a2fd93f0c79644e5b5fd3af3c45df1fac8981177d250612a0781b5ad88d95c74bb1aa1a8026c196c1f0e3d5a6df9c6dee90cfdf0019e6116dee0b01aa0ea
7
- data.tar.gz: 61ad0c56d68f76eaa6699551ac7a6b9259d1f483a8fdd7d0fcc7903b8c07c87d357cbaa49b138f07e267bf81186ab4082e5f8272f8bea7647e2ffa73cde8d5de
6
+ metadata.gz: abb0ddf46681b276bbf7e02d94df4bebc91070c16b361a4b295ac4ba0b6ac5ecaf1af36f4772cfcff11f5bc830c0c2fd7fb5ad8434d712e8d90b0c077ada9901
7
+ data.tar.gz: eb768f976782888c8cdf7895c8f17b74ff227c456c26c8cb420e5fbff6195d46cafbd563ccc9548ea3f30d1a9439e6965d06d9cf29fb1c0dfdae1cab7a621595
data/lib/pay/receipts.rb CHANGED
@@ -4,19 +4,23 @@ module Pay
4
4
  "receipt-#{created_at.strftime('%Y-%m-%d')}.pdf"
5
5
  end
6
6
 
7
+ def product
8
+ Pay.application_name
9
+ end
10
+
7
11
  # Must return a file object
8
12
  def receipt
9
13
  receipt_pdf.render
10
14
  end
11
15
 
12
16
  def receipt_pdf
13
- Receipts::Receipt.new(
17
+ ::Receipts::Receipt.new(
14
18
  id: id,
15
- product: Pay.config.application_name,
19
+ product: product,
16
20
  company: {
17
- name: Pay.config.business_name,
18
- address: Pay.config.business_address,
19
- email: Pay.config.support_email,
21
+ name: Pay.business_name,
22
+ address: Pay.business_address,
23
+ email: Pay.support_email,
20
24
  },
21
25
  line_items: line_items
22
26
  )
@@ -26,7 +30,7 @@ module Pay
26
30
  line_items = [
27
31
  ["Date", created_at.to_s],
28
32
  ["Account Billed", "#{owner.name} (#{owner.email})"],
29
- ["Product", Pay.config.application_name],
33
+ ["Product", product],
30
34
  ["Amount", ActionController::Base.helpers.number_to_currency(amount / 100.0)],
31
35
  ["Charged to", charged_to],
32
36
  ]
data/lib/pay/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pay
2
- VERSION = '1.0.0.rc2'
2
+ VERSION = '1.0.0.rc3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc2
4
+ version: 1.0.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Charnes