rtp-connect 1.3 → 1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.rdoc +6 -0
- data/Gemfile.lock +35 -0
- data/README.rdoc +2 -1
- data/lib/rtp-connect/plan.rb +3 -5
- data/lib/rtp-connect/record.rb +1 -1
- data/lib/rtp-connect/version.rb +1 -1
- data/rtp-connect.gemspec +1 -1
- metadata +12 -25
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 608db71e1938261eadc2ddfd734ecb443a2019cb
|
4
|
+
data.tar.gz: a7e1884ba12be45f0b906c7c21297428a14d0b15
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a29bc92f707aa0c49ade264c82e1d6483e84c4809fc26bc8c248dc35718b4d70484feb03c54e9ec69d4b3db2712b7bcc05990af52e0803fe0db714a71f22dfb8
|
7
|
+
data.tar.gz: d98b02668a1107a4a3d9aa0be088cbe95b3def35296b28f88b1d46ebe1a4706ec4b42c1863e0deea9a8ebdc0dd044cca8f0695e18b967c3d68db3396094a3cb1
|
data/CHANGELOG.rdoc
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
rtp-connect (1.4)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: http://www.rubygems.org/
|
8
|
+
specs:
|
9
|
+
dicom (0.9.5)
|
10
|
+
diff-lcs (1.2.1)
|
11
|
+
metaclass (0.0.1)
|
12
|
+
mocha (0.13.2)
|
13
|
+
metaclass (~> 0.0.1)
|
14
|
+
rake (0.9.6)
|
15
|
+
rspec (2.13.0)
|
16
|
+
rspec-core (~> 2.13.0)
|
17
|
+
rspec-expectations (~> 2.13.0)
|
18
|
+
rspec-mocks (~> 2.13.0)
|
19
|
+
rspec-core (2.13.0)
|
20
|
+
rspec-expectations (2.13.0)
|
21
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
22
|
+
rspec-mocks (2.13.0)
|
23
|
+
yard (0.8.5)
|
24
|
+
|
25
|
+
PLATFORMS
|
26
|
+
x86-mingw32
|
27
|
+
|
28
|
+
DEPENDENCIES
|
29
|
+
bundler (~> 1.2)
|
30
|
+
dicom (~> 0.9.5)
|
31
|
+
mocha (~> 0.12)
|
32
|
+
rake (~> 0.9.2)
|
33
|
+
rspec (~> 2.11)
|
34
|
+
rtp-connect!
|
35
|
+
yard (~> 0.8.2)
|
data/README.rdoc
CHANGED
@@ -100,6 +100,7 @@ Example:
|
|
100
100
|
=== Unsupported records
|
101
101
|
|
102
102
|
* Simulation field [SIM_DEF]
|
103
|
+
* Extended plan definition [EXTENDED_PLAN_DEF]
|
103
104
|
* Document based treatment field [PDF_FIELD_DEF]
|
104
105
|
* Multileaf collimator [MLC_DEF]
|
105
106
|
* MLC shape [MLC_SHAPE_DEF]
|
@@ -110,7 +111,7 @@ If you encounter an RTP file with an unsupported record type, please contact me.
|
|
110
111
|
|
111
112
|
== COPYRIGHT
|
112
113
|
|
113
|
-
Copyright 2011-
|
114
|
+
Copyright 2011-2013 Christoffer Lervåg
|
114
115
|
|
115
116
|
This program is free software: you can redistribute it and/or modify
|
116
117
|
it under the terms of the GNU General Public License as published by
|
data/lib/rtp-connect/plan.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2011-
|
1
|
+
# Copyright 2011-2013 Christoffer Lervag
|
2
2
|
#
|
3
3
|
# This program is free software: you can redistribute it and/or modify
|
4
4
|
# it under the terms of the GNU General Public License as published by
|
@@ -153,8 +153,7 @@ module RTP
|
|
153
153
|
if File.size(file) < 10
|
154
154
|
logger.error("This file is too small to contain valid RTP information: #{file}.")
|
155
155
|
else
|
156
|
-
str = File.open(file,
|
157
|
-
#str = File.open(file, "r:UTF-8") { |f| f.read }
|
156
|
+
str = File.open(file, 'rb:ISO8859-1') { |f| f.read }
|
158
157
|
end
|
159
158
|
end
|
160
159
|
end
|
@@ -568,7 +567,6 @@ module RTP
|
|
568
567
|
if File.exist?(file)
|
569
568
|
# Is (the existing file) writable?
|
570
569
|
unless File.writable?(file)
|
571
|
-
#logger.error("The program does not have permission or resources to create this file: #{file}")
|
572
570
|
raise "The program does not have permission or resources to create this file: #{file}"
|
573
571
|
end
|
574
572
|
else
|
@@ -588,7 +586,7 @@ module RTP
|
|
588
586
|
end
|
589
587
|
end
|
590
588
|
# It has been verified that the file can be created:
|
591
|
-
return File.new(file,
|
589
|
+
return File.new(file, 'wb:ISO8859-1')
|
592
590
|
end
|
593
591
|
|
594
592
|
# Creates a prescription site record from the given string.
|
data/lib/rtp-connect/record.rb
CHANGED
@@ -29,7 +29,7 @@ module RTP
|
|
29
29
|
content = values.encode + ","
|
30
30
|
checksum = content.checksum
|
31
31
|
# Complete string is content + checksum (in double quotes) + carriage return + line feed
|
32
|
-
return content + checksum.to_s.wrap + "\r\n"
|
32
|
+
return (content + checksum.to_s.wrap + "\r\n").encode('ISO8859-1')
|
33
33
|
end
|
34
34
|
|
35
35
|
# Follows the tree of parents until the appropriate parent of the requesting record is found.
|
data/lib/rtp-connect/version.rb
CHANGED
data/rtp-connect.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.required_ruby_version = '>= 1.9.2'
|
21
21
|
|
22
22
|
s.add_development_dependency('bundler', '~> 1.2')
|
23
|
-
s.add_development_dependency('dicom', '0.9.
|
23
|
+
s.add_development_dependency('dicom', '~> 0.9.5')
|
24
24
|
s.add_development_dependency('mocha', '~> 0.12')
|
25
25
|
s.add_development_dependency('rake', '~> 0.9.2')
|
26
26
|
s.add_development_dependency('rspec', '~> 2.11')
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtp-connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
5
|
-
prerelease:
|
4
|
+
version: '1.4'
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Christoffer Lervag
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-04-10 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,23 +27,20 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: dicom
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: 0.9.
|
33
|
+
version: 0.9.5
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.9.
|
40
|
+
version: 0.9.5
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: mocha
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rake
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ~>
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ~>
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -78,7 +69,6 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: rspec
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ~>
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ~>
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -94,7 +83,6 @@ dependencies:
|
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: yard
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
87
|
- - ~>
|
100
88
|
- !ruby/object:Gem::Version
|
@@ -102,7 +90,6 @@ dependencies:
|
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
94
|
- - ~>
|
108
95
|
- !ruby/object:Gem::Version
|
@@ -133,33 +120,33 @@ files:
|
|
133
120
|
- CHANGELOG.rdoc
|
134
121
|
- COPYING
|
135
122
|
- Gemfile
|
123
|
+
- Gemfile.lock
|
136
124
|
- rakefile.rb
|
137
125
|
- README.rdoc
|
138
126
|
- rtp-connect.gemspec
|
139
127
|
homepage: https://github.com/dicom/rtp-connect
|
140
128
|
licenses:
|
141
129
|
- GPLv3
|
130
|
+
metadata: {}
|
142
131
|
post_install_message:
|
143
132
|
rdoc_options: []
|
144
133
|
require_paths:
|
145
134
|
- lib
|
146
135
|
required_ruby_version: !ruby/object:Gem::Requirement
|
147
|
-
none: false
|
148
136
|
requirements:
|
149
|
-
- -
|
137
|
+
- - '>='
|
150
138
|
- !ruby/object:Gem::Version
|
151
139
|
version: 1.9.2
|
152
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
141
|
requirements:
|
155
|
-
- -
|
142
|
+
- - '>='
|
156
143
|
- !ruby/object:Gem::Version
|
157
144
|
version: '0'
|
158
145
|
requirements: []
|
159
146
|
rubyforge_project: rtp-connect
|
160
|
-
rubygems_version:
|
147
|
+
rubygems_version: 2.0.0
|
161
148
|
signing_key:
|
162
|
-
specification_version:
|
149
|
+
specification_version: 4
|
163
150
|
summary: Library for handling RTPConnect files.
|
164
151
|
test_files: []
|
165
152
|
has_rdoc:
|