From 23a324ef9667ec3e1a6df29b53e30ddb7154fb19 Mon Sep 17 00:00:00 2001 From: Nicolas VERINAUD Date: Fri, 22 Jun 2012 10:49:09 +0200 Subject: [PATCH] Make it a gem. --- .gitignore | 1 + Gemfile | 14 ++++++++++++++ Gemfile.lock | 33 +++++++++++++++++++++++++++++++++ Rakefile | 8 -------- test/helper.rb | 3 +++ 5 files changed, 51 insertions(+), 8 deletions(-) create mode 100644 Gemfile create mode 100644 Gemfile.lock diff --git a/.gitignore b/.gitignore index 560d1a6..237792d 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ spec/reports test/tmp test/version_tmp tmp +coverage # YARD artifacts .yardoc diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..b2cda02 --- /dev/null +++ b/Gemfile @@ -0,0 +1,14 @@ +source "http://rubygems.org" +# Add dependencies required to use your gem here. +# Example: +# gem "activesupport", ">= 2.3.5" + +# Add dependencies to develop your gem here. +# Include everything needed to run rake, tests, features, etc. +group :development do + gem "shoulda", ">= 0" + gem "rdoc", "~> 3.12" + gem "bundler", ">= 1.0.0" + gem "jeweler", "~> 1.8.3" + gem 'simplecov' +end diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..cee1105 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,33 @@ +GEM + remote: http://rubygems.org/ + specs: + git (1.2.5) + jeweler (1.8.3) + bundler (~> 1.0) + git (>= 1.2.5) + rake + rdoc + json (1.7.3) + multi_json (1.3.6) + rake (0.9.2.2) + rdoc (3.12) + json (~> 1.4) + shoulda (3.0.1) + shoulda-context (~> 1.0.0) + shoulda-matchers (~> 1.0.0) + shoulda-context (1.0.0) + shoulda-matchers (1.0.0) + simplecov (0.6.4) + multi_json (~> 1.0) + simplecov-html (~> 0.5.3) + simplecov-html (0.5.3) + +PLATFORMS + ruby + +DEPENDENCIES + bundler (>= 1.0.0) + jeweler (~> 1.8.3) + rdoc (~> 3.12) + shoulda + simplecov diff --git a/Rakefile b/Rakefile index 8eff8db..317922b 100644 --- a/Rakefile +++ b/Rakefile @@ -31,14 +31,6 @@ Rake::TestTask.new(:test) do |test| test.verbose = true end -require 'rcov/rcovtask' -Rcov::RcovTask.new do |test| - test.libs << 'test' - test.pattern = 'test/**/test_*.rb' - test.verbose = true - test.rcov_opts << '--exclude "gems/*"' -end - task :default => :test require 'rdoc/task' diff --git a/test/helper.rb b/test/helper.rb index 0668dca..9d7454c 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,3 +1,6 @@ +require 'simplecov' +SimpleCov.start + require 'rubygems' require 'bundler' begin