receipts 1.0.0 → 1.0.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +7 -7
- data/examples/invoice.pdf +0 -0
- data/examples/receipt.pdf +0 -0
- data/lib/receipts/invoice.rb +1 -1
- data/lib/receipts/receipt.rb +1 -1
- data/lib/receipts/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz: '
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '065796e25d569a927cf67ebaa208b8d33c189a4ce3786196dc236c563191bb89'
|
|
4
|
+
data.tar.gz: 4f59197b6b35a5cbd71f23586b69a3808655b79127c2c520dd13ee9d6c7efc3d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d44d166eef2ea75f01ffe9c990b42e6a59ab932bc4e9a773ba00b7f11944448e1e4a16b426c6fc0649b472839825244f84e9825860bae0efb7d1d8c34209541b
|
|
7
|
+
data.tar.gz: 6c2a3f9378751854d21daf34de2940a8a09f112a629fbaccbfb90f35c7e8bef56179cbae596d319749f165dd77e5413f712a8bdbb3d7b7e23f85cea9ecd6d321
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -63,9 +63,9 @@ class Charge < ActiveRecord::Base
|
|
|
63
63
|
subheading: "RECEIPT FOR CHARGE #%{id}",
|
|
64
64
|
product: "GoRails",
|
|
65
65
|
company: {
|
|
66
|
-
name: "
|
|
67
|
-
address: "
|
|
68
|
-
email: "
|
|
66
|
+
name: "GoRails, LLC.",
|
|
67
|
+
address: "123 Fake Street\nNew York City, NY 10012",
|
|
68
|
+
email: "support@example.com",
|
|
69
69
|
logo: Rails.root.join("app/assets/images/one-month-dark.png")
|
|
70
70
|
},
|
|
71
71
|
line_items: [
|
|
@@ -182,7 +182,7 @@ Invoices follow the exact same set of steps as above, with a few minor changes a
|
|
|
182
182
|
|
|
183
183
|
* `bill_to` - A string or Array of lines with billing details
|
|
184
184
|
|
|
185
|
-
You can also use line_items to flexibly generate and display the table with items in it, including subtotal, taxes, and total amount.
|
|
185
|
+
You can also use line_items to flexibly generate and display the table with items in it, including subtotal, taxes, and total amount.
|
|
186
186
|
|
|
187
187
|
```ruby
|
|
188
188
|
Receipts::Invoice.new(
|
|
@@ -192,8 +192,8 @@ You can also use line_items to flexibly generate and display the table with item
|
|
|
192
192
|
status: "<b><color rgb='#5eba7d'>PAID</color></b>",
|
|
193
193
|
bill_to: [
|
|
194
194
|
"GoRails, LLC",
|
|
195
|
-
"
|
|
196
|
-
"City,
|
|
195
|
+
"123 Fake Street",
|
|
196
|
+
"New York City, NY 10012",
|
|
197
197
|
nil,
|
|
198
198
|
"mail@example.com",
|
|
199
199
|
],
|
|
@@ -215,7 +215,7 @@ You can also use line_items to flexibly generate and display the table with item
|
|
|
215
215
|
|
|
216
216
|
## Contributing
|
|
217
217
|
|
|
218
|
-
1. Fork it ( https://github.com/
|
|
218
|
+
1. Fork it ( https://github.com/excid3/receipts/fork )
|
|
219
219
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
220
220
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
221
221
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/examples/invoice.pdf
CHANGED
|
Binary file
|
data/examples/receipt.pdf
CHANGED
|
Binary file
|
data/lib/receipts/invoice.rb
CHANGED
|
@@ -100,7 +100,7 @@ module Receipts
|
|
|
100
100
|
|
|
101
101
|
borders = line_items.length - 2
|
|
102
102
|
|
|
103
|
-
table(line_items, cell_style: { border_color: 'cccccc', inline_format: true }) do
|
|
103
|
+
table(line_items, width: bounds.width, cell_style: { border_color: 'cccccc', inline_format: true }) do
|
|
104
104
|
cells.padding = 12
|
|
105
105
|
cells.borders = []
|
|
106
106
|
row(0..borders).borders = [:bottom]
|
data/lib/receipts/receipt.rb
CHANGED
|
@@ -68,7 +68,7 @@ module Receipts
|
|
|
68
68
|
|
|
69
69
|
borders = line_items.length - 2
|
|
70
70
|
|
|
71
|
-
table(line_items, cell_style: { border_color: 'cccccc', inline_format: true }) do
|
|
71
|
+
table(line_items, width: bounds.width, cell_style: { border_color: 'cccccc', inline_format: true }) do
|
|
72
72
|
cells.padding = 12
|
|
73
73
|
cells.borders = []
|
|
74
74
|
row(0..borders).borders = [:bottom]
|
data/lib/receipts/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: receipts
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Oliver
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-06-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -143,7 +143,7 @@ homepage: ''
|
|
|
143
143
|
licenses:
|
|
144
144
|
- MIT
|
|
145
145
|
metadata: {}
|
|
146
|
-
post_install_message:
|
|
146
|
+
post_install_message:
|
|
147
147
|
rdoc_options: []
|
|
148
148
|
require_paths:
|
|
149
149
|
- lib
|
|
@@ -158,8 +158,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
158
158
|
- !ruby/object:Gem::Version
|
|
159
159
|
version: '0'
|
|
160
160
|
requirements: []
|
|
161
|
-
rubygems_version: 3.
|
|
162
|
-
signing_key:
|
|
161
|
+
rubygems_version: 3.1.4
|
|
162
|
+
signing_key:
|
|
163
163
|
specification_version: 4
|
|
164
164
|
summary: Receipts for your Rails application that works with any payment provider.
|
|
165
165
|
test_files:
|