lib/ruby_smb/dcerpc/uuid.rb in ruby_smb-3.3.0 vs lib/ruby_smb/dcerpc/uuid.rb in ruby_smb-3.3.1

- old
+ new

@@ -20,11 +20,11 @@ "-#{clock_seq_hi_and_reserved.to_hex}#{clock_seq_low.to_hex}"\ "-#{node.to_hex}" end def set(uuid_string) - uuid_string.delete_suffix!('}') - uuid_string.delete_prefix!('{') + uuid_string = uuid_string.delete_suffix('}') + uuid_string = uuid_string.delete_prefix('{') components = uuid_string.split('-') self.time_low.read(to_binary_le(components[0])) self.time_mid.read(to_binary_le(components[1])) self.time_hi_and_version.read(to_binary_le(components[2])) self.clock_seq_hi_and_reserved.read(components[3][0,2].hex.chr)