long-decimal 0.00.06
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +33 -0
- data/Rakefile +88 -0
- data/VERSION +1 -0
- data/install.rb +12 -0
- data/lib/longdecimal.rb +1319 -0
- data/make_doc.rb +6 -0
- data/test/testlongdecimal.rb +1731 -0
- data/version.rb +36 -0
- metadata +54 -0
data/version.rb
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
#
|
|
4
|
+
# version.rb -- extract version information from files
|
|
5
|
+
#
|
|
6
|
+
# CVS-ID: $Header: /var/cvs/long-decimal/long-decimal/version.rb,v 1.3 2006/02/25 20:05:53 bk1 Exp $
|
|
7
|
+
# CVS-Label: $Name: PRE_ALPHA_0_06 $
|
|
8
|
+
# Author: $Author: bk1 $ (Karl Brodowsky)
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
ARGV.each do |file|
|
|
12
|
+
name = ""
|
|
13
|
+
version = ""
|
|
14
|
+
|
|
15
|
+
File.open(file, "r") do |openFile|
|
|
16
|
+
openFile.each_line do |line|
|
|
17
|
+
if line =~ /\$[H]eader:\s.+,v\s+([0-9.]+)\s*.+\$/ then
|
|
18
|
+
version = $1
|
|
19
|
+
elsif line =~ /\$[N]ame:\s+(\S+)\s+\$/ then
|
|
20
|
+
name = $1
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
str = ""
|
|
26
|
+
if name =~ /PRE_ALPHA_(\d+)_(\d+)/ then
|
|
27
|
+
str = sprintf("0.%02d.%02d", $1, $2)
|
|
28
|
+
else
|
|
29
|
+
str = version
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# print "file=#{file}\nstr=#{str}\nversion=#{version}\nname=#{name}\n";
|
|
33
|
+
print str,"\n"
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# end of file version.rb
|
metadata
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
!ruby/object:Gem::Specification
|
|
2
|
+
rubygems_version: 0.8.11
|
|
3
|
+
specification_version: 1
|
|
4
|
+
name: long-decimal
|
|
5
|
+
version: !ruby/object:Gem::Version
|
|
6
|
+
version: 0.00.06
|
|
7
|
+
date: 2006-02-25 00:00:00 +01:00
|
|
8
|
+
summary: LongDecimal for numbers with fixed point
|
|
9
|
+
require_paths:
|
|
10
|
+
- lib
|
|
11
|
+
email: http://www.velofahren.de/mail.html
|
|
12
|
+
homepage: http://long-decimal.rubyforge.org/
|
|
13
|
+
rubyforge_project: long-decimal
|
|
14
|
+
description: ""
|
|
15
|
+
autorequire: long-decimal
|
|
16
|
+
default_executable:
|
|
17
|
+
bindir: bin
|
|
18
|
+
has_rdoc: true
|
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
20
|
+
requirements:
|
|
21
|
+
- - ">"
|
|
22
|
+
- !ruby/object:Gem::Version
|
|
23
|
+
version: 0.0.0
|
|
24
|
+
version:
|
|
25
|
+
platform: ruby
|
|
26
|
+
signing_key:
|
|
27
|
+
cert_chain:
|
|
28
|
+
authors:
|
|
29
|
+
- Karl Brodowsky
|
|
30
|
+
files:
|
|
31
|
+
- lib
|
|
32
|
+
- test
|
|
33
|
+
- Rakefile
|
|
34
|
+
- README
|
|
35
|
+
- install.rb
|
|
36
|
+
- VERSION
|
|
37
|
+
- make_doc.rb
|
|
38
|
+
- version.rb
|
|
39
|
+
- lib/longdecimal.rb
|
|
40
|
+
- test/testlongdecimal.rb
|
|
41
|
+
test_files:
|
|
42
|
+
- test/testlongdecimal.rb
|
|
43
|
+
rdoc_options: []
|
|
44
|
+
|
|
45
|
+
extra_rdoc_files: []
|
|
46
|
+
|
|
47
|
+
executables: []
|
|
48
|
+
|
|
49
|
+
extensions: []
|
|
50
|
+
|
|
51
|
+
requirements: []
|
|
52
|
+
|
|
53
|
+
dependencies: []
|
|
54
|
+
|