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 +4 -4
- data/lib/expressir/express/parser.rb +13 -1
- data/lib/expressir/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 692357a8250b0effac9d0635ab4262aca83bd7a983f45f10071ba31189942d69
|
|
4
|
+
data.tar.gz: f3730365aa5226fc12705b7630f2e36d21b8786bc4898b817b76d7132938e63b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 =
|
|
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)
|
data/lib/expressir/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2026-11-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rb_sys
|