expressir 2.4.84 → 2.4.85

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: 4df135bda84c7190c79e76f7bda8956ce0e36e5da0aad17258d6321ebde8c157
4
- data.tar.gz: b2dbfb49040ddd0eed421b108ded9d461c52a2cafca559df8c059b6551017592
3
+ metadata.gz: 692357a8250b0effac9d0635ab4262aca83bd7a983f45f10071ba31189942d69
4
+ data.tar.gz: f3730365aa5226fc12705b7630f2e36d21b8786bc4898b817b76d7132938e63b
5
5
  SHA512:
6
- metadata.gz: e97839ff621da04e2939ed61776f933655cd456b42c2ae33cf278d6f3f5eaf7bbfc3ec7f44b022143274f55827796beb07dcd2876d1c5930386a85aaf278f243
7
- data.tar.gz: c8a2ae72d8a25398f0548e05c3630861da477f1cb4179a1247958fede687fb386fdc5624e61f38171587c0a74b37f743c59ff09edadfc8e1a0e45b261cff591b
6
+ metadata.gz: 2f27adc988fd88e6135e09e8438389764649a2a0c1fca966c3300de01183a18ef9987399c561d0597c99fbd5fc77daa9398deceecdc8545199bb0b1c09b37992
7
+ data.tar.gz: 858ffe8c574f81f93f3209ddaa6de337e1bc0da01321796771e02c37be42647a2b94793bbd36bb335d9950c16e21fb736dc68c659d75e5f610971a6e3b933825
@@ -43,6 +43,18 @@ module Expressir
43
43
  end
44
44
  private_class_method :strip_bom
45
45
 
46
+ # The batch path only: the file's raw bytes, BOM-stripped. The
47
+ # batch workers open the files themselves, so their source offsets
48
+ # are raw-byte positions (CRLF intact) — a text-mode read would
49
+ # translate CRLF on Windows and leave the attach pass's text
50
+ # shorter than every offset past the first line end (#778). The
51
+ # string-parsed paths keep text-mode reads: their offsets follow
52
+ # the string that is handed over.
53
+ def self.read_source_raw(file)
54
+ strip_bom(File.binread(file).force_encoding(Encoding::UTF_8))
55
+ end
56
+ private_class_method :read_source_raw
57
+
46
58
  # Parses Express file into an Express model.
47
59
  # @param file [String] Express file path
48
60
  # @param skip_references [Boolean] skip resolving references
@@ -397,7 +409,7 @@ module Expressir
397
409
  file = physical[ordered_path]
398
410
  loaded, load_error = entry
399
411
  if loaded
400
- source = strip_bom(File.read(file))
412
+ source = read_source_raw(file)
401
413
  loaded.wire_parents
402
414
  finalize_loaded_file(loaded, source, ordered_path,
403
415
  include_source: include_source)
@@ -3,6 +3,6 @@ module Expressir
3
3
  # autoload it (Ruby autoload only works for module/class constants, not
4
4
  # for string constants like `Expressir::VERSION`).
5
5
  module Version
6
- VERSION = "2.4.84".freeze
6
+ VERSION = "2.4.85".freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expressir
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.84
4
+ version: 2.4.85
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-24 00:00:00.000000000 Z
11
+ date: 2026-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys