diff --git a/lib/uuid.rb b/lib/uuid.rb index 02a1445..d484d93 100644 --- a/lib/uuid.rb +++ b/lib/uuid.rb @@ -176,7 +176,7 @@ def self.state_file(mode = 0644) @state_file = File.join(state_dir, 'ruby-uuid') if !File.writable?(state_dir) || (File.exists?(@state_file) && !File.writable?(@state_file)) then - @state_file = File.expand_path('.ruby-uuid', '~') + @state_file = File.join File.expand_path('~'), '.ruby-uuid' end @state_file