stash-wrapper 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/stash/wrapper/module_info.rb +1 -1
- data/lib/stash/wrapper/stash_wrapper.rb +9 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb6dd5df6c45afae4bed1654fe7ee2dee9406f65
|
4
|
+
data.tar.gz: 7af4155eae092621706b7186a55e1d43647d7b7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 107b4c38067d994db9e8fc24320f07f478243438b7225594534826e1a36d776cdca6076ed09a2992079cb276d51229de2275755da862581bbee7e2fe4d327f44
|
7
|
+
data.tar.gz: e1ff98e05c2abc70c21d686022154437c6093f560c6f03bcce64ed2d1adbf9c02f10791ed3bc54d9d4353261ea05adecb09005e89484a0455441911ec9e00833
|
data/CHANGES.md
CHANGED
@@ -16,6 +16,14 @@ module Stash
|
|
16
16
|
schema_location: 'http://dash.cdlib.org/stash_wrapper/ http://dash.cdlib.org/stash_wrapper/stash_wrapper.xsd'
|
17
17
|
)
|
18
18
|
|
19
|
+
# Overrides `Class.allocate`, used by `XML::Mapping` on read, to make sure
|
20
|
+
# the namespace gets set even when we don't call the initializer
|
21
|
+
def self.allocate
|
22
|
+
res = super
|
23
|
+
res.namespace = NAMESPACE
|
24
|
+
res
|
25
|
+
end
|
26
|
+
|
19
27
|
root_element_name 'stash_wrapper'
|
20
28
|
|
21
29
|
object_node :identifier, 'identifier', class: Identifier
|
@@ -36,6 +44,7 @@ module Stash
|
|
36
44
|
# @param descriptive_elements [Array<REXML::Element>] the encapsulated
|
37
45
|
# XML metadata
|
38
46
|
def initialize(identifier:, version:, license:, embargo: nil, inventory: nil, descriptive_elements:) # rubocop:disable Metrics/ParameterLists
|
47
|
+
self.namespace = NAMESPACE
|
39
48
|
self.identifier = identifier
|
40
49
|
self.stash_administrative = StashAdministrative.new(
|
41
50
|
version: version,
|
@@ -44,7 +53,6 @@ module Stash
|
|
44
53
|
inventory: inventory
|
45
54
|
)
|
46
55
|
self.stash_descriptive = descriptive_elements
|
47
|
-
self.namespace = NAMESPACE
|
48
56
|
end
|
49
57
|
|
50
58
|
def id_value
|