kamisaku 0.4.4 → 0.4.6
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 +23 -6
- data/Gemfile.lock +1 -1
- data/kamisaku.gemspec +1 -1
- data/lib/kamisaku/pdf.rb +9 -3
- data/lib/kamisaku/version.rb +1 -1
- metadata +1 -9
- data/examples/birthday_invitation/dino/example.pdf +0 -0
- data/examples/resume/chromatic/example.pdf +0 -0
- data/examples/resume/gradient/example.pdf +0 -0
- data/examples/resume/meridian/example.pdf +0 -0
- data/examples/resume/paper/example.pdf +0 -0
- data/examples/resume/prism/example.pdf +0 -0
- data/examples/resume/sleek/example.pdf +0 -0
- data/examples/resume/zenith/example.pdf +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c1347397099ac7ed2f5c57ac9b4f824cf676c2adf9ba048da5516366345ffaf6
|
|
4
|
+
data.tar.gz: 989f7147e1c175c5a7783792f4e3d75c86c580a9f9888cf8772838f709bf58d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36135e5c0fff0faaaa2dd196bf009ae62140604f2a6e218d6bbceb3911e0453f16a1efcd7f1fd9b13771d47f60c901ee122bf5873d241a4ef367acccb1b100ad
|
|
7
|
+
data.tar.gz: 68f0d6d6ddcf024796e8a71b7a395178af8bbf66f118b423530f954df59d5e19a0123853da7851ab9ec90c2fcb5bfdb7b023e53591d38500cce6299752820b81
|
data/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,19 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [
|
|
8
|
+
## [0.4.6] - 2026.01.03
|
|
9
|
+
|
|
10
|
+
## Changed
|
|
11
|
+
|
|
12
|
+
- Removed examples from gemspec
|
|
13
|
+
|
|
14
|
+
## [0.4.5] - 2026.01.03
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- `Kamisaku::PDF` validation for category and template
|
|
19
|
+
|
|
20
|
+
## [0.4.4] - 2026.01.01
|
|
9
21
|
|
|
10
22
|
### Changed
|
|
11
23
|
- Improve error handling in `yaml_str_to_content_hash` and `BaseContentValidator`
|
|
@@ -13,17 +25,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
13
25
|
## [0.4.3] - 2026.01.01
|
|
14
26
|
|
|
15
27
|
### Changed
|
|
28
|
+
|
|
16
29
|
- Update YAML parsing error messages
|
|
17
30
|
|
|
18
31
|
## [0.4.2] - 2025.12.31
|
|
19
32
|
|
|
20
33
|
### Changed
|
|
34
|
+
|
|
21
35
|
- Use symbols for template names internally
|
|
22
36
|
|
|
23
37
|
## [0.4.1] - 2025.06.09
|
|
24
38
|
|
|
25
|
-
###
|
|
26
|
-
-
|
|
39
|
+
### Fixed
|
|
40
|
+
- `Kamisaku::BirthdayInvitationContentValidator` template listing
|
|
27
41
|
|
|
28
42
|
## [0.4.0] - 2025.06.09
|
|
29
43
|
|
|
@@ -41,7 +55,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
41
55
|
### Changed
|
|
42
56
|
- Update paper template
|
|
43
57
|
|
|
44
|
-
|
|
45
58
|
## [0.3.3] - 2025.06.01
|
|
46
59
|
|
|
47
60
|
### Changed
|
|
@@ -55,21 +68,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
55
68
|
## [0.3.1] - 2025-06-01
|
|
56
69
|
|
|
57
70
|
### Changed
|
|
71
|
+
|
|
58
72
|
- Refactor code and update `Kamisaku::PDF` interface
|
|
59
73
|
|
|
60
74
|
## [0.3.0] - 2025-05-28
|
|
61
75
|
|
|
62
76
|
### Added
|
|
77
|
+
|
|
63
78
|
- Add `Kamisaku::PDF` interface that can be used externally to generate PDF
|
|
64
79
|
|
|
65
80
|
## [0.2.1] - 2025-05-28
|
|
66
81
|
|
|
67
|
-
###
|
|
68
|
-
|
|
82
|
+
### Fixed
|
|
83
|
+
|
|
84
|
+
- pdfkit gem reference
|
|
69
85
|
|
|
70
86
|
## [0.2.0] - 2025-05-24
|
|
71
87
|
|
|
72
88
|
### Added
|
|
89
|
+
|
|
73
90
|
- Soft removing metadata in generated PDF using `exiftool`
|
|
74
91
|
|
|
75
92
|
## [0.1.2] - 2025-05-24
|
data/Gemfile.lock
CHANGED
data/kamisaku.gemspec
CHANGED
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
|
23
23
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
24
24
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
25
25
|
`git ls-files -z`.split("\x0").reject do |f|
|
|
26
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
|
26
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features|examples)/|\.(?:git|travis|circleci)|appveyor)})
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
spec.bindir = "bin"
|
data/lib/kamisaku/pdf.rb
CHANGED
|
@@ -14,11 +14,17 @@ module Kamisaku
|
|
|
14
14
|
@category = category.to_sym
|
|
15
15
|
@template = template.to_sym
|
|
16
16
|
|
|
17
|
-
raise Error, "Invalid template name '#{template}'" unless template.is_a?(String)
|
|
18
17
|
validator_klass = CONTENT_VALIDATOR_MAP[@category]
|
|
19
|
-
|
|
18
|
+
|
|
19
|
+
unless validator_klass
|
|
20
|
+
raise Error, "Invalid category '#{@category}'"
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
unless validator_klass::TEMPLATES.include?(@template)
|
|
24
|
+
raise Error, "Invalid template '#{@template}'"
|
|
25
|
+
end
|
|
26
|
+
|
|
20
27
|
validator_klass.new(content_hash:).validate!
|
|
21
|
-
raise Error, "Invalid template name '#{@template}'" unless validator_klass::TEMPLATES.include?(@template)
|
|
22
28
|
end
|
|
23
29
|
|
|
24
30
|
def write_to(pdf_location)
|
data/lib/kamisaku/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kamisaku
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sinaru Gunawardena
|
|
@@ -25,14 +25,6 @@ files:
|
|
|
25
25
|
- LICENSE.txt
|
|
26
26
|
- README.md
|
|
27
27
|
- Rakefile
|
|
28
|
-
- examples/birthday_invitation/dino/example.pdf
|
|
29
|
-
- examples/resume/chromatic/example.pdf
|
|
30
|
-
- examples/resume/gradient/example.pdf
|
|
31
|
-
- examples/resume/meridian/example.pdf
|
|
32
|
-
- examples/resume/paper/example.pdf
|
|
33
|
-
- examples/resume/prism/example.pdf
|
|
34
|
-
- examples/resume/sleek/example.pdf
|
|
35
|
-
- examples/resume/zenith/example.pdf
|
|
36
28
|
- kamisaku.gemspec
|
|
37
29
|
- kamisaku.png
|
|
38
30
|
- lib/kamisaku.rb
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|