datanorm 1.0.5 → 1.0.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 +4 -4
- data/lib/datanorm/lines/v5/dimension.rb +18 -2
- 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: 94780a135bc40c972dddf9d72aee476440c10c3ac158bcc91dea68e28049014d
|
|
4
|
+
data.tar.gz: f5ead4a1a2a6ae5c3996e1d5d41fb4a93ee80baca203a616edb4a1dcbbd01b8b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e0d4d7d2bf8f82378e9b524b3c59f37365fcaff69ad5e43dc6caa8942118bf8a5cec4cf763b0174755c2e6e803178118d04535d752880fbda3fcf247a1872870
|
|
7
|
+
data.tar.gz: f5c97c506cba0110606b5a447f699f7250730d421d903faa78e3b516e20249712b24250a8ddd5507adea86eeaa524d0c5559d6a6b424e2eedee11a49270309bf
|
|
@@ -4,17 +4,33 @@ module Datanorm
|
|
|
4
4
|
module Lines
|
|
5
5
|
module V5
|
|
6
6
|
# Immediate product description texts. Should take precedence over Text records.
|
|
7
|
+
# Aufbau der „D" Zeile (Dimensionstextsatz)
|
|
8
|
+
# 1 : Satzartenkennzeichen[1] : Buchstabe D für Dimensionstext
|
|
9
|
+
# 2 : Verarbeitungskennzeichen[1] : N=Neuanlage, L=Löschung, A=Änderung
|
|
10
|
+
# 3 : Artikelnummer[15] : Inhalt alphanumerische Zeichen
|
|
11
|
+
# 4 : Zeilennummer[2/0] : numerisch
|
|
12
|
+
# 5 : Unterkennzeichen[1] : alphanumerisch, F = freier Text, T = Einfügen von Textblöcken
|
|
13
|
+
# 6 : Frei[8] : alphanumerische Zeichen
|
|
14
|
+
# 7 : Zeilentext[40] : alphanumerische Zeichen
|
|
7
15
|
class Dimension < ::Datanorm::Lines::Base
|
|
8
16
|
def to_s
|
|
9
|
-
"[#{id}]
|
|
17
|
+
"<Dimension [#{id}] #{line_number.to_s.rjust(3)} #{content.gsub("\n", '⏎')}>"
|
|
10
18
|
end
|
|
11
19
|
|
|
12
20
|
def id
|
|
13
21
|
encode columns[2]
|
|
14
22
|
end
|
|
15
23
|
|
|
24
|
+
def line_number
|
|
25
|
+
columns[3].to_i
|
|
26
|
+
end
|
|
27
|
+
|
|
16
28
|
def content
|
|
17
|
-
|
|
29
|
+
encode columns[6]
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def <=>(other)
|
|
33
|
+
line_number <=> other.line_number
|
|
18
34
|
end
|
|
19
35
|
end
|
|
20
36
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: datanorm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- halo
|
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
156
156
|
- !ruby/object:Gem::Version
|
|
157
157
|
version: '0'
|
|
158
158
|
requirements: []
|
|
159
|
-
rubygems_version:
|
|
159
|
+
rubygems_version: 4.0.6
|
|
160
160
|
specification_version: 4
|
|
161
161
|
summary: Parse German DATANORM files like you belong to the 90s
|
|
162
162
|
test_files: []
|