plaintext 0.3.5 → 0.3.6

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: 4441c66b3c0738f960ae199f27d86d2b39f3bfdbe700641c7684bfec97873f7e
4
- data.tar.gz: 65eda38776c07d5b3594bd54caff6d1e774896c853e379aad5249c54976a2853
3
+ metadata.gz: 7b83c481820cfe9770ab4b7f4b944914c11fb81fd172a27c826de76909971817
4
+ data.tar.gz: 0741b36344c615a88f399726cd537ffea16b2f33fd2139c420d876dfe32d9b07
5
5
  SHA512:
6
- metadata.gz: ce83e310d6468c1da82bf1a0d4ecc26a39c056f9ac0b1a10d53b8a2e80e4b54590b9c09085d3c48cfc5cab3ec1389357e99737ad7ca14e268c324115b104cdca
7
- data.tar.gz: 883e72d6bae46b1bf6be640d1b6c6d9fe43f257db159c3095572c5d2f9c100722e82842b2963a28d9f5f685773696fa44bad72c24d59c101d10fc5550d3fdce0
6
+ metadata.gz: 79d80cc1dd308314fe9bdf6a5d1a32aa2c351664007450216aa2a423856558a963fd657521d538ad3addf92d50c17d5bcc7b4a3b30fea0f24172be34f967778c
7
+ data.tar.gz: 83250bc79e9a7fcb78562cd5244b206f37814aa07bcac96f06cd0422e602d79a491f7993bd5f0efbb6d4edb4907c9d9b0d3bd525192a3047ab0a526edd982f68
data/CHANGELOG CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.3.6] - 2025-10-16
8
+
9
+ ### Fixed
10
+ - Resolver returns nil if the handler returns nil
11
+
7
12
  ## [0.3.5] - 2025-10-14
8
13
 
9
14
  ### Changed
@@ -36,8 +36,9 @@ module Plaintext
36
36
  # for the file type.
37
37
  def text
38
38
  if handler = find_handler and
39
- text = +handler.text(@file, max_size: max_plaintext_bytes)
39
+ text = handler.text(@file, max_size: max_plaintext_bytes)
40
40
 
41
+ text = +text
41
42
  text.gsub!(/\s+/m, ' ')
42
43
  text.strip!
43
44
  text.mb_chars.compose.limit(max_plaintext_bytes).to_s
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Plaintext
4
- VERSION = "0.3.5"
4
+ VERSION = "0.3.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plaintext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Krämer
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2025-10-14 00:00:00.000000000 Z
13
+ date: 2025-10-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport