Sha256: d87524932a1888502af954b4ec9744c1b6385ba7d2910f65711e82dfba1be8c4

Contents?: true

Size: 781 Bytes

Versions: 8

Compression:

Stored size: 781 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
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

8 entries across 8 versions & 1 rubygems

Version Path
jbox-gitolite-1.1.9 Rakefile
jbox-gitolite-1.1.8 Rakefile
jbox-gitolite-1.1.7 Rakefile
jbox-gitolite-1.1.6 Rakefile
jbox-gitolite-1.1.5 Rakefile
jbox-gitolite-1.1.4 Rakefile
jbox-gitolite-1.1.3 Rakefile
jbox-gitolite-1.1.2 Rakefile