Sha256: b5662a6e532f874ff2d1b32e67341e3431437be2d15c374e38873a303c59d479
Contents?: true
Size: 796 Bytes
Versions: 6
Compression:
Stored size: 796 Bytes
Contents
require 'bundler' Bundler::GemHelper.install_tasks require 'rspec/core/rake_task' # Rake tasks from https://github.com/mojombo/rakegem/blob/master/Rakefile # Helper Functions def name @name ||= Dir['*.gemspec'].first.split('.').first end def version line = File.read("lib/#{name}/version.rb")[/^\s*VERSION\s*=\s*.*/] line.match(/.*VERSION\s*=\s*['"](.*)['"]/)[1] end # Standard tasks require 'rcov' RSpec::Core::RakeTask.new(:spec) task :test => :spec task :default => :spec require 'rdoc/task' Rake::RDocTask.new do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = "#{name} #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end desc "Open an irb session preloaded with this library" task :console do sh "irb -rubygems -r ./lib/#{name}.rb" end
Version data entries
6 entries across 6 versions & 2 rubygems
Version | Path |
---|---|
gitolite-dtg-0.2.0 | Rakefile |
gitolite-dtg-0.1.0 | Rakefile |
gitolite-1.1.0 | Rakefile |
gitolite-1.0.1 | Rakefile |
gitolite-1.0.0 | Rakefile |
gitolite-0.0.3.alpha | Rakefile |