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: 525c02a47a00911d384772353e49b34f0e730f9a
4
- data.tar.gz: 73656cb1be5cdbab3275bbaab9883b1a79598bc0
3
+ metadata.gz: 4ef16d322b5b114f0108703d029612111aafd60d
4
+ data.tar.gz: 4ce48229272115d47ed4a8b60ec60bc1ad3b953d
5
5
  SHA512:
6
- metadata.gz: aa7a37c0e0705c51de15c0d8b9500533e845eb9cb953acee0f88c63e3302445c1939cd13492c53c30c1aeff8776284d3baefe4c5ff5ff15a48a6f8e8f6c2ad8e
7
- data.tar.gz: 23fe849cf5e4a54f939ecde806dd31db990c75ca5e3c4e159451db1c00276772f3803ba13325285dfe1d9859e32404ae0877cedd411d606b103ccbc71fdc5a32
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
@@ -3,7 +3,7 @@ module Assembly
3
3
 
4
4
  class ObjectFile
5
5
  # Project version number
6
- VERSION = "1.7.0"
6
+ VERSION = "1.7.1"
7
7
  end
8
8
 
9
9
  end
@@ -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")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assembly-objectfile
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Mangiafico