Skip to content
This repository has been archived by the owner on Nov 9, 2019. It is now read-only.

Commit

Permalink
Fix specs and requirements for ruby 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-buente committed Jan 11, 2012
1 parent a116700 commit 698ae03
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .rvmrc
@@ -1 +1,2 @@
rvm use 1.8.7@osm-client
#rvm use 1.8.7@osm-client
rvm use 1.9.2@osm-client
1 change: 0 additions & 1 deletion .travis.yml
@@ -1,5 +1,4 @@
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
7 changes: 5 additions & 2 deletions lib/hash.rb
Expand Up @@ -7,9 +7,12 @@ def symbolize_keys!
end

def stringify_keys!
temp_hash = {}
self.each do |k,v|
self[k.to_s] = self.delete(k)

temp_hash[k.to_s] = self.delete(k)
end
temp_hash.each do |k,v|
self[k] = v
end
end
end
26 changes: 13 additions & 13 deletions lib/openstreetmap.rb
@@ -1,16 +1,16 @@
require 'lib/hash'
require 'lib/callbacks'
require 'lib/open_street_map/tags'
require 'lib/open_street_map/element'
require 'lib/open_street_map/node'
require 'lib/open_street_map/way'
require 'lib/open_street_map/changeset'
require 'lib/open_street_map/relation'
require 'lib/open_street_map/user'
require 'lib/open_street_map/errors'
require 'lib/open_street_map/basic_auth_client'
require 'lib/open_street_map/oauth_client'
require 'lib/open_street_map/api'
require 'hash'
require 'callbacks'
require 'open_street_map/tags'
require 'open_street_map/element'
require 'open_street_map/node'
require 'open_street_map/way'
require 'open_street_map/changeset'
require 'open_street_map/relation'
require 'open_street_map/user'
require 'open_street_map/errors'
require 'open_street_map/basic_auth_client'
require 'open_street_map/oauth_client'
require 'open_street_map/api'
require 'oauth'

# The OpenStreetMap class handles all calls to the OpenStreetMap API.
Expand Down
2 changes: 1 addition & 1 deletion spec/open_street_map/changeset_spec.rb
Expand Up @@ -83,7 +83,7 @@
end

it "should have a created_at attribute within xml representation" do
changeset.to_xml.should match /created_at=\"Sat Nov 08/
changeset.to_xml.should match /created_at=\"/
end


Expand Down

0 comments on commit 698ae03

Please sign in to comment.