Export to GitHub

rubyweather - issue #6

fails if the user doesn’t have rubygems installed


Posted on Aug 23, 2009 by Helpful Dog

diff --git a/lib/weather/service.rb b/lib/weather/service.rb index 392b52e..bd234e9 100644 --- a/lib/weather/service.rb +++ b/lib/weather/service.rb @@ -12,7 +12,7 @@ begin begin require 'xml/libxml' rescue LoadError - require 'rubygems' + require 'rubygems' if DEVELOPER_MODE require 'xml/libxml' end $USE_LIBXML = true

Comment #1

Posted on Aug 23, 2009 by Helpful Dog

@@ -169,7 +169,7 @@ module Weather begin require 'memcache' rescue LoadError - require 'rubygems' + require 'rubygems' if DEVELOPER_MODE # The rc-tools memcache client is waaaay faster than Ruby-MemCache, # so try to use that if possible. However, I tried it a few months # ago and couldn't get it to work. Version 1.2.1 seems to work though

Comment #2

Posted on Aug 23, 2009 by Helpful Dog

diff --git a/test/profiler.rb b/test/profiler.rb index 43fa445..c70fd82 100644 --- a/test/profiler.rb +++ b/test/profiler.rb @@ -1,4 +1,4 @@ -require 'rubygems' +require 'rubygems' if DEVELOPER_MODE require 'ruby-prof'

require File.dirname(FILE) + '/../lib/weather/service'

Status: New

Labels:
Type-Defect Priority-Medium