dor-services 4.6.6.2 → 4.6.6.3

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.
@@ -56,7 +56,9 @@ module Dor
56
56
  doc = self.descMetadata.ng_xml.dup(1)
57
57
  add_collection_reference(doc)
58
58
  add_access_conditions(doc)
59
- Nokogiri::XML(doc.to_xml) { |x| x.noblanks }.to_xml { |config| config.no_declaration }
59
+ new_doc = Nokogiri::XML(doc.to_xml) { |x| x.noblanks }
60
+ new_doc.encoding = 'UTF-8'
61
+ new_doc.to_xml
60
62
  end
61
63
 
62
64
  # Create MODS accessCondition statements from rightsMetadata
@@ -41,7 +41,9 @@ module Dor
41
41
  rels = public_relationships.root
42
42
  pub.add_child(rels.clone) unless rels.nil? # TODO: Should never be nil in practice; working around an ActiveFedora quirk for testing
43
43
  pub.add_child(self.generate_dublin_core.root.clone)
44
- Nokogiri::XML(pub.to_xml) { |x| x.noblanks }.to_xml { |config| config.no_declaration }
44
+ new_pub = Nokogiri::XML(pub.to_xml) { |x| x.noblanks }
45
+ new_pub.encoding = 'UTF-8'
46
+ new_pub.to_xml
45
47
  end
46
48
 
47
49
  # Copies this object's public_xml to the Purl document cache if it is world discoverable
data/lib/dor/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dor
2
- VERSION = '4.6.6.2'
2
+ VERSION = '4.6.6.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dor-services
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.6.2
4
+ version: 4.6.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2014-06-13 00:00:00.000000000 Z
16
+ date: 2014-08-20 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: active-fedora
@@ -132,17 +132,17 @@ dependencies:
132
132
  requirement: !ruby/object:Gem::Requirement
133
133
  none: false
134
134
  requirements:
135
- - - '='
135
+ - - ~>
136
136
  - !ruby/object:Gem::Version
137
- version: 1.6.0
137
+ version: '1.6'
138
138
  type: :runtime
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  none: false
142
142
  requirements:
143
- - - '='
143
+ - - ~>
144
144
  - !ruby/object:Gem::Version
145
- version: 1.6.0
145
+ version: '1.6'
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: om
148
148
  requirement: !ruby/object:Gem::Requirement