Skip to content
Browse files

fixup! Skip save when file is not writable

  • Loading branch information...
1 parent 7c0df82 commit ab9ff231bd9f51e2989dc20b7979519f4a502756 @sorbits sorbits committed Mar 17, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 bin/rmate
  2. +2 −2 lib/rmate/version.rb
View
2 bin/rmate
@@ -101,7 +101,7 @@ end
def handle_save(socket, variables, data)
path = variables["token"]
- if File.writable? path
+ if File.writable?(path) || !File.exists?(path)
$stderr.puts "Saving #{path}" if $settings.verbose
begin
backup_path = "#{path}~"
View
4 lib/rmate/version.rb
@@ -1,4 +1,4 @@
module Rmate
- VERSION = "1.5.4"
- DATE = "2013-03-16"
+ VERSION = "1.5.5"
+ DATE = "2013-03-17"
end

0 comments on commit ab9ff23

Please sign in to comment.
Something went wrong with that request. Please try again.