Skip to content

Instantly share code, notes, and snippets.

Created January 20, 2015 14:14
Show Gist options
  • Save anonymous/582467e3929223f4cdc4 to your computer and use it in GitHub Desktop.
Save anonymous/582467e3929223f4cdc4 to your computer and use it in GitHub Desktop.
ls lib/
attrFile.rb
color.rb
importMysql.rb
logging.rb
watirUploadYouwatch.rb
/home/xxxx/documents/Ruby-On-Rails/script/geto/lib/importMysql.rb
/home/xxxx/documents/Ruby-On-Rails/script/geto/lib/logging.rb
/home/xxxx/documents/Ruby-On-Rails/script/geto/lib/attrFile.rb
/home/xxxx/documents/Ruby-On-Rails/script/geto/lib/color.rb
/home/xxxx/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- watir (LoadError)
from /home/xxxx/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/xxxx/documents/Ruby-On-Rails/script/geto/lib/watirUploadYouwatch.rb:1:in `<top (required)>'
Dir[File.expand_path('./lib/*.rb', File.dirname(__FILE__))].each do |file|
require file
puts file
end
require 'nokogiri'
require 'open-uri'
require 'yaml'
require 'fileutils'
#require 'attrFile'
#require 'logging'
# if i use require 'NAME_FILE' everything doing fine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment