float-formats 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/Gemfile +3 -0
- data/History.txt +4 -0
- data/LICENSE +21 -0
- data/README.md +331 -0
- data/Rakefile +15 -34
- data/TODO.txt +18 -0
- data/expand.rb +175 -0
- data/float-formats.gemspec +26 -0
- data/lib/float-formats/bytes.rb +5 -2
- data/lib/float-formats/classes.rb +12 -13
- data/lib/float-formats/version.rb +2 -6
- data/test/test_arithmetic.rb +8 -2
- data/test/test_bytes.rb +1 -1
- data/test/test_float_formats.rb +1 -1
- data/test/test_helper.rb +1 -0
- data/test/test_native-float.rb +1 -1
- metadata +84 -103
- data/License.txt +0 -20
- data/Manifest.txt +0 -20
- data/README.txt +0 -330
- 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
|