rosemary 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # Rosemary: OpenStreetMap for Ruby
2
2
 
3
- [![alt text][2]][1]
4
-
5
- [1]: http://travis-ci.org/#!/sozialhelden/rosemary
6
- [2]: https://secure.travis-ci.org/sozialhelden/rosemary.png
3
+ [![Build Status](https://travis-ci.org/sozialhelden/rosemary.png?branch=master)](https://travis-ci.org/sozialhelden/rosemary)
4
+ [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/sozialhelden/rosemary)
5
+ [![Gem Version](https://fury-badge.herokuapp.com/rb/rosemary.png)](http://badge.fury.io/rb/rosemary)
7
6
 
8
7
  This ruby gem is an API client for the current OpenStreetMap [API v0.6](http://wiki.openstreetmap.org/wiki/API_v0.6). It provides easy access to OpenStreetMap (OSM) data.
9
8
 
data/lib/rosemary/tags.rb CHANGED
@@ -15,6 +15,8 @@ module Rosemary
15
15
  end
16
16
 
17
17
  def []=(key, value)
18
+ # Ignore empty values, cause we don't want them in the OSM anyways
19
+ return if value.blank?
18
20
  super(key, value.strip)
19
21
  end
20
22
 
@@ -1,4 +1,4 @@
1
1
  module Rosemary
2
2
  # The current version of this gem.
3
- VERSION = "0.3.9"
3
+ VERSION = "0.3.10"
4
4
  end
@@ -165,4 +165,13 @@ describe Node do
165
165
  second_node.tags[:name] = 'white horse'
166
166
  first_node.should_not == second_node
167
167
  end
168
+
169
+ it "should be ok to pass tags with emtpy value" do
170
+ lambda {
171
+ subject.add_tags({"wheelchair_description"=>"", "type"=>"convenience",
172
+ "street"=>nil, "name"=>"Kochhaus", "wheelchair"=>nil, "postcode"=>nil,
173
+ "phone"=>nil, "city"=>nil, "website"=>nil, "lon"=>"13.35598468780518",
174
+ "lat"=>"52.48627569798567", "housenumber"=>nil})
175
+ }.should_not raise_error
176
+ end
168
177
  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.9
4
+ version: 0.3.10
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: 2012-09-28 00:00:00.000000000 Z
12
+ date: 2013-02-21 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: 4362026444618257339
244
+ hash: 2834099730103194430
245
245
  required_rubygems_version: !ruby/object:Gem::Requirement
246
246
  none: false
247
247
  requirements: