asciidoctor-diagram 2.2.16 → 2.2.17

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: 5dfd093dfde34e811db4c81fd13bff407b0727427d4b35fddb0dc257cd6da366
4
- data.tar.gz: 8d77d2f81168c22c6311b2f26a3c9497235359ded37664e8e3c8e92aa8c2729b
3
+ metadata.gz: 23e0718c877d72f84af027588bb5a9d100dda3568b34e89655f26c7cf7a4eb07
4
+ data.tar.gz: a4ecd6791f531cb9654651ae982e7e52406a462075814a78106188729388f45e
5
5
  SHA512:
6
- metadata.gz: 414ba6dbfc0a7bc73870c2135aa8b01b7f340225066a59450a75801aeb40eeeb975329db0729e10fd33229ab325f06408e396e39e1d6cbb7d99565ada29aa14c
7
- data.tar.gz: 8dccd7d208769ee8034e6d6dac12ad7c5c02a81970f371759906713fc9f898423298717cadadbe629c91b899cc17d84ff664acd67a9c3f467d6ffd11ea3167b2
6
+ metadata.gz: 5982bee6e194b651cac1b55af22fb0cc7ccc51341e952f08f70c978efbf2a58d1392f2095607e574ab3078bc4c3b4c9b2424f75c0420f2bad7f8e033c45b52ee
7
+ data.tar.gz: 402707bbd842e2ec8fcf3da65ee60287d08dcbb0f5b0610313ca05985899c03d06a1199aab25632b06239df57d83408f7be73b53981653aaaa49c4f4884df4b8
data/CHANGELOG.adoc CHANGED
@@ -1,5 +1,11 @@
1
1
  = Asciidoctor-diagram Changelog
2
2
 
3
+ == 2.2.17
4
+
5
+ Bugfixes::
6
+
7
+ * Issue #455: Fix regression in reading of UTF-8 source files introduced in 2.2.15
8
+
3
9
  == 2.2.16
4
10
 
5
11
  Bugfixes::
@@ -336,9 +336,9 @@ module Asciidoctor
336
336
  elsif data.start_with?(BOM_BYTES_UTF_16BE)
337
337
  utf8_data = data.byteslice(2, data.bytesize).encode(::Encoding::UTF_8, ::Encoding::UTF_16BE)
338
338
  elsif data.start_with?(BOM_BYTES_UTF_8)
339
- utf8_data = data.byteslice(3, data.bytesize).encode(::Encoding::UTF_8)
339
+ utf8_data = data.byteslice(3, data.bytesize).force_encoding(::Encoding::UTF_8)
340
340
  else
341
- utf8_data = data.encode(::Encoding::UTF_8)
341
+ utf8_data = data.force_encoding(::Encoding::UTF_8)
342
342
  end
343
343
 
344
344
  utf8_data.lines.map {|line| line.rstrip}
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module Diagram
3
- VERSION = "2.2.16"
3
+ VERSION = "2.2.17"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-diagram
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.16
4
+ version: 2.2.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pepijn Van Eeckhoudt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-26 00:00:00.000000000 Z
11
+ date: 2024-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -272,7 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
272
272
  - !ruby/object:Gem::Version
273
273
  version: '0'
274
274
  requirements: []
275
- rubygems_version: 3.4.13
275
+ rubygems_version: 3.2.22
276
276
  signing_key:
277
277
  specification_version: 4
278
278
  summary: A family of Asciidoctor extensions that generate images from a broad range