pubid-core 1.12.7 → 1.12.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 482446f44487266ec6eaba1d786cdd6598e544e23abc3e278351960a615738bd
4
- data.tar.gz: a63ac5ceead17b50205ff1e3b98f1085643ee0001b7944e62fa7bbec66cae21d
3
+ metadata.gz: bed399c7017bc24dfde32d04b76eef0b0a5d363fa7c6e8d4a52cda4323d68711
4
+ data.tar.gz: 7b0e566fbdecd88f9243f9f18fb1e03f6b0d63d73a1211474dddfbcf1bf0d129
5
5
  SHA512:
6
- metadata.gz: 39c079582f8e1ec2f8dcfa006a0c2ef4b7c3e059badbfff247d19d084d2eba7ec2b03da0001a346df19e3c852fad8af6db8d06249cabc219a05fdb3f52b41971
7
- data.tar.gz: 05ef2151e01923b22a4882d2139b6bc283390b02ed9fc626290df82ab5188501889cfadb3d294cdfdad6b61629f6c5138f64fb584ccd3107cb4de2ff54ac4ada
6
+ metadata.gz: 74e66447a935858d57b395b2324dbc2b1b250f0c8ecb45d3fb009fc82c8546bc2efb55fb0a9379c78f5c8a8d1da5c86adb8e50d8f2238edf5f92064d4a692bf2
7
+ data.tar.gz: e0b4714e2936ab20d7666c9fcdd1efc4a967f627071753c2bb65e4c48deacfa9f41b1b5c5092e2cff25458bdccc849e28bfc8ba89b480f4e489c36e3c7f0873f
@@ -83,6 +83,11 @@ module Pubid::Core
83
83
  result.reject { |k, v| k != :number && v.nil? }
84
84
  end
85
85
 
86
+ def to_yaml
87
+ # use #to_h for serialization to avoid !ruby/object in output
88
+ to_h.to_yaml
89
+ end
90
+
86
91
  def ==(other)
87
92
  if other.is_a?(String)
88
93
  to_s == other
@@ -1,5 +1,5 @@
1
1
  module Pubid
2
2
  module Core
3
- VERSION = "1.12.7".freeze
3
+ VERSION = "1.12.8".freeze
4
4
  end
5
5
  end
data/lib/pubid/core.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "parslet"
2
+ require "yaml"
2
3
 
3
4
  require_relative "core/configuration"
4
5
  require_relative "core/errors"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubid-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.7
4
+ version: 1.12.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-04 00:00:00.000000000 Z
11
+ date: 2024-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake