lib/keepassx/field/base.rb in keepassx-1.0.0 vs lib/keepassx/field/base.rb in keepassx-1.1.0

- old
+ new

@@ -79,16 +79,16 @@ private - # rubocop:disable Style/UnneededInterpolation + # rubocop:disable Style/RedundantInterpolation def set_export_import_methods(type) @export_method = "#{type}".to_sym @import_method = "#{type}=".to_sym end - # rubocop:enable Style/UnneededInterpolation + # rubocop:enable Style/RedundantInterpolation ### EXPORT METHODS def null @@ -105,22 +105,22 @@ @data.chomp("\000") end def int - @data.unpack('I')[0] + @data.unpack1('I') end def short - @data.unpack('S')[0] + @data.unpack1('S') end def ascii # TODO: Add spec - @data.unpack('H*')[0] + @data.unpack1('H*') end def date buffer = @data.unpack('C5') @@ -135,14 +135,12 @@ end ### IMPORT METHODS - # rubocop:disable Naming/UncommunicativeMethodParamName def null=(_) @data = nil end - # rubocop:enable Naming/UncommunicativeMethodParamName def shunt=(value) @data = value end