rosemary 0.3.11 → 0.3.12

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rosemary/tags.rb CHANGED
@@ -10,14 +10,15 @@ module Rosemary
10
10
  xml = options[:builder] ||= Builder::XmlMarkup.new
11
11
  xml.instruct! unless options[:skip_instruct]
12
12
  each do |key, value|
13
- xml.tag(:k => key, :v => value) unless value.blank?
13
+ # Remove leading and trailing whitespace from tag values
14
+ xml.tag(:k => key, :v => value.strip) unless value.blank?
14
15
  end unless empty?
15
16
  end
16
17
 
17
18
  def []=(key, value)
18
19
  # Ignore empty values, cause we don't want them in the OSM anyways
19
20
  return if value.blank?
20
- super(key, value.strip)
21
+ super(key, value)
21
22
  end
22
23
 
23
24
  # Return string with comma separated key=value pairs.
@@ -1,4 +1,4 @@
1
1
  module Rosemary
2
2
  # The current version of this gem.
3
- VERSION = "0.3.11"
3
+ VERSION = "0.3.12"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rosemary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.11
4
+ version: 0.3.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-21 00:00:00.000000000 Z
12
+ date: 2013-04-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -241,7 +241,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
241
241
  version: '0'
242
242
  segments:
243
243
  - 0
244
- hash: 2313574094919135091
244
+ hash: -3940518596740990708
245
245
  required_rubygems_version: !ruby/object:Gem::Requirement
246
246
  none: false
247
247
  requirements: