lucadeal 0.5.8 → 0.5.9

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: 96b28c4018fd5120422023ea16919abda64e15df3989a0d70973d331660bee99
4
- data.tar.gz: 1b66a4ebb58367c85469712cad3cc9ff3eb13e135174827373340c13ec787e67
3
+ metadata.gz: d94d0cd44e5a8371b0c94f0c3fe6d35576f69751f6c8b267c003f2f377a8d3e7
4
+ data.tar.gz: da59e25e9c66ecdbe833f0e3f49473bf2890c063aebe931dd3beb2bbf6e1af86
5
5
  SHA512:
6
- metadata.gz: 2a6791648183d90bda1de571dd04e1a411236803b38f99fefa760354798c9b1f5ac1c5c48c178da32e32889b44324d8adcce4cf69fdab1d8f214259ad2f2982f
7
- data.tar.gz: b5aff9c236935584753846132fcc96d345a8dc730d608b0a6385e548a7c821e28ac556e5f569722bc6db71236691934da0dad0ca759a0b7966b3af001704e93f
6
+ metadata.gz: 63a8ce879d6fde02a76c9075dffa87b6655f9bd9271c23127fb0b7375d93582c5ff89e97e0054a6cf472ac507dc02c10b87c29dd1170d3c494049110a03a4600
7
+ data.tar.gz: 16485a817cfcebbf628b99e353c90c8b0e37ffe2678d0dd7da2f393621a85bb6ea993f2e0079822301ccf4354158d73e2d02e43a7aff1d35b2969847964fabd5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## LucaDeal 0.5.9
2
+
3
+ * Invoice file prefix is now customizable.
4
+
1
5
  ## LucaDeal 0.5.8
2
6
 
3
7
  * Customer has tax ID
data/README.md CHANGED
@@ -82,6 +82,8 @@ If you want to send invoices in PDF, you need to install `wkhtmltopdf` command s
82
82
  $ luca-deal invoice mail yyyy m
83
83
  ```
84
84
 
85
+ Set `invoice.attachment_prefix` in `config.yml` to customize the attachment filename prefix (default: `invoice-`). Include any desired separator in the prefix. This also applies to HTML attachments and files generated by `invoice print`.
86
+
85
87
 
86
88
  ### Sales Fee
87
89
 
@@ -483,7 +483,8 @@ module LucaDeal
483
483
 
484
484
  def attachment_name(dat, type)
485
485
  id = %r{/}.match(dat['id']) ? dat['id'].gsub('/', '') : dat['id'][0, 7]
486
- "invoice-#{id}.#{type}"
486
+ prefix = LucaRecord::CONST.config.dig('invoice', 'attachment_prefix') || 'invoice-'
487
+ "#{prefix}#{id}.#{type}"
487
488
  end
488
489
 
489
490
  def duplicated_contract?(id)
@@ -12,3 +12,4 @@ mail:
12
12
  cc:
13
13
  invoice:
14
14
  mail_subject:
15
+ attachment_prefix: invoice-
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LucaDeal
4
- VERSION = '0.5.8'
4
+ VERSION = '0.5.9'
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucadeal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chuma Takahiro
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-04-21 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: lucarecord
@@ -98,12 +97,11 @@ files:
98
97
  - lib/luca_deal/version.rb
99
98
  homepage: https://github.com/chumaltd/luca/tree/master/lucadeal
100
99
  licenses:
101
- - GPL
100
+ - GPL-3.0-or-later
102
101
  metadata:
103
102
  homepage_uri: https://github.com/chumaltd/luca/tree/master/lucadeal
104
103
  source_code_uri: https://github.com/chumaltd/luca/tree/master/lucadeal
105
104
  changelog_uri: https://github.com/chumaltd/luca/tree/master/lucadeal/CHANGELOG.md
106
- post_install_message:
107
105
  rdoc_options: []
108
106
  require_paths:
109
107
  - lib
@@ -118,8 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
116
  - !ruby/object:Gem::Version
119
117
  version: '0'
120
118
  requirements: []
121
- rubygems_version: 3.4.10
122
- signing_key:
119
+ rubygems_version: 3.6.7
123
120
  specification_version: 4
124
121
  summary: Deal with contracts
125
122
  test_files: []