Last active
August 29, 2015 14:04
-
-
Save jtprince/ba9c0d48ea3e9f217486 to your computer and use it in GitHub Desktop.
Rakefile Template (after "bundle gem <some_gem>")
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "bundler/gem_tasks" | |
@module_name = Mspire::Mass | |
@gem_name = 'mspire-mass' | |
@gem_path_name = @gem_name.gsub('-','/') | |
require "#{@gem_path_name}/version" | |
require 'rspec/core' | |
require 'rspec/core/rake_task' | |
RSpec::Core::RakeTask.new(:spec) do |spec| | |
spec.pattern = FileList['spec/**/*_spec.rb'] | |
end | |
task :default => :spec | |
require 'rdoc/task' | |
Rake::RDocTask.new do |rdoc| | |
version = @module_name.const_get('VERSION') | |
rdoc.rdoc_dir = 'rdoc' | |
rdoc.title = "#{@gem_name} #{version}" | |
rdoc.rdoc_files.include('README*') | |
rdoc.rdoc_files.include('lib/**/*.rb') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment