Sha256: 977555288845bd9826c8d0b4014af6f0b8beaf46080821160c85a8f70524288c
Contents?: true
Size: 1.74 KB
Versions: 5
Compression:
Stored size: 1.74 KB
Contents
require 'rubygems' require 'rake' require 'lib/tasks/code_stats' begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "code_statistics" gem.summary = %Q{Making a gem of the normal rails rake stats method, to make it more robust and work on non rails projects} gem.description = %Q{"This is a port of the rails 'rake stats' method so it can be made more robust and work for non rails projects. New features may eventually be added as well."} gem.email = "dan@devver.net" gem.homepage = "http://github.com/danmayer/code_statistics" gem.authors = ["Dan Mayer"] gem.add_development_dependency "thoughtbot-shoulda" gem.add_development_dependency "devver-construct" gem.executables = ['code_statistics'] # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings end rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" end require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/*_test.rb' test.verbose = true end begin require 'rcov/rcovtask' Rcov::RcovTask.new do |test| test.libs << 'test' test.pattern = 'test/**/*_test.rb' test.verbose = true end rescue LoadError task :rcov do abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov" end end task :test => :check_dependencies task :default => :test require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| if File.exist?('VERSION') version = File.read('VERSION') else version = "" end rdoc.rdoc_dir = 'rdoc' rdoc.title = "code_statistics #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
code_statistics-0.2.6 | Rakefile |
code_statistics-0.2.5 | Rakefile |
code_statistics-0.2.4 | Rakefile |
code_statistics-0.2.3 | Rakefile |
code_statistics-0.2.2 | Rakefile |