dor-services 4.12.3 → 4.13.0

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.12.3'
2
+ VERSION = '4.13.0'
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.12.3
4
+ version: 4.13.0
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-08-06 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
@@ -636,7 +636,9 @@ files:
636
636
  - bin/dor-indexer
637
637
  - bin/dor-indexerd
638
638
  homepage:
639
- licenses: []
639
+ licenses:
640
+ - ALv2
641
+ - Stanford University
640
642
  post_install_message:
641
643
  rdoc_options: []
642
644
  require_paths: