kamisaku 0.4.2 → 0.4.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 +2 -5
- data/Gemfile.lock +1 -1
- data/README.md +5 -1
- data/lib/kamisaku/helpers.rb +6 -2
- data/lib/kamisaku/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cfdf7ddf6a45f5c5794ad3e1e820b07e38ab7ad24188cca2c9fcf637ccdb0ef1
|
|
4
|
+
data.tar.gz: 1cc9d43c15c69a760d22bb78f77b7d8e3e75f38005686f3e38f48f9adfcb16f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9dae789b198dd96799c93261b6351c5f720d45ca3612f8df2fcb46df161b5ccee25b5d9bdf8a9cbaa341e7a5ffaccca0021eedab62ff7c6571f94da388eded5a
|
|
7
|
+
data.tar.gz: 2600ff04de0ce42018a5a1148c52d3a0ed9ff9af9ba96a810bc20d4eecfec982abbc32c8a67b0427458b7071bf26e23fbbd7a4994f60c65697ecd1742187fcac
|
data/CHANGELOG.md
CHANGED
|
@@ -5,13 +5,10 @@ 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
|
-
## [
|
|
9
|
-
|
|
10
|
-
### Added
|
|
8
|
+
## [0.4.3] - 2026.01.01
|
|
11
9
|
|
|
12
10
|
### Changed
|
|
13
|
-
|
|
14
|
-
### Removed
|
|
11
|
+
- Update YAML parsing error messages
|
|
15
12
|
|
|
16
13
|
## [0.4.2] - 2025.12.31
|
|
17
14
|
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -111,7 +111,11 @@ and place it in `examples/` folder.
|
|
|
111
111
|
|
|
112
112
|
### Releasing a new gem version
|
|
113
113
|
|
|
114
|
-
To release a new version
|
|
114
|
+
To release a new version;
|
|
115
|
+
1. update the version number in `version.rb`
|
|
116
|
+
2. run `bundle update`
|
|
117
|
+
3. commit the changes
|
|
118
|
+
2. then run `bundle exec rake release`
|
|
115
119
|
which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
116
120
|
|
|
117
121
|
## Contributing
|
data/lib/kamisaku/helpers.rb
CHANGED
|
@@ -4,8 +4,12 @@ module Kamisaku
|
|
|
4
4
|
module Helpers
|
|
5
5
|
def self.yaml_str_to_content_hash(yaml_str)
|
|
6
6
|
Psych.safe_load(yaml_str, symbolize_names: true, aliases: false, freeze: true)
|
|
7
|
-
rescue Psych::SyntaxError
|
|
8
|
-
raise Kamisaku::Error
|
|
7
|
+
rescue Psych::SyntaxError => error
|
|
8
|
+
raise Kamisaku::Error, "Syntax error at line #{error.line}"
|
|
9
|
+
rescue Psych::AliasesNotEnabled => _error
|
|
10
|
+
raise Kamisaku::Error, "Aliases are not enabled in yaml text"
|
|
11
|
+
rescue Psych::DisallowedClass
|
|
12
|
+
raise Kamisaku::Error, error.message
|
|
9
13
|
end
|
|
10
14
|
|
|
11
15
|
def self.remove_metadata_from_pdf_file(file_path)
|
data/lib/kamisaku/version.rb
CHANGED