1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
|
Tue Feb 17 2015 T Horinouchi
* version 1.9 released ((cvs) tag: numru-units-1_9)
Fri Jan 23 2015 T Horinouchi
* dcunits.txt
* added a description as comments at the beginning of the file
* added units: cd, candela
* changed the mode of the following units
* S to N: kg, %, permil, d
* S to P: percent
* added a meteorological unit gpm (mode: N, definition: m).
* LICENSE.txt: updated (years)
* src/version.rb: added
* src/Makefile: updated to use version.rb
Tue Jan 20 2015 T Horinouchi
* src/lex.rb: Regexp changed: UTC --> (UTC|Z)
Mon Jan 12 2015 T Horinouchi
* version 1.8 released ((cvs) tag: numru-units-1_8)
Mon Jan 12 2015 T Horinouchi <-- S Nishizawa [dennou-ruby:003805] and
T Koshiro [dennou-ruby:003806] (files to patch was corrected, though)
* src/rules.rb: Update to support ruby 2.1 or later
(l.10: origin_exp { yyaccept; } --> origin_exp { val[0] })
and a cleaner treatment of the NumRu:: wrapper
(l.1: class Units --> class NumRu::Units).
* src/test.rb: updated (handling of "" and numeric expressions:
float --> rational)
* src/Makefile: updated in response to the change in rule.rb
* install.rb: updated (ruby 1.6 support abondoned)
* src/units.racc, src/units.rb, lib/numru/units.rb: regenreated
Fri Mar 14 2014 T Koshiro < M Nakano [dennou-ruby:003646]
* install.rb: for Ruby 2.x
Thu Aug 4 2011 T Horinouchi
* version 1.7 released ((cvs) tag: numru-units-1_7)
* LICENSE.txt: added (BSD 2-clause)
* doc/units.rd, doc/units.html: updated (added entry to dcunits.txt)
Wed Aug 3 2011 T Horinouchi
* mulnode.rb: to_s changed to explicitly handle a Float
whose value is an integer.
* Makefile: adopet to the change in the "tail" command
(tail +2 --> tail -n +2).
Mon Mar 15 2010 T Horinouchi
* version 1.6 released ((cvs) tag: numru-units-1_6)
Fri May 23 2008 T Horinouchi
* dcunits.txt: added the following units: percent [S], % [S],
permil [S], centigrade [P], millibar [P]
* rules.rb: changed not to accept empty unit_spec
* lex.rb:
* method do_parse2: to treat empty string units '' as '1'
(to return NumberNode.new(1) instead of ErrorNode.new(''))
Fri Feb 8 2008 T Koshiro
* lex.rb: next_token: at least one space or tab character is required
before/after 'per', 'after', 'from', 'since', 'ref'
Wed Aug 24 2005 T Horinouchi
* version 1.5 released ((cvs) tag: numru-units-1_5)
Wed Jun 8 2005 T Horinouchi
* lex.rb:
* debug in RE_SECOND
* debug in time zone parser (many bugs)
* improvement in time parser RE_TIME to support hhmm type
in addition to [h]h:[m]m
* timenode.rb:
* TimeNode#utcsod : debug in time zone treatment
(IT WAS A FATAL BUG!!)
* TimeNode#to_s : debug in the expression of seconds (not to
take the floor of seconds).
Wed May 25 2005 T Horinouchi
* version 1.4 released ((cvs) tag: numru-units-1_4)
* lex.rb: debug in RE_HOUR. It did not handle hours after 20 properly.
Mon Nov 29 2004 T Horinouchi
* timenode.rb: class XDate: added to_date (for intenal usage), and
modified +(ohter) and -(ohter) methods to use it as long as possible.
This is to widen the coverage of time -- up to now, only very
recent years (such as AD19xx-20xx) are accpeted, since the
Time intrincic class is always used.
Tue Nov 9 2004 T Horinouchi
* lex.rb: Units#convert2: changed warning messaging to show backtrace
Sun Aug 10 2004 T Horinouchi
* lex.rb: lex.rb Units#convert, Units#==: debug not to change
(reduce5) self and input units.
Sun Aug 8 2004 T Horinouchi
* version 1.3 released
* mulnode.rb: improved Multi#sort: to eliminate Number[1] if
length >= 2. Then, Units.new('1m').reduce5.to_s gives 'm';
it used to give '1 m'.
* numbernode.rb: defined == (to compare by values -- implicitly
used in the new Multi#sort)
* dcunits.txt: added some units from udunits: Pascal, deg[KF],
deg_[CFK], degree[CFK], [Cc]elcius, angular_(degree|minute|secont),
[Ff]ahrenheit, farad, gravity, conventional_mercury, mercury,
Hg, hg, Julian_year, common_year, tesla
* lex.rb: debug === (aliased to ==. The change on May 4 was enbug).
debug =~: to handle other classes (return false)
Tue May 4 2004 T Horinouchi
* pownode.rb: PowNode#to_s: if the expopnent is 1, omit it.
* lex.rb: debug === (to allow a difference of a factor and/or offset)
Sun May 2 2004 T Horinouchi
* dcunits.txt: added degree_east/degrees_east etc.
Sun Mar 21 2004 T Horinouchi
* version 1.2 released ((cvs) tag: numru-units-1_2)
Fri Mar 19 2004 T Horinouchi
* mulnode.rb: MutiNode#value: to return 1 if @children.size == 0
* dcunits.txt: added degC
* lex.rb: convert2: warn if $VERBOSE --> warn regardress $VERBOSE
Mon Mar 1 2004 T Horinouchi
* version 1.1 released ((cvs) tag: numru-units-1_1)
Mon Mar 1 2004 E Toyoda
* test.rb: revised due to the change of reduce4; updated
* timenode.rb debugged (Unexpected generation of Float by Date#-
is avoided using Date-like wrapper to Time.)
* node.rb: unalias (such as "kilometer" -> "10^3 m") will not
occur at reduce4. (plurals still recognized in reduce4)
* namenode.rb,numbernode.rb: unused methods "nameable?" removed
* makeutab.rb: Bugfix: units like "second" or "metre" were not
unaliased to its primary name (such as "s" or "m") due to
improper parsing of dcunits.txt.
Sun Feb 29 2004 E Toyoda (Commited by T Horinouchi)
* makeutab.rb: debug plural treatment (/y$/ -> /[^aeou]y$/)
Fri Feb 27 2004 T Horinouchi
* src/lex.rb: added Units#convert2 (similar to Units#convert but
more suitable for UNumeric constraction).
debug in =~
* test.rb: added a test of =~
Thu Feb 26 2004 T Horinouchi
* src/lex.rb: added Units#factor_and_offset
* doc/units.rd: updated
Wed Feb 25 2004 T Horinouchi
* src/Makefile: add -l option to racc -- not to convert line #s
for better readability of exception messages
* Makefile: (very minor) cp --> cp -p
Tue Feb 24 2004 T Horinouchi
* version 1.0 released
* packaging for distribution
* put Units into the NumRu module ( --> class NumRu::Units )
* cvs version control started (CVSROOT=
dennou-k.gfd-dennou.org:/GFD_Dennou_Club/ftp/arch/ruby/cvsroot
project name: numru-units)
Fri Feb 6 2004 TOYODA Eizi (log written by T Horinouchi 2004/03/24)
* revised
Fri Nov 7 2003 TOYODA Eizi (log written by T Horinouchi 2004/03/24)
* revized
Fri Oct 24 2003(or before) TOYODA Eizi(log written by T Horinouchi 2004/03/24)
* created
|