lib/errand.rb in errand-0.7.1 vs lib/errand.rb in errand-0.7.2
- old
+ new
@@ -11,11 +11,11 @@
version = "1.8"
when /^1\.9/
version = RUBY_VERSION
end
- %w(i386 i486).each do |arch|
- $: << "/usr/lib/ruby/#{version}/#{arch}-linux"
+ Dir.glob("/usr/lib/ruby/#{version}/*-linux").each do |dir|
+ $: << dir
end
require 'RRD'
rescue LoadError
exit 1