summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-09-13 00:01:17 +0900
committerRandy Morgan <[email protected]>2013-09-13 00:08:40 +0900
commit62ad5113c94dafe242637f2ce48d343a8245c0a9 (patch)
tree6716981f62b36299b15752f819f343daddb74e9c
parent97f773549114972a83c1334efc27247a096f34fd (diff)
downloadcaxlsx-62ad5113c94dafe242637f2ce48d343a8245c0a9.tar.gz
caxlsx-62ad5113c94dafe242637f2ce48d343a8245c0a9.zip
remove coverage task as it happens automatically when specs are run
-rw-r--r--.rvmrc1
-rw-r--r--Rakefile5
-rw-r--r--exclusive.rb32
3 files changed, 0 insertions, 38 deletions
diff --git a/.rvmrc b/.rvmrc
deleted file mode 100644
index ebac5ed5..00000000
--- a/.rvmrc
+++ /dev/null
@@ -1 +0,0 @@
-rvm use 1.9.3@axlsx
diff --git a/Rakefile b/Rakefile
index 227ecfc2..0e29e787 100644
--- a/Rakefile
+++ b/Rakefile
@@ -24,11 +24,6 @@ task :test do
end
end
-task :report do
- require 'cover_me'
- CoverMe.complete!
-end
-
task :release => :build do
system "gem push axlsx-#{Axlsx::VERSION}.gem"
end
diff --git a/exclusive.rb b/exclusive.rb
deleted file mode 100644
index 71339146..00000000
--- a/exclusive.rb
+++ /dev/null
@@ -1,32 +0,0 @@
-
-def exclusively_true(hash, key)
- #clone = hash.clone
- return false unless hash.delete(key) == true
- !hash.has_value? true
-end
-
-require 'test/unit'
-class TestExclusive < Test::Unit::TestCase
- def setup
- @test_hash = {foo: true, bar: false, hoge: false}
- end
- def test_exclusive
- assert_equal(true, exclusively_true(@test_hash, :foo))
- end
- def test_inexclusive
- @test_hash[:bar] = true
- assert_equal(false, exclusively_true(@test_hash, :foo))
- end
-end
-
-require 'benchmark'
-
-h = {foo: true}
-999.times {|i| h["a#{i}"] = false}
-Benchmark.bmbm(30) do |x|
- x.report('exclusively_true') do
- 1000.times do
- exclusively_true(h, :foo)
- end
- end
-end