Posted By: Karl Brodowsky
Date: 2006-03-27 10:40
Summary: LongDecimal pre-alpha-0.16
Project: LongDecimal for numbers with fixed point
Version pre-alpha-0.16 has been created. This version is already pretty close to what is anticipated to become the first alpha-version.
A common base class LongDecimalBase for LongDecimal and LongDecimalQuot has been added in order to hold some methods which are the same in both and in order to make kind_of?-tests easier. Some tests and some improvements of rdoc-comments have been added. It should be prefered to use the newest version.
gem-installation should work on Linux, with manual download and installation from local directory, as described for the previous version already. I have no evidence that installation on Windows works.
The following installation procedure has been verified on Linux with
Ruby 1.8.4:
1. download the .gem-file from
http://rubyforge.org/
(find by http://rubyforge.org/projects/long-decimal/ -> Files -> long-decimal-0.00.16.gem )
2. cd into the directory with the downloaded gem-file
3. become root, unless the current user has write-access to install gems
$ su
4. if you have older versions of long-decimal, uninstall them (all of them)
$ gem uninstall long-decimal
5. install gem
$ gem install long-decimal
6. use it from your own ruby programs and libraries like this
#!/usr/bin/env ruby
...
require "rubygems"
require_gem "long-decimal"
Please observe that this is still pre-alpha-version, even though it is
getting close to becoming alpha. |
|