long-decimal 0.00.06

Sign up to get free protection for your applications and to get access to all the features.
data/README ADDED
@@ -0,0 +1,33 @@
1
+ Usage
2
+ -----
3
+
4
+ Just put longdecimal.rb in your path and add
5
+ load "longdecimal.rb"
6
+ to your ruby-file. Please read the code to get an idea how to use this.
7
+
8
+ To test on Linux/Unix:
9
+ put longdecimal.rb and testlongdecimal.rb into the same directory,
10
+ do
11
+ chmod +x testlongdecimal.rb
12
+ and run it
13
+ ./testlongdecimal.rb
14
+
15
+ Licence
16
+ -------
17
+
18
+ Ruby's license or LGPL
19
+ Find copies of these licenses on http://www.gnu.org/ or http://www.ruby-lang.org/
20
+
21
+ Warranty
22
+ --------
23
+
24
+ This is a pre-alpha-version. Do not expect too much! This is work in progress!
25
+ I do not take any responsibility. Please use it as it is, change it
26
+ according to the terms of the license or wait for a more stable
27
+ version (for wich I can't take any warranty either...)
28
+
29
+ Author
30
+ ------
31
+
32
+ Karl Brodowsky
33
+ http://www.velofahren.de/cgi-bin/mailform.cgi
data/Rakefile ADDED
@@ -0,0 +1,88 @@
1
+ #
2
+ # Rakefile for long-decimal project
3
+ #
4
+ # CVS-ID: $Header: /var/cvs/long-decimal/long-decimal/Rakefile,v 1.1 2006/02/25 19:52:11 bk1 Exp $
5
+ # CVS-Label: $Name: PRE_ALPHA_0_06 $
6
+ # Author: $Author: bk1 $ (Karl Brodowsky)
7
+ #
8
+
9
+ require 'rake/gempackagetask'
10
+ require 'rbconfig'
11
+
12
+ include Config
13
+
14
+ PKG_NAME = 'long-decimal'
15
+ PKG_VERSION = File.read('VERSION').chomp
16
+ PKG_FILES = Dir.glob("**/*").delete_if { |item|
17
+ item.include?("CVS") || item.include?("RCS") || item.include?("pkg") || item.include?("~") || item.include?("#")
18
+ }
19
+
20
+ desc "Creating VERSION file"
21
+ task :version do
22
+ ruby 'version.rb lib/longdecimal.rb > VERSION'
23
+ end
24
+
25
+ desc "Installing library"
26
+ task :install do
27
+ ruby 'install.rb'
28
+ end
29
+
30
+ desc "Creating documentation"
31
+ task :doc do
32
+ ruby 'make_doc.rb'
33
+ end
34
+
35
+ desc "Testing library"
36
+ task :test do
37
+ ruby %{test/testlongdecimal.rb}
38
+ end
39
+
40
+ spec = Gem::Specification.new do |s|
41
+
42
+ #### Basic information.
43
+
44
+ s.name = 'long-decimal'
45
+ s.version = PKG_VERSION
46
+ s.summary = 'LongDecimal for numbers with fixed point'
47
+ s.description = ""
48
+
49
+ #### Dependencies and requirements.
50
+
51
+ s.files = PKG_FILES
52
+
53
+ #### C code extensions.
54
+
55
+ #### Load-time details: library and application (you will need one or both).
56
+
57
+ s.require_path = 'lib' # 'lib' # Use these for libraries.
58
+ s.autorequire = 'long-decimal'
59
+
60
+ #s.bindir = "bin" # Use these for applications.
61
+ #s.executables = ["bla.rb"]
62
+ #s.default_executable = "bla.rb"
63
+
64
+ #### Documentation and testing.
65
+
66
+ s.has_rdoc = true
67
+ #s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$/ }.to_a
68
+ #s.rdoc_options <<
69
+ # '--title' << 'Rake -- Ruby Make' <<
70
+ # '--main' << 'README' <<
71
+ # '--line-numbers'
72
+ s.test_files << 'test/testlongdecimal.rb'
73
+
74
+ #### Author and project details.
75
+
76
+ s.author = "Karl Brodowsky"
77
+ s.email = "http://www.velofahren.de/mail.html"
78
+ s.homepage = "http://long-decimal.rubyforge.org/"
79
+ s.rubyforge_project = "long-decimal"
80
+ end
81
+
82
+ Rake::GemPackageTask.new(spec) do |pkg|
83
+ pkg.need_tar = true
84
+ pkg.package_files += PKG_FILES
85
+ end
86
+
87
+ # end of file Rakefile
88
+
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.00.06
data/install.rb ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rbconfig'
4
+ require 'fileutils'
5
+ include FileUtils::Verbose
6
+
7
+ include Config
8
+
9
+ file = 'lib/longdecimal.rb'
10
+ dest = CONFIG["sitelibdir"]
11
+ install(file, dest)
12
+ # vim: set et sw=4 ts=4: