chore: rubocop
chore: fix api test conventions chore: rubocop -A spec/ chore: more rubocop -A fix failing test rubocop fixes removes helper methods that are in my opinion dead code more rubocop fixes rubocop -a --auto-gen-config
This commit is contained in:
parent
f6fb804bbe
commit
fb2b4d8a8a
331 changed files with 4263 additions and 4507 deletions
|
|
@ -2,28 +2,28 @@
|
|||
|
||||
if defined? RubyUnits
|
||||
RubyUnits::Unit.redefine!('liter') do |unit|
|
||||
unit.aliases += %w{ltr}
|
||||
unit.aliases += %w[ltr]
|
||||
end
|
||||
|
||||
RubyUnits::Unit.redefine!('kilogram') do |unit|
|
||||
unit.aliases += %w{KG}
|
||||
unit.aliases += %w[KG]
|
||||
end
|
||||
|
||||
RubyUnits::Unit.redefine!('gram') do |unit|
|
||||
unit.aliases += %w{gr}
|
||||
unit.aliases += %w[gr]
|
||||
end
|
||||
|
||||
RubyUnits::Unit.define('piece') do |unit|
|
||||
unit.definition = RubyUnits::Unit.new('1 each')
|
||||
unit.aliases = %w{pc pcs piece pieces} # locale: en
|
||||
unit.aliases += %w{st stuk stuks} # locale: nl
|
||||
unit.aliases = %w[pc pcs piece pieces] # locale: en
|
||||
unit.aliases += %w[st stuk stuks] # locale: nl
|
||||
unit.kind = :counting
|
||||
end
|
||||
|
||||
RubyUnits::Unit.define('bag') do |unit|
|
||||
unit.definition = RubyUnits::Unit.new('1 each')
|
||||
unit.aliases = %w{bag bags blt sachet sachets} # locale: en
|
||||
unit.aliases += %w{zak zakken zakje zakjes} # locale: nl
|
||||
unit.aliases = %w[bag bags blt sachet sachets] # locale: en
|
||||
unit.aliases += %w[zak zakken zakje zakjes] # locale: nl
|
||||
unit.kind = :counting
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue