rgeoserver 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/rgeoserver/coverage.rb +13 -14
  3. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.3
1
+ 0.7.4
@@ -65,22 +65,21 @@ module RGeoServer
65
65
  def message
66
66
  builder = Nokogiri::XML::Builder.new do |xml|
67
67
  xml.coverage {
68
+ xml.nativeName @name if new? # on new only
68
69
  xml.name @name
69
- xml.title @title
70
+ xml.title @title if title_changed? || new?
71
+ xml.abstract @abstract if abstract_changed? || new?
70
72
  xml.enabled @enabled if enabled_changed? or new?
71
- if new?
72
- xml.nativeName @name
73
- xml.abstract @abstract if abstract_changed?
74
- xml.metadataLinks {
75
- @metadata_links.each do |m|
76
- xml.metadataLink {
77
- xml.type_ to_mimetype(m['metadataType'])
78
- xml.metadataType m['metadataType']
79
- xml.content m['content']
80
- }
81
- end
82
- } if @metadata_links
83
- end
73
+ xml.metadataLinks {
74
+ @metadata_links.each do |m|
75
+ raise ArgumentError, "Malformed metadata_links" unless m.is_a? Hash
76
+ xml.metadataLink {
77
+ xml.type_ to_mimetype(m['metadataType'])
78
+ xml.metadataType m['metadataType']
79
+ xml.content m['content']
80
+ }
81
+ end
82
+ } unless @metadata_links.empty?
84
83
  xml.keywords {
85
84
  @keywords.each do |k|
86
85
  xml.keyword RGeoServer::Metadata::to_keyword(k)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgeoserver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: