Skip to content

Instantly share code, notes, and snippets.

@jtprince
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtprince/ba9c0d48ea3e9f217486 to your computer and use it in GitHub Desktop.
Save jtprince/ba9c0d48ea3e9f217486 to your computer and use it in GitHub Desktop.
Rakefile Template (after "bundle gem <some_gem>")
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