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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4292c2079171e643c3b2cbc54a57710c23e5b2abcc8689b03dcb25ecef691af2
4
- data.tar.gz: f101f3fae445b34b437612c29bb64e067c27d4f46e036d0c3e4d2d1d32019ddc
3
+ metadata.gz: cfdf7ddf6a45f5c5794ad3e1e820b07e38ab7ad24188cca2c9fcf637ccdb0ef1
4
+ data.tar.gz: 1cc9d43c15c69a760d22bb78f77b7d8e3e75f38005686f3e38f48f9adfcb16f2
5
5
  SHA512:
6
- metadata.gz: 281c18ed0c9ab2d7131c11cda21ba48be132fb5e09ac0aac738bb6e4f53644b767778dc2cd08c622f4e9a597aeaa2c7a28b15f6752beb8e778711bd331e805c7
7
- data.tar.gz: 8f07ab76298f53cd2d75790797d4a5823850ad5108f23dfcb9cdcf8e393b18417d8e525bbde89aa837831480b2a7392074826bddbc53bda285b0d618df6f7db3
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
- ## [Unreleased]
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kamisaku (0.4.2)
4
+ kamisaku (0.4.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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, update the version number in `version.rb`, and then run `bundle exec rake release`,
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
@@ -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, Psych::DisallowedClass, Psych::AliasesNotEnabled => error
8
- raise Kamisaku::Error.new error.message
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kamisaku
4
- VERSION = "0.4.2"
4
+ VERSION = "0.4.3"
5
5
  end
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.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sinaru Gunawardena