Skip to content

Commit

Permalink
'pt' is ambiguous and can represent either a point or a pint.
Browse files Browse the repository at this point in the history
  • Loading branch information
olbrich committed Feb 2, 2012
1 parent 431dcab commit 8a103e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Change Log for Ruby-units
=========================
2012-02-01 * Fix issue #34 -- Time.at takes more than one parameter
* Fix issue #35 -- 'pt' is ambiguous
2012-01-02 1.4.0 * Fix some definitions that were just wrong (amu, dalton)
* Definition uses name of unit if no aliases provided
* Refactor definition process. New units are immediately available
Expand Down
4 changes: 2 additions & 2 deletions lib/ruby_units/unit_definitions/standard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@

Unit.define('point') do |point|
point.definition = Unit('1/72 ft')
point.aliases = %w{pt point points}
point.aliases = %w{point points}
end

Unit.define('pica') do |pica|
pica.definition = Unit('12 pt')
pica.definition = Unit('12 point')
pica.aliases = %w{P pica picas}
end

Expand Down

0 comments on commit 8a103e4

Please sign in to comment.