# seed the cache RubyUnits::Unit.new('1') RubyUnits::Unit.define('meter') do |unit| unit.scalar = 1 unit.numerator = %w() unit.aliases = %w(m meter meters metre metres) unit.kind = :length end RubyUnits::Unit.define('kilogram') do |unit| unit.scalar = 1 unit.numerator = %w() unit.aliases = %w(kg kilogram kilograms) unit.kind = :mass end RubyUnits::Unit.define('second') do |unit| unit.scalar = 1 unit.numerator = %w() unit.aliases = %w(s sec second seconds) unit.kind = :time end RubyUnits::Unit.define('mole') do |unit| unit.scalar = 1 unit.numerator = %w() unit.aliases = %w(mol mole) unit.kind = :substance end RubyUnits::Unit.define('ampere') do |unit| unit.scalar = 1 unit.numerator = %w() unit.aliases = %w(A ampere amperes amp amps) unit.kind = :current end RubyUnits::Unit.define('radian') do |unit| unit.scalar = 1 unit.numerator = %w() unit.aliases = %w(rad radian radians) unit.kind = :angle end RubyUnits::Unit.define('kelvin') do |unit| unit.scalar = 1 unit.numerator = %w() unit.aliases = %w(degK kelvin) unit.kind = :temperature end RubyUnits::Unit.define('tempK') do |unit| unit.scalar = 1 unit.numerator = %w() unit.aliases = %w(tempK) unit.kind = :temperature end RubyUnits::Unit.define('byte') do |unit| unit.scalar = 1 unit.numerator = %w() unit.aliases = %w(B byte bytes) unit.kind = :information end RubyUnits::Unit.define('dollar') do |unit| unit.scalar = 1 unit.numerator = %w() unit.aliases = %w(USD dollar) unit.kind = :currency end RubyUnits::Unit.define('candela') do |unit| unit.scalar = 1 unit.numerator = %w() unit.aliases = %w(cd candela) unit.kind = :luminosity end RubyUnits::Unit.define('each') do |unit| unit.scalar = 1 unit.numerator = %w() unit.aliases = %w(each) unit.kind = :counting end RubyUnits::Unit.define('steradian') do |unit| unit.scalar = 1 unit.numerator = %w() unit.aliases = %w(sr steradian steradians) unit.kind = :solid_angle end RubyUnits::Unit.define('decibel') do |unit| unit.scalar = 1 unit.numerator = %w() unit.aliases = %w(dB decibel decibels) unit.kind = :logarithmic end