rtp-connect 1.8 → 1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ module RTP
9
9
  class SiteSetup < Record
10
10
 
11
11
  # The Record which this instance belongs to.
12
- attr_reader :parent
12
+ attr_accessor :parent
13
13
  attr_reader :rx_site_name
14
14
  attr_reader :patient_orientation
15
15
  attr_reader :treatment_machine
@@ -107,25 +107,6 @@ module RTP
107
107
  state.hash
108
108
  end
109
109
 
110
- # Encodes the SiteSetup object + any hiearchy of child objects,
111
- # to a properly formatted RTPConnect ascii string.
112
- #
113
- # @param [Hash] options an optional hash parameter
114
- # @option options [Float] :version the Mosaiq compatibility version number (e.g. 2.4) used for the output
115
- # @return [String] an RTP string with a single or multiple lines/records
116
- #
117
- def to_s(options={})
118
- str = encode(options)
119
- if children
120
- children.each do |child|
121
- str += child.to_s(options)
122
- end
123
- end
124
- return str
125
- end
126
-
127
- alias :to_str :to_s
128
-
129
110
  # Returns self.
130
111
  #
131
112
  # @return [SiteSetup] self
@@ -1,6 +1,6 @@
1
- module RTP
2
-
3
- # The RTPConnect library version string.
4
- VERSION = '1.8'
5
-
1
+ module RTP
2
+
3
+ # The RTPConnect library version string.
4
+ VERSION = '1.9'
5
+
6
6
  end
@@ -1,28 +1,28 @@
1
- # encoding: UTF-8
2
-
3
- require File.expand_path('../lib/rtp-connect/version', __FILE__)
4
-
5
- Gem::Specification.new do |s|
6
- s.platform = Gem::Platform::RUBY
7
- s.name = 'rtp-connect'
8
- s.version = RTP::VERSION
9
- s.date = Time.now
10
- s.summary = 'Library for handling RTPConnect files.'
11
- s.require_paths = ['lib']
12
- s.author = 'Christoffer Lervag'
13
- s.email = 'chris.lervag@gmail.com'
14
- s.homepage = 'https://github.com/dicom/rtp-connect'
15
- s.license = 'GPLv3'
16
- s.description = 'RTPConnect is a file format used in radiotherapy for export & import of treatment planning data.'
17
- s.files = Dir["{lib}/**/*", "[A-Z]*"]
18
-
19
- s.required_ruby_version = '>= 1.9.3'
20
-
21
- s.add_development_dependency('bundler', '~> 1.6')
22
- s.add_development_dependency('dicom', '~> 0.9', '>= 0.9.6')
23
- s.add_development_dependency('mocha', '~> 1.1')
24
- s.add_development_dependency('rake', '~> 10.3')
25
- s.add_development_dependency('redcarpet', '~> 3.1')
26
- s.add_development_dependency('rspec', '~> 3.0')
27
- s.add_development_dependency('yard', '~> 0.8', '>= 0.8.7')
1
+ # encoding: UTF-8
2
+
3
+ require File.expand_path('../lib/rtp-connect/version', __FILE__)
4
+
5
+ Gem::Specification.new do |s|
6
+ s.platform = Gem::Platform::RUBY
7
+ s.name = 'rtp-connect'
8
+ s.version = RTP::VERSION
9
+ s.date = Time.now
10
+ s.summary = 'Library for handling RTPConnect files.'
11
+ s.require_paths = ['lib']
12
+ s.author = 'Christoffer Lervag'
13
+ s.email = 'chris.lervag@gmail.com'
14
+ s.homepage = 'https://github.com/dicom/rtp-connect'
15
+ s.license = 'GPL-3.0'
16
+ s.description = 'RTPConnect is a file format used in radiotherapy for export & import of treatment planning data.'
17
+ s.files = Dir["{lib}/**/*", "[A-Z]*"]
18
+
19
+ s.required_ruby_version = '>= 1.9.3'
20
+
21
+ s.add_development_dependency('bundler', '~> 1.8')
22
+ s.add_development_dependency('dicom', '~> 0.9', '>= 0.9.6')
23
+ s.add_development_dependency('mocha', '~> 1.1')
24
+ s.add_development_dependency('rake', '~> 10.4')
25
+ s.add_development_dependency('redcarpet', '~> 3.2')
26
+ s.add_development_dependency('rspec', '~> 3.2')
27
+ s.add_development_dependency('yard', '~> 0.8', '>= 0.8.7')
28
28
  end
metadata CHANGED
@@ -1,123 +1,123 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtp-connect
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.8'
4
+ version: '1.9'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoffer Lervag
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-19 00:00:00.000000000 Z
11
+ date: 2016-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.6'
19
+ version: '1.8'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.6'
26
+ version: '1.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: dicom
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0.9'
34
- - - ! '>='
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
36
  version: 0.9.6
37
37
  type: :development
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ~>
41
+ - - "~>"
42
42
  - !ruby/object:Gem::Version
43
43
  version: '0.9'
44
- - - ! '>='
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: 0.9.6
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: mocha
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ~>
51
+ - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '1.1'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ~>
58
+ - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: '1.1'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rake
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - ~>
65
+ - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '10.3'
67
+ version: '10.4'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ~>
72
+ - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '10.3'
74
+ version: '10.4'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: redcarpet
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ~>
79
+ - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '3.1'
81
+ version: '3.2'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ~>
86
+ - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '3.1'
88
+ version: '3.2'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: rspec
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ~>
93
+ - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '3.0'
95
+ version: '3.2'
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - ~>
100
+ - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '3.0'
102
+ version: '3.2'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: yard
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ~>
107
+ - - "~>"
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0.8'
110
- - - ! '>='
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: 0.8.7
113
113
  type: :development
114
114
  prerelease: false
115
115
  version_requirements: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ~>
117
+ - - "~>"
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0.8'
120
- - - ! '>='
120
+ - - ">="
121
121
  - !ruby/object:Gem::Version
122
122
  version: 0.8.7
123
123
  description: RTPConnect is a file format used in radiotherapy for export & import
@@ -154,7 +154,7 @@ files:
154
154
  - rtp-connect.gemspec
155
155
  homepage: https://github.com/dicom/rtp-connect
156
156
  licenses:
157
- - GPLv3
157
+ - GPL-3.0
158
158
  metadata: {}
159
159
  post_install_message:
160
160
  rdoc_options: []
@@ -162,17 +162,17 @@ require_paths:
162
162
  - lib
163
163
  required_ruby_version: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - ! '>='
165
+ - - ">="
166
166
  - !ruby/object:Gem::Version
167
167
  version: 1.9.3
168
168
  required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  requirements:
170
- - - ! '>='
170
+ - - ">="
171
171
  - !ruby/object:Gem::Version
172
172
  version: '0'
173
173
  requirements: []
174
174
  rubyforge_project:
175
- rubygems_version: 2.4.5
175
+ rubygems_version: 2.5.0
176
176
  signing_key:
177
177
  specification_version: 4
178
178
  summary: Library for handling RTPConnect files.