dicom 0.9.6 → 0.9.7
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 +5 -13
- data/CHANGELOG.md +390 -376
- data/COPYING +674 -674
- data/Gemfile +2 -2
- data/Gemfile.lock +30 -28
- data/README.md +154 -152
- data/dicom.gemspec +30 -30
- data/lib/dicom/anonymizer.rb +677 -654
- data/lib/dicom/audit_trail.rb +109 -109
- data/lib/dicom/d_library.rb +269 -265
- data/lib/dicom/d_object.rb +465 -465
- data/lib/dicom/d_read.rb +21 -8
- data/lib/dicom/d_server.rb +329 -329
- data/lib/dicom/d_write.rb +355 -355
- data/lib/dicom/dictionary/elements.tsv +597 -86
- data/lib/dicom/dictionary/uids.tsv +4 -2
- data/lib/dicom/elemental_parent.rb +63 -63
- data/lib/dicom/extensions/array.rb +56 -56
- data/lib/dicom/extensions/hash.rb +30 -30
- data/lib/dicom/extensions/string.rb +125 -125
- data/lib/dicom/file_handler.rb +121 -121
- data/lib/dicom/general/constants.rb +210 -210
- data/lib/dicom/general/deprecated.rb +0 -320
- data/lib/dicom/general/logging.rb +155 -155
- data/lib/dicom/general/methods.rb +98 -82
- data/lib/dicom/general/variables.rb +28 -28
- data/lib/dicom/general/version.rb +5 -5
- data/lib/dicom/image_item.rb +836 -836
- data/lib/dicom/image_processor.rb +79 -79
- data/lib/dicom/image_processor_mini_magick.rb +71 -71
- data/lib/dicom/image_processor_r_magick.rb +106 -106
- data/lib/dicom/link.rb +1529 -1528
- data/rakefile.rb +29 -30
- metadata +43 -49
data/rakefile.rb
CHANGED
@@ -1,31 +1,30 @@
|
|
1
|
-
# Available commands:
|
2
|
-
# Testing the specification:
|
3
|
-
# bundle exec rake spec
|
4
|
-
# Building a gem from source with rake:
|
5
|
-
# bundle exec rake package
|
6
|
-
# Building a gem from source with rubygems:
|
7
|
-
# bundle exec gem build dicom.gemspec
|
8
|
-
# Create html documentation files:
|
9
|
-
# bundle exec rake yard
|
10
|
-
|
11
|
-
require 'rubygems/package_task'
|
12
|
-
require 'rspec/core/rake_task'
|
13
|
-
require 'yard'
|
14
|
-
|
15
|
-
# Build gem:
|
16
|
-
gem_spec = eval(File.read('dicom.gemspec'))
|
17
|
-
Gem::PackageTask.new(gem_spec) do |pkg|
|
18
|
-
pkg.gem_spec = gem_spec
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
t.
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
t.options += ['--title', "ruby-dicom #{DICOM::VERSION} Documentation"]
|
1
|
+
# Available commands:
|
2
|
+
# Testing the specification:
|
3
|
+
# bundle exec rake spec
|
4
|
+
# Building a gem from source with rake:
|
5
|
+
# bundle exec rake package
|
6
|
+
# Building a gem from source with rubygems:
|
7
|
+
# bundle exec gem build dicom.gemspec
|
8
|
+
# Create html documentation files:
|
9
|
+
# bundle exec rake yard
|
10
|
+
|
11
|
+
require 'rubygems/package_task'
|
12
|
+
require 'rspec/core/rake_task'
|
13
|
+
require 'yard'
|
14
|
+
|
15
|
+
# Build gem:
|
16
|
+
gem_spec = eval(File.read('dicom.gemspec'))
|
17
|
+
Gem::PackageTask.new(gem_spec) do |pkg|
|
18
|
+
pkg.gem_spec = gem_spec
|
19
|
+
end
|
20
|
+
|
21
|
+
# RSpec:
|
22
|
+
RSpec::Core::RakeTask.new do |t|
|
23
|
+
t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
|
24
|
+
t.pattern = 'spec/**/*_spec.rb'
|
25
|
+
end
|
26
|
+
|
27
|
+
# Build documentation (YARD):
|
28
|
+
YARD::Rake::YardocTask.new do |t|
|
29
|
+
t.options += ['--title', "ruby-dicom #{DICOM::VERSION} Documentation"]
|
31
30
|
end
|
metadata
CHANGED
@@ -1,157 +1,151 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dicom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christoffer Lervag
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-04 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.
|
19
|
+
version: '1.11'
|
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.
|
26
|
+
version: '1.11'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mini_magick
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '4.4'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '4.4'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: mocha
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.1'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: narray
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0.6'
|
62
|
-
- -
|
62
|
+
- - ">="
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: 0.6.
|
64
|
+
version: 0.6.1
|
65
65
|
type: :development
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- - ~>
|
69
|
+
- - "~>"
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: '0.6'
|
72
|
-
- -
|
72
|
+
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0.6.
|
74
|
+
version: 0.6.1
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: rake
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - ~>
|
79
|
+
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '10.
|
81
|
+
version: '10.5'
|
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: '10.
|
88
|
+
version: '10.5'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: redcarpet
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- - ~>
|
93
|
+
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '3.
|
95
|
+
version: '3.3'
|
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.
|
102
|
+
version: '3.3'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: rmagick
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- - ~>
|
107
|
+
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '2.
|
110
|
-
- - ! '>='
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
version: 2.13.2
|
109
|
+
version: '2.15'
|
113
110
|
type: :development
|
114
111
|
prerelease: false
|
115
112
|
version_requirements: !ruby/object:Gem::Requirement
|
116
113
|
requirements:
|
117
|
-
- - ~>
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: '2.13'
|
120
|
-
- - ! '>='
|
114
|
+
- - "~>"
|
121
115
|
- !ruby/object:Gem::Version
|
122
|
-
version: 2.
|
116
|
+
version: '2.15'
|
123
117
|
- !ruby/object:Gem::Dependency
|
124
118
|
name: rspec
|
125
119
|
requirement: !ruby/object:Gem::Requirement
|
126
120
|
requirements:
|
127
|
-
- - ~>
|
121
|
+
- - "~>"
|
128
122
|
- !ruby/object:Gem::Version
|
129
|
-
version: '3.
|
123
|
+
version: '3.4'
|
130
124
|
type: :development
|
131
125
|
prerelease: false
|
132
126
|
version_requirements: !ruby/object:Gem::Requirement
|
133
127
|
requirements:
|
134
|
-
- - ~>
|
128
|
+
- - "~>"
|
135
129
|
- !ruby/object:Gem::Version
|
136
|
-
version: '3.
|
130
|
+
version: '3.4'
|
137
131
|
- !ruby/object:Gem::Dependency
|
138
132
|
name: yard
|
139
133
|
requirement: !ruby/object:Gem::Requirement
|
140
134
|
requirements:
|
141
|
-
- - ~>
|
135
|
+
- - "~>"
|
142
136
|
- !ruby/object:Gem::Version
|
143
137
|
version: '0.8'
|
144
|
-
- -
|
138
|
+
- - ">="
|
145
139
|
- !ruby/object:Gem::Version
|
146
140
|
version: 0.8.7
|
147
141
|
type: :development
|
148
142
|
prerelease: false
|
149
143
|
version_requirements: !ruby/object:Gem::Requirement
|
150
144
|
requirements:
|
151
|
-
- - ~>
|
145
|
+
- - "~>"
|
152
146
|
- !ruby/object:Gem::Version
|
153
147
|
version: '0.8'
|
154
|
-
- -
|
148
|
+
- - ">="
|
155
149
|
- !ruby/object:Gem::Version
|
156
150
|
version: 0.8.7
|
157
151
|
description: DICOM is a standard widely used throughout the world to store and transfer
|
@@ -208,7 +202,7 @@ files:
|
|
208
202
|
- rakefile.rb
|
209
203
|
homepage: http://dicom.rubyforge.org/
|
210
204
|
licenses:
|
211
|
-
-
|
205
|
+
- GPL-3.0
|
212
206
|
metadata: {}
|
213
207
|
post_install_message:
|
214
208
|
rdoc_options: []
|
@@ -216,17 +210,17 @@ require_paths:
|
|
216
210
|
- lib
|
217
211
|
required_ruby_version: !ruby/object:Gem::Requirement
|
218
212
|
requirements:
|
219
|
-
- -
|
213
|
+
- - ">="
|
220
214
|
- !ruby/object:Gem::Version
|
221
|
-
version:
|
215
|
+
version: 2.2.2
|
222
216
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
223
217
|
requirements:
|
224
|
-
- -
|
218
|
+
- - ">="
|
225
219
|
- !ruby/object:Gem::Version
|
226
220
|
version: '0'
|
227
221
|
requirements: []
|
228
222
|
rubyforge_project: dicom
|
229
|
-
rubygems_version: 2.
|
223
|
+
rubygems_version: 2.6.8
|
230
224
|
signing_key:
|
231
225
|
specification_version: 4
|
232
226
|
summary: Library for handling DICOM files and DICOM network communication.
|