webtranslateit-payday 2.1.2 → 2.1.3
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 +8 -0
- data/README.md +12 -0
- data/lib/payday.rb +7 -0
- data/payday.gemspec +12 -1
- metadata +11 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ebec7f9d14bac87b926516688da5aa1a107b306aba32e9884064656643d52929
|
|
4
|
+
data.tar.gz: 571d957ccfb78952ba550720b7d5c343faf2fb6e07c12e014114889aed9da6ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 99e0f92ab9783820a995775c6472875d40b3d2329c945e3c6bc1492742c2080a4350070f1435f1a2fe75ea360d7240ec73e630d4c18c5e27705cb860106e37d5
|
|
7
|
+
data.tar.gz: 5e98ec2c45db2bbe8616f131f717edf55ac984fcaf25dc581e6dff9bedf733c9fd8dc353412a965d18f8fe50f60280dc3df8421ccbe4a23d1ea6718cfc1f93b6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 2.1.3 (2026-11-12)
|
|
4
|
+
|
|
5
|
+
The final release. Payday has been renamed [Tallyman](https://github.com/Rebase-Capital/tallyman) and this gem is no longer maintained.
|
|
6
|
+
|
|
7
|
+
* Nothing about how invoices are computed or rendered changes from 2.1.2.
|
|
8
|
+
* Requiring the gem prints a deprecation warning that points to `tallyman`, and installing it shows the same notice as a post-install message.
|
|
9
|
+
* To move over, replace `gem 'webtranslateit-payday', require: 'payday'` with `gem 'tallyman'`, rename the `Payday` module to `Tallyman`, and move any label overrides from the `payday:` I18n key to `tallyman:`. The README has the details, and [Tallyman's changelog](https://github.com/Rebase-Capital/tallyman/blob/main/CHANGELOG.md) lists what else changes there: some reworded labels, `bill_to` on ActiveRecord invoices, and a rewritten Rails generator.
|
|
10
|
+
|
|
3
11
|
## 2.1.2 (2026-11-08)
|
|
4
12
|
|
|
5
13
|
* Internal refactoring, no behaviour change: rates and line item values are parsed through one `Payday.to_decimal` (#323).
|
data/README.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
Payday!
|
|
2
2
|
===
|
|
3
|
+
|
|
4
|
+
> **Payday is now [Tallyman](https://github.com/Rebase-Capital/tallyman).** This gem is no longer maintained, and 2.1.3 is its final release. Development continues under the new name, in the [`tallyman`](https://rubygems.org/gems/tallyman) gem.
|
|
5
|
+
>
|
|
6
|
+
> Tallyman 1.0.0 carries on from `webtranslateit-payday` 2.1.2. To move over:
|
|
7
|
+
>
|
|
8
|
+
> * In your Gemfile, replace `gem 'webtranslateit-payday', require: 'payday'` with `gem 'tallyman'`.
|
|
9
|
+
> * Rename the `Payday` module to `Tallyman` wherever you use it.
|
|
10
|
+
> * If you override the invoice labels, move your translations from the `payday:` I18n key to `tallyman:`.
|
|
11
|
+
> * The Rails generator is `rails generate tallyman:setup`.
|
|
12
|
+
>
|
|
13
|
+
> Tallyman 1.0.0 also changes a few things: some translated labels are reworded, an ActiveRecord invoice with a `bill_to` column is billed to whoever that column names instead of a placeholder, and the Rails generator is rewritten. Its [changelog](https://github.com/Rebase-Capital/tallyman/blob/main/CHANGELOG.md) has the details.
|
|
14
|
+
|
|
3
15
|
Payday is a library for rendering invoices to pdfs.
|
|
4
16
|
|
|
5
17
|
We use payday intensively at [WebTranslateIt.com](https://webtranslateit.com) and [Trackberry](https://trackberry.com) to generate customer’s invoices and receipts. When we upgraded our app to ruby 2.7 this gem failed in many ways and the original source code by Alan Johnson was nowhere to be found on GitHub. So we took the source code out of [rubygems.org](https://rubygems.org) and created this repo. We’ve since added a few new features and fixes, which can be seen [in the changelog](https://github.com/webtranslateit/payday/blob/main/CHANGELOG.md).
|
data/lib/payday.rb
CHANGED
|
@@ -19,9 +19,16 @@ I18n.load_path.concat(Dir[File.expand_path('../config/locales/*.yml', __dir__)])
|
|
|
19
19
|
|
|
20
20
|
module Payday
|
|
21
21
|
|
|
22
|
+
DEPRECATION = '[DEPRECATION] webtranslateit-payday is no longer maintained and has moved to the ' \
|
|
23
|
+
"tallyman gem. Replace it with `gem 'tallyman'` and rename the Payday module to " \
|
|
24
|
+
'Tallyman: https://github.com/Rebase-Capital/tallyman'
|
|
25
|
+
|
|
22
26
|
# A blank value (nil, "", " ") is 0.
|
|
23
27
|
def self.to_decimal(value)
|
|
24
28
|
BigDecimal(value.to_s.presence || 0)
|
|
25
29
|
end
|
|
26
30
|
|
|
27
31
|
end
|
|
32
|
+
|
|
33
|
+
# Printed once, when the gem is required, so that it shows up wherever an application boots.
|
|
34
|
+
warn Payday::DEPRECATION
|
data/payday.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = 'webtranslateit-payday'
|
|
5
|
-
s.version = '2.1.
|
|
5
|
+
s.version = '2.1.3'
|
|
6
6
|
s.required_ruby_version = '>= 3.2'
|
|
7
7
|
s.platform = Gem::Platform::RUBY
|
|
8
8
|
s.authors = ['Alan Johnson', 'Edouard Briere']
|
|
@@ -11,6 +11,17 @@ Gem::Specification.new do |s|
|
|
|
11
11
|
s.summary = 'A simple library for rendering invoices.'
|
|
12
12
|
s.description = 'Payday is a library for rendering invoices to pdf, using Typst.'
|
|
13
13
|
s.license = 'MIT'
|
|
14
|
+
s.post_install_message = <<~MESSAGE
|
|
15
|
+
webtranslateit-payday has moved: it is now the tallyman gem.
|
|
16
|
+
|
|
17
|
+
This is the final release of webtranslateit-payday, which is no longer maintained.
|
|
18
|
+
Replace it in your Gemfile with:
|
|
19
|
+
|
|
20
|
+
gem 'tallyman'
|
|
21
|
+
|
|
22
|
+
then rename the Payday module to Tallyman, and move any label overrides from the
|
|
23
|
+
payday: I18n key to tallyman:. More at https://github.com/Rebase-Capital/tallyman
|
|
24
|
+
MESSAGE
|
|
14
25
|
|
|
15
26
|
s.add_dependency 'activesupport', '>= 7', '< 9'
|
|
16
27
|
s.add_dependency 'i18n', '~> 1.12', '< 2'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: webtranslateit-payday
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alan Johnson
|
|
@@ -165,6 +165,16 @@ licenses:
|
|
|
165
165
|
- MIT
|
|
166
166
|
metadata:
|
|
167
167
|
rubygems_mfa_required: 'true'
|
|
168
|
+
post_install_message: |
|
|
169
|
+
webtranslateit-payday has moved: it is now the tallyman gem.
|
|
170
|
+
|
|
171
|
+
This is the final release of webtranslateit-payday, which is no longer maintained.
|
|
172
|
+
Replace it in your Gemfile with:
|
|
173
|
+
|
|
174
|
+
gem 'tallyman'
|
|
175
|
+
|
|
176
|
+
then rename the Payday module to Tallyman, and move any label overrides from the
|
|
177
|
+
payday: I18n key to tallyman:. More at https://github.com/Rebase-Capital/tallyman
|
|
168
178
|
rdoc_options: []
|
|
169
179
|
require_paths:
|
|
170
180
|
- lib
|