kamisaku 0.1.2 → 0.2.0

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: 9fdf1df53449c244e517a611ec8c4f86d70f177d7a1915510673ed284e459862
4
- data.tar.gz: c46cb9fdd46698f10a9ace7d982973156fc9d8f456a476ce3f60419bf6eb01e4
3
+ metadata.gz: d645fc6767b17f9d9d44e95336bf7d962b5d4e997b9f336e9ea787a8fdef86dc
4
+ data.tar.gz: 78b4d15cfbe0a405f6b9fc10569449e8d30bda716225da87e2e93b6a0b74f2e6
5
5
  SHA512:
6
- metadata.gz: dc698661abf790c25d7d4c76b20379087c044ccc5bd12029558e28055ac9c58a9abd78484b7468ec52d1f990892dba0d37abac0ae39f6c24404b6e02bec7ede4
7
- data.tar.gz: 01102145a9e37cc5a5db0e49423da90491204bbed1279be82f7f70a0c1981e5e67ba6bcb5f74045c2b0dd19f809196b29e693a46317e2d0628e283bf99a1ba6f
6
+ metadata.gz: 2a2b50652ea5854526cb11de2f81d630fa5f059f5a92277d3873846eb5bcf9225e59092c23225773ca651b38eb642746a5a3dc03e9999db23506722477fcc575
7
+ data.tar.gz: ea7c2af4a32411ef9b469a4381fc62fa3ad8f4a5ab4b82a40baa3f163dd5910988fbd6d483f03b0b08c9a869e70d7e4dc3c0aec7b43610df3926826e8f693b9f
data/CHANGELOG.md CHANGED
@@ -13,7 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
 
14
14
  ### Removed
15
15
 
16
- ## [0.1.2] - 2025-05-25
16
+ ## [0.2.0] - 2025-05-24
17
+
18
+ ### Added
19
+ - Soft removing metadata in generated PDF using `exiftool`
20
+
21
+ ## [0.1.2] - 2025-05-24
17
22
 
18
23
  ### Changed
19
24
 
data/README.md CHANGED
@@ -68,7 +68,9 @@ education:
68
68
  achievements:
69
69
  - # Things you have achieved or did
70
70
  ```
71
- See [examples](/examples) directory for sample generated PDF files based of [templates](/lib/templates).
71
+
72
+ ## Template
73
+ For a list of templates availble for CV generation, check the [examples](/examples) directory where each directory name is a template name.
72
74
 
73
75
  ## Installation
74
76
 
@@ -79,6 +81,8 @@ This is a Ruby gem. So you can either install as a gem or clone the repo and use
79
81
  - Ensure that [Google Chrome](https://www.google.com/chrome/) is installed.
80
82
  - Chrome must be accessible from the terminal as `google-chrome`.
81
83
  - Kamisaku uses Chrome's [headless mode](https://developer.chrome.com/docs/chromium/headless/) to generate PDF files.
84
+ - Ensure `exiftool` is installed available in command line.
85
+ - exiftool is used to soft remove metadata added by chrome in the PDF file.
82
86
 
83
87
  Add this line to your application's Gemfile:
84
88
 
Binary file
@@ -18,6 +18,7 @@ module Kamisaku
18
18
  generated_html_file do |file_path|
19
19
  FileUtils.cp(file_path, html_location) if html_location
20
20
  html_file_to_pdf_file(file_path, pdf_location)
21
+ soft_remove_metadata_from_pdf_file(pdf_location)
21
22
  end
22
23
  end
23
24
 
@@ -35,6 +36,13 @@ module Kamisaku
35
36
  raise "PDF generation failed" unless File.exist?(pdf_file_path)
36
37
  end
37
38
 
39
+ def soft_remove_metadata_from_pdf_file(file_path)
40
+ command = <<~CMD
41
+ exiftool -all= #{file_path} -overwrite_original
42
+ CMD
43
+ system(command)
44
+ end
45
+
38
46
  def generated_html_file
39
47
  temp_html_file = Tempfile.new(%w[kamisaku .html])
40
48
  temp_html_file.write(cv_html)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kamisaku
4
- VERSION = "0.1.2"
4
+ VERSION = "0.2.0"
5
5
  end
data/template.yml ADDED
@@ -0,0 +1,59 @@
1
+ # Template structure for CV. The content should be in YAML format.
2
+ # If you are not familiar with YAML, refer: https://devhints.io/yaml
3
+ # Some hints:
4
+ # - comments start with "#"
5
+
6
+ version: 1
7
+ profile:
8
+ name: # Your name
9
+ title: # Your current job title
10
+ about: # Some sleek details about your experience
11
+
12
+ contact:
13
+ github: # Github username
14
+ mobile: # Mobile number
15
+ email: # email address
16
+ linkedin: # Linkedin username
17
+ location:
18
+ country: # country name
19
+ city: # city name
20
+
21
+ skills:
22
+ - area: # specific skill area you are specialized in
23
+ items:
24
+ - # sub item such as a technology you have the skill in under the specialized area
25
+
26
+ experiences:
27
+ - title: # job title
28
+ organisation: # Name of the place you worked
29
+ location:
30
+ city: # city name
31
+ country: # country name
32
+ from:
33
+ month: # month integer number that you started
34
+ year: # year integer number that you started
35
+ # if following is not given, it is assumed you are still working
36
+ to:
37
+ month: # month integer number that you stopped
38
+ year: # year integer number that you stopped
39
+ skills:
40
+ - # a short name for a specialized skilled you gained
41
+ achievements:
42
+ - # Things you have achieved or did as a sentence. Consider reflecting the impact it made.
43
+
44
+ education:
45
+ - institute: # name of the place you studied
46
+ location:
47
+ city: # city name
48
+ country: # country name
49
+ qualification: # name of the degree/diploma qualification
50
+ field: # name of the field such as Computer Science
51
+ from:
52
+ month: # month integer number that you started
53
+ year: # year integer number that you started
54
+ # if following is not given, it is assumed you are still studying
55
+ to:
56
+ month: # month integer number that you stopped
57
+ year: # year integer number that you stopped
58
+ achievements:
59
+ - # Things you have achieved or did
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.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sinaru Gunawardena
@@ -45,6 +45,7 @@ files:
45
45
  - lib/templates/paper/template.html.erb
46
46
  - lib/templates/sleek/template.html.erb
47
47
  - sig/kamisaku.rbs
48
+ - template.yml
48
49
  homepage: https://github.com/sinaru/kamisaku
49
50
  licenses:
50
51
  - MIT