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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0877b9dcbd189ff86a0ab1f19c2635f1842be92a0490d33e1ad2276c201a11b0'
4
- data.tar.gz: a5bbe668f1945390a64ff96ffd01c09b9b42bd2d68c8e4169a0d2209affaf9e0
3
+ metadata.gz: '065796e25d569a927cf67ebaa208b8d33c189a4ce3786196dc236c563191bb89'
4
+ data.tar.gz: 4f59197b6b35a5cbd71f23586b69a3808655b79127c2c520dd13ee9d6c7efc3d
5
5
  SHA512:
6
- metadata.gz: 300e387def1da02f4da69aebdb9a7e891ad35a5236a25889a9af06945f7ee9dac4ce50c6d10d45ad9faa3b38c61460025b22558ce5b9c7643c332c8aa51e0f0f
7
- data.tar.gz: 0bede300b10b2c9bcc53cfccec438aca595f0b7a19ba673fb83851f7c2e56a313e609ee94f4896d072d54c99fe82e3b0fde28fa7832bff27e89fa45cc8186d81
6
+ metadata.gz: d44d166eef2ea75f01ffe9c990b42e6a59ab932bc4e9a773ba00b7f11944448e1e4a16b426c6fc0649b472839825244f84e9825860bae0efb7d1d8c34209541b
7
+ data.tar.gz: 6c2a3f9378751854d21daf34de2940a8a09f112a629fbaccbfb90f35c7e8bef56179cbae596d319749f165dd77e5413f712a8bdbb3d7b7e23f85cea9ecd6d321
@@ -1,3 +1,7 @@
1
+ ### 1.0.1
2
+
3
+ * [FIX] Make tables full width
4
+
1
5
  ### 1.0.0
2
6
 
3
7
  * [NEW] Invoices!
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: "One Month, Inc.",
67
- address: "37 Great Jones\nFloor 2\nNew York City, NY 10012",
68
- email: "teachers@onemonth.com",
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
- "Address",
196
- "City, State Zipcode",
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/[my-github-username]/receipts/fork )
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`)
Binary file
Binary file
@@ -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]
@@ -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]
@@ -1,3 +1,3 @@
1
1
  module Receipts
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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-02-24 00:00:00.000000000 Z
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.0.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: