lib/tw/conf.rb in tw-1.2.0 vs lib/tw/conf.rb in tw-1.2.1

- old
+ new

@@ -29,11 +29,11 @@ end def self.conf @@conf ||= ( res = default - if File.exists? self.conf_file + if File.exist? self.conf_file begin data = nil self.open_conf_file do |f| data = YAML::load f.read end @@ -82,9 +82,9 @@ if block_given? yield open(self.conf_file, opt) else return open(self.conf_file, opt) end - File.chmod 0600, self.conf_file if File.exists? self.conf_file + File.chmod 0600, self.conf_file if File.exist? self.conf_file end end end