libis-metadata 1.0.6 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/libis/metadata/dublin_core_record.rb +1 -1
- data/lib/libis/metadata/mappers/standard.rb +11 -5
- data/lib/libis/metadata/version.rb +1 -1
- data/metadata.gemspec +10 -11
- metadata +28 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fca6894a4e30a08e4ab2a32cf1a989fcca3fc08f619bb5e5c2cfc6249182d2f6
|
4
|
+
data.tar.gz: f830f7164b4fb7b3bdf6ebf70f70cf768fd13db9064c4f7bdeda4640faf509c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0ac40270bce820b4de4cf25a44c3ab0e83006a29f8198faa88f09d6f55db31dea0dd477c47460aca73cb7c3773fc79c5139af76732e69edb5054d0958398ef7
|
7
|
+
data.tar.gz: 7bb7651a6f8ed1b8b69240d51de38b9845f75912a6bebf2b4a226d8b76c0c83b830473e161010885733ec8dcce49fb2f6f0028bafbc09d9157ea2520dfbd417d
|
@@ -77,7 +77,7 @@ module Libis
|
|
77
77
|
def add_node(name, value = nil, parent = nil, attributes = {})
|
78
78
|
ns, tag = get_namespace(name.to_s)
|
79
79
|
(attributes[:namespaces] ||= {})[:node_ns] ||= ns if ns
|
80
|
-
super tag, value, parent, attributes
|
80
|
+
super tag, value, parent, **attributes
|
81
81
|
end
|
82
82
|
|
83
83
|
protected
|
@@ -61,7 +61,8 @@ module Libis
|
|
61
61
|
|
62
62
|
def marc2dc_type(xml)
|
63
63
|
# DC:TYPE
|
64
|
-
|
64
|
+
marc2dc_type_902(xml)
|
65
|
+
marc2dc_type_655(xml)
|
65
66
|
end
|
66
67
|
|
67
68
|
def marc2dc_source(xml)
|
@@ -103,9 +104,14 @@ module Libis
|
|
103
104
|
}
|
104
105
|
end
|
105
106
|
|
106
|
-
def
|
107
|
-
# [MARC
|
108
|
-
each_field('
|
107
|
+
def marc2dc_type_902(xml)
|
108
|
+
# [MARC 902 ## $r]
|
109
|
+
each_field('902##', 'r') { |f| xml['dc'].type f }
|
110
|
+
end
|
111
|
+
|
112
|
+
def marc2dc_type_655(xml)
|
113
|
+
# [MARC 655 #4 $v]
|
114
|
+
each_field('655#4', 'v') { |f| xml['dc'].type f }
|
109
115
|
end
|
110
116
|
|
111
117
|
def marc2dc_source_8528_(xml)
|
@@ -119,4 +125,4 @@ module Libis
|
|
119
125
|
|
120
126
|
end
|
121
127
|
end
|
122
|
-
end
|
128
|
+
end
|
data/metadata.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
|
13
13
|
spec.summary = %q{All about metadata.}
|
14
14
|
spec.description = %q{A gem with every generic ruby tool and class related to metadata.}
|
15
|
-
spec.homepage = "https://github.com/
|
15
|
+
spec.homepage = "https://github.com/libis/LIBIS_Metadata"
|
16
16
|
spec.license = "MIT"
|
17
17
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject {|f| f.match(%r{^(test|spec|features)/})}
|
@@ -21,19 +21,18 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_runtime_dependency 'libis-tools', '~> 1.
|
24
|
+
spec.add_runtime_dependency 'libis-tools', '~> 1.1'
|
25
25
|
spec.add_runtime_dependency 'libis-services', '~> 1.0'
|
26
26
|
spec.add_runtime_dependency 'simple_xlsx_reader', '~> 1.0'
|
27
|
-
spec.add_runtime_dependency 'parslet', '~>
|
28
|
-
spec.add_runtime_dependency 'tty-prompt'
|
29
|
-
spec.add_runtime_dependency 'thor'
|
27
|
+
spec.add_runtime_dependency 'parslet', '~> 2.0'
|
28
|
+
spec.add_runtime_dependency 'tty-prompt', '~> 0.23'
|
29
|
+
spec.add_runtime_dependency 'thor', '~> 1.3'
|
30
30
|
|
31
|
-
spec.add_development_dependency 'bundler', '
|
31
|
+
spec.add_development_dependency 'bundler', '> 2.2'
|
32
32
|
spec.add_development_dependency 'rake', '~> 13.0'
|
33
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
34
|
-
spec.add_development_dependency '
|
35
|
-
spec.add_development_dependency '
|
36
|
-
spec.add_development_dependency '
|
37
|
-
spec.add_development_dependency 'awesome_print', '~> 1.6'
|
33
|
+
spec.add_development_dependency 'rspec', '~> 3.1'
|
34
|
+
spec.add_development_dependency 'coveralls', '~> 0.8'
|
35
|
+
spec.add_development_dependency 'equivalent-xml', '~> 0.6'
|
36
|
+
spec.add_development_dependency 'awesome_print', '~> 1.9'
|
38
37
|
|
39
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libis-metadata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kris Dekeyser
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: libis-tools
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.1'
|
20
20
|
type: :runtime
|
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.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: libis-services
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,56 +58,56 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '2.0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '2.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: tty-prompt
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
75
|
+
version: '0.23'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
82
|
+
version: '0.23'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: thor
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '1.3'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '1.3'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: bundler
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '2.
|
103
|
+
version: '2.2'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - ">"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '2.
|
110
|
+
version: '2.2'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,70 +128,56 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '3.
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '3.0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: simplecov
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0.9'
|
131
|
+
version: '3.1'
|
146
132
|
type: :development
|
147
133
|
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
136
|
- - "~>"
|
151
137
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
138
|
+
version: '3.1'
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: coveralls
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
143
|
- - "~>"
|
158
144
|
- !ruby/object:Gem::Version
|
159
|
-
version: '0.
|
145
|
+
version: '0.8'
|
160
146
|
type: :development
|
161
147
|
prerelease: false
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
150
|
- - "~>"
|
165
151
|
- !ruby/object:Gem::Version
|
166
|
-
version: '0.
|
152
|
+
version: '0.8'
|
167
153
|
- !ruby/object:Gem::Dependency
|
168
154
|
name: equivalent-xml
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|
170
156
|
requirements:
|
171
157
|
- - "~>"
|
172
158
|
- !ruby/object:Gem::Version
|
173
|
-
version: '0.
|
159
|
+
version: '0.6'
|
174
160
|
type: :development
|
175
161
|
prerelease: false
|
176
162
|
version_requirements: !ruby/object:Gem::Requirement
|
177
163
|
requirements:
|
178
164
|
- - "~>"
|
179
165
|
- !ruby/object:Gem::Version
|
180
|
-
version: '0.
|
166
|
+
version: '0.6'
|
181
167
|
- !ruby/object:Gem::Dependency
|
182
168
|
name: awesome_print
|
183
169
|
requirement: !ruby/object:Gem::Requirement
|
184
170
|
requirements:
|
185
171
|
- - "~>"
|
186
172
|
- !ruby/object:Gem::Version
|
187
|
-
version: '1.
|
173
|
+
version: '1.9'
|
188
174
|
type: :development
|
189
175
|
prerelease: false
|
190
176
|
version_requirements: !ruby/object:Gem::Requirement
|
191
177
|
requirements:
|
192
178
|
- - "~>"
|
193
179
|
- !ruby/object:Gem::Version
|
194
|
-
version: '1.
|
180
|
+
version: '1.9'
|
195
181
|
description: A gem with every generic ruby tool and class related to metadata.
|
196
182
|
email:
|
197
183
|
- kris.dekeyser@libis.be
|
@@ -241,7 +227,7 @@ files:
|
|
241
227
|
- lib/libis/metadata/var_field.rb
|
242
228
|
- lib/libis/metadata/version.rb
|
243
229
|
- metadata.gemspec
|
244
|
-
homepage: https://github.com/
|
230
|
+
homepage: https://github.com/libis/LIBIS_Metadata
|
245
231
|
licenses:
|
246
232
|
- MIT
|
247
233
|
metadata: {}
|
@@ -260,7 +246,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
260
246
|
- !ruby/object:Gem::Version
|
261
247
|
version: '0'
|
262
248
|
requirements: []
|
263
|
-
rubygems_version: 3.
|
249
|
+
rubygems_version: 3.4.10
|
264
250
|
signing_key:
|
265
251
|
specification_version: 4
|
266
252
|
summary: All about metadata.
|