lib/public.rb in public-0.0.4 vs lib/public.rb in public-0.0.5

- old
+ new

@@ -49,12 +49,13 @@ end end end def self.move_file(file) - dropbox_location = "#{ Dir.home }/Dropbox/Public/" + without_spaces = file.gsub(" ", "_") + dropbox_location = Dir.home + "/Dropbox/Public/" + without_spaces FileUtils.cp file, dropbox_location - copy_link(file) + copy_link(without_spaces) end def self.copy_link(file) get_id(File.read(CONFIG)) if @user_id == "CHANGE_ME"