xdt 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +1 -1
- data/lib/gdt/field_definitions.rb +1 -0
- data/lib/xdt/ldt.rb +10 -10
- data/xdt.gemspec +2 -2
- metadata +33 -56
- data/.DS_Store +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 67e584d71e33373d97ecd36a4f791a5d72738268
|
4
|
+
data.tar.gz: bb6e7da4bc73e5c0dff36c4fb6b76fb96f301e78
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5e3a4db34cc643721d42b77e159ec441fe739c50c3f9554401ef31af886606dc1c7c7a1fa57a485a3b460a92a8b9799e77d1ffb6cbe2012bfb6e5832504fba2b
|
7
|
+
data.tar.gz: 71ff7e711abfae2f9ce8a67476bca8daf8f118cb003ac1f25c94d4fa4a3431ae90a552504f611898675f23576154531602506f26d7b2d236e39403cccfa97ad1
|
data/Rakefile
CHANGED
data/lib/xdt/ldt.rb
CHANGED
@@ -20,28 +20,28 @@ module Xdt
|
|
20
20
|
module Ldt
|
21
21
|
module Package
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
class LGReport
|
25
|
-
|
25
|
+
|
26
26
|
# only write the file if it contains any sections
|
27
27
|
#
|
28
28
|
def write_file(filename)
|
29
29
|
return false unless @sections.length > 2
|
30
|
-
|
30
|
+
|
31
31
|
File.open(filename, "w+") do |f|
|
32
32
|
f.write self.to_s
|
33
33
|
end
|
34
|
-
|
34
|
+
|
35
35
|
return true
|
36
36
|
end
|
37
|
-
|
37
|
+
|
38
38
|
def section(id, &blk)
|
39
39
|
@sections << Xdt::Section.new(id, &blk)
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
42
|
def initialize
|
43
43
|
@sections = []
|
44
|
-
|
44
|
+
|
45
45
|
section("8220") do |s|
|
46
46
|
s.field("9211", "07/99")
|
47
47
|
# s.field("0201", "") # Arztnummer
|
@@ -53,7 +53,7 @@ module Xdt
|
|
53
53
|
# s.field("0101", "") # KBV Prüfnummer
|
54
54
|
s.field("9106", "3") # Charset (iso-8859-1)
|
55
55
|
s.field("8312", "1") # Kundennummer
|
56
|
-
s.field("9103", Date.today.strftime("%
|
56
|
+
s.field("9103", Date.today.strftime("%d%m%Y"))
|
57
57
|
end
|
58
58
|
|
59
59
|
yield self if block_given?
|
@@ -68,11 +68,11 @@ module Xdt
|
|
68
68
|
def length
|
69
69
|
@sections.inject(0) { |sum, section| sum + section.length }
|
70
70
|
end
|
71
|
-
|
71
|
+
|
72
72
|
def to_s
|
73
73
|
@sections.map { |pkg| pkg.to_s }.join
|
74
74
|
end
|
75
|
-
|
75
|
+
|
76
76
|
end
|
77
77
|
end
|
78
78
|
end
|
data/xdt.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{xdt}
|
3
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.6"
|
4
4
|
|
5
5
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
6
6
|
s.authors = ["Levin Alexander"]
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.email = ["mail@levinalex.net"]
|
11
11
|
s.executables = ["gdt2http"]
|
12
12
|
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
|
13
|
-
s.files = ["
|
13
|
+
s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/gdt2http", "lib/gdt/field_definitions.rb", "lib/gdt/field_handling.rb", "lib/gdt/parser.rb", "lib/gdt2http.rb", "lib/gdt_interface.rb", "lib/xdt.rb", "lib/xdt/ldt.rb", "lib/xdt/markup.rb", "lib/xdt/xdt_fields.rb", "lib/xdt/xdt_sections.rb", "spec/examples/BARCQPCN.001", "spec/gdt_field_definitions_spec.rb", "spec/gdt_parser_spec.rb", "spec/gdt_spec.rb", "spec/lg_report_spec.rb", "spec/xdt_spec.rb", "xdt.gemspec"]
|
14
14
|
s.has_rdoc = true
|
15
15
|
s.homepage = %q{http://levinalex.net/src/xdt}
|
16
16
|
s.rdoc_options = ["--main", "README.txt"]
|
metadata
CHANGED
@@ -1,52 +1,40 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: xdt
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 5
|
10
|
-
version: 1.0.5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.6
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Levin Alexander
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2008-11-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: hoe
|
23
|
-
|
24
|
-
|
25
|
-
none: false
|
26
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
27
17
|
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 55
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 8
|
33
|
-
- 0
|
18
|
+
- !ruby/object:Gem::Version
|
34
19
|
version: 1.8.0
|
35
20
|
type: :development
|
36
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.8.0
|
37
27
|
description: xDT is a library that reads and writes LDT, GDT and BDT data.
|
38
|
-
email:
|
28
|
+
email:
|
39
29
|
- mail@levinalex.net
|
40
|
-
executables:
|
30
|
+
executables:
|
41
31
|
- gdt2http
|
42
32
|
extensions: []
|
43
|
-
|
44
|
-
extra_rdoc_files:
|
33
|
+
extra_rdoc_files:
|
45
34
|
- History.txt
|
46
35
|
- Manifest.txt
|
47
36
|
- README.txt
|
48
|
-
files:
|
49
|
-
- .DS_Store
|
37
|
+
files:
|
50
38
|
- History.txt
|
51
39
|
- Manifest.txt
|
52
40
|
- README.txt
|
@@ -69,40 +57,29 @@ files:
|
|
69
57
|
- spec/lg_report_spec.rb
|
70
58
|
- spec/xdt_spec.rb
|
71
59
|
- xdt.gemspec
|
72
|
-
has_rdoc: true
|
73
60
|
homepage: http://levinalex.net/src/xdt
|
74
61
|
licenses: []
|
75
|
-
|
62
|
+
metadata: {}
|
76
63
|
post_install_message:
|
77
|
-
rdoc_options:
|
78
|
-
- --main
|
64
|
+
rdoc_options:
|
65
|
+
- "--main"
|
79
66
|
- README.txt
|
80
|
-
require_paths:
|
67
|
+
require_paths:
|
81
68
|
- lib
|
82
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
-
|
84
|
-
requirements:
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
85
71
|
- - ">="
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
version: "0"
|
91
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
|
-
none: false
|
93
|
-
requirements:
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
94
76
|
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
|
97
|
-
segments:
|
98
|
-
- 0
|
99
|
-
version: "0"
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
100
79
|
requirements: []
|
101
|
-
|
102
80
|
rubyforge_project: xdt
|
103
|
-
rubygems_version:
|
81
|
+
rubygems_version: 2.2.3
|
104
82
|
signing_key:
|
105
83
|
specification_version: 2
|
106
84
|
summary: xDT is a library that reads and writes LDT, GDT and BDT data.
|
107
85
|
test_files: []
|
108
|
-
|
data/.DS_Store
DELETED
Binary file
|