Skip to content

Commit

Permalink
Adding tests to verify issue #2. Fixing problems exposed by the spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredjean committed Jun 16, 2010
1 parent 69503bc commit 92696b6
Show file tree
Hide file tree
Showing 2 changed files with 272 additions and 262 deletions.
6 changes: 6 additions & 0 deletions lib/memcache.rb
Expand Up @@ -85,6 +85,12 @@ def initialize(*args)
raise ArgumentError, "wrong number of arguments (#{args.length} for 2)"
end

# Normalizing the server(s) so they all have a port number.

@servers = @servers.map do |server|
server =~ /(.+):(\d+)/ ? server : "#{server}:#{DEFAULT_PORT}"
end

Logger.getLogger('com.meetup.memcached.MemcachedClient').setLevel(opts[:log_level])
Logger.getLogger('com.meetup.memcached.SockIOPool').setLevel(opts[:log_level])

Expand Down

0 comments on commit 92696b6

Please sign in to comment.