ruby-decimal 0.2.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +28 -0
- data/Gemfile +3 -0
- data/History.txt +4 -0
- data/{README.txt → README.rdoc} +9 -0
- data/Rakefile +16 -30
- data/expand.rb +177 -0
- data/lib/decimal.rb +7 -3
- data/lib/decimal/shortcut.rb +1 -6
- data/lib/decimal/version.rb +2 -8
- data/test/helper.rb +2 -2
- data/test/test_basic.rb +1 -1
- data/test/test_coercion.rb +1 -1
- data/test/test_comparisons.rb +1 -1
- data/test/test_dectest.rb +1 -1
- data/test/test_define_conversions.rb +2 -9
- data/test/test_epsilon.rb +1 -1
- data/test/test_exact.rb +1 -2
- data/test/test_flags.rb +8 -9
- data/test/test_flt_wrapping.rb +12 -0
- data/test/test_multithreading.rb +1 -3
- data/test/test_odd_even.rb +1 -1
- data/test/test_round.rb +1 -2
- data/test/test_shortcut.rb +11 -0
- data/test/test_to_int.rb +1 -1
- data/test/test_to_rf.rb +1 -1
- data/test/test_ulp.rb +1 -1
- metadata +80 -73
- data/lib/decimal/decimal.rb +0 -4171
- data/lib/decimal/support.rb +0 -337
- data/setup.rb +0 -1585
- data/tasks/ann.rake +0 -80
- data/tasks/bones.rake +0 -20
- data/tasks/gem.rake +0 -192
- data/tasks/git.rake +0 -40
- data/tasks/manifest.rake +0 -48
- data/tasks/notes.rake +0 -27
- data/tasks/post_load.rake +0 -39
- data/tasks/rdoc.rake +0 -50
- data/tasks/rubyforge.rake +0 -55
- data/tasks/setup.rb +0 -279
- data/tasks/spec.rake +0 -54
- data/tasks/svn.rake +0 -47
- data/tasks/test.rake +0 -40
data/tasks/test.rake
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
|
2
|
-
if test(?e, PROJ.test.file) or not PROJ.test.files.to_a.empty?
|
3
|
-
require 'rake/testtask'
|
4
|
-
|
5
|
-
namespace :test do
|
6
|
-
|
7
|
-
Rake::TestTask.new(:run) do |t|
|
8
|
-
t.libs = PROJ.libs
|
9
|
-
t.test_files = if test(?f, PROJ.test.file) then [PROJ.test.file]
|
10
|
-
else PROJ.test.files end
|
11
|
-
t.ruby_opts += PROJ.ruby_opts
|
12
|
-
t.ruby_opts += PROJ.test.opts
|
13
|
-
end
|
14
|
-
|
15
|
-
if HAVE_RCOV
|
16
|
-
desc 'Run rcov on the unit tests'
|
17
|
-
task :rcov => :clobber_rcov do
|
18
|
-
opts = PROJ.rcov.opts.dup << '-o' << PROJ.rcov.dir
|
19
|
-
opts = opts.join(' ')
|
20
|
-
files = if test(?f, PROJ.test.file) then [PROJ.test.file]
|
21
|
-
else PROJ.test.files end
|
22
|
-
files = files.join(' ')
|
23
|
-
sh "#{RCOV} #{files} #{opts}"
|
24
|
-
end
|
25
|
-
|
26
|
-
task :clobber_rcov do
|
27
|
-
rm_r 'coverage' rescue nil
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
end # namespace :test
|
32
|
-
|
33
|
-
desc 'Alias to test:run'
|
34
|
-
task :test => 'test:run'
|
35
|
-
|
36
|
-
task :clobber => 'test:clobber_rcov' if HAVE_RCOV
|
37
|
-
|
38
|
-
end
|
39
|
-
|
40
|
-
# EOF
|