assembly-objectfile 1.7.0 → 1.7.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ef16d322b5b114f0108703d029612111aafd60d
|
|
4
|
+
data.tar.gz: 4ce48229272115d47ed4a8b60ec60bc1ad3b953d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56d140f88b2f50e7c4d690bd4453facb5d79d52036e8d15781bcb954e9d2139ee0050d85336d24aca123a78e4ddc76bd3d765e6de934053b60b3e42a77e65bd3
|
|
7
|
+
data.tar.gz: 4afc43a58e962182ca2badfd994aeaee676a2461ef65f28db5e1b62da2e60dae74d9fb02d95e61946258fb3eb7d6f3fb4cd6316c6a2b71b4bbf2782cc098fc8e
|
|
@@ -193,6 +193,7 @@ module Assembly
|
|
|
193
193
|
:shelve => file_attributes_hash[:shelve],
|
|
194
194
|
:role => file_attributes_hash[:role],
|
|
195
195
|
})
|
|
196
|
+
xml_file_params.reject! { |k, v| v.nil? || v.empty? }
|
|
196
197
|
end
|
|
197
198
|
|
|
198
199
|
xml_file_params.merge!({:mimetype => mimetype,:size => obj.filesize}) if add_exif
|
|
@@ -137,11 +137,13 @@ describe Assembly::ContentMetadata do
|
|
|
137
137
|
expect(xml.xpath("//resource")[1].attributes['type'].value).to eq("image")
|
|
138
138
|
expect(xml.xpath("//resource/file")[0].attributes['size']).to be nil
|
|
139
139
|
expect(xml.xpath("//resource/file")[0].attributes['mimetype']).to be nil
|
|
140
|
+
expect(xml.xpath("//resource/file")[0].attributes['role']).to be nil
|
|
140
141
|
expect(xml.xpath("//resource/file")[0].attributes['publish'].value).to eq("no")
|
|
141
142
|
expect(xml.xpath("//resource/file")[0].attributes['preserve'].value).to eq("no")
|
|
142
143
|
expect(xml.xpath("//resource/file")[0].attributes['shelve'].value).to eq("no")
|
|
143
144
|
expect(xml.xpath("//resource/file")[1].attributes['size']).to be nil
|
|
144
145
|
expect(xml.xpath("//resource/file")[1].attributes['mimetype']).to be nil
|
|
146
|
+
expect(xml.xpath("//resource/file")[1].attributes['role']).to be nil
|
|
145
147
|
expect(xml.xpath("//resource/file")[1].attributes['publish'].value).to eq("yes")
|
|
146
148
|
expect(xml.xpath("//resource/file")[1].attributes['preserve'].value).to eq("yes")
|
|
147
149
|
expect(xml.xpath("//resource/file")[1].attributes['shelve'].value).to eq("yes")
|