Sha256: 32bb87f24b6dd38dfb481980ff056a0e6e701cfbd01aeff638d0e53f1adae1c1
Contents?: true
Size: 966 Bytes
Versions: 7
Compression:
Stored size: 966 Bytes
Contents
require 'rubygems' require 'rake' require 'rake/clean' require 'rdoc/task' # # clean CLEAN.include('pkg', 'rdoc') # # test / spec #task :spec => :check_dependencies do task :spec do exec 'rspec spec/' end task :test => :spec task :default => :spec # # gem GEMSPEC_FILE = Dir['*.gemspec'].first GEMSPEC = eval(File.read(GEMSPEC_FILE)) GEMSPEC.validate desc %{ builds the gem and places it in pkg/ } task :build do sh "gem build #{GEMSPEC_FILE}" sh "mkdir -p pkg" sh "mv #{GEMSPEC.name}-#{GEMSPEC.version}.gem pkg/" end desc %{ builds the gem and pushes it to rubygems.org } task :push => :build do sh "gem push pkg/#{GEMSPEC.name}-#{GEMSPEC.version}.gem" end # # rdoc # # make sure to have rdoc 2.5.x to run that Rake::RDocTask.new do |rd| rd.main = 'README.txt' rd.rdoc_dir = "rdoc/#{GEMSPEC.name}" rd.rdoc_files.include('README.rdoc', 'CHANGELOG.txt', 'lib/**/*.rb') rd.title = "#{GEMSPEC.name} #{GEMSPEC.version}" end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
raabro-1.0.5 | Rakefile |
raabro-1.0.4 | Rakefile |
raabro-1.0.3 | Rakefile |
raabro-1.0.2 | Rakefile |
raabro-1.0.1 | Rakefile |
raabro-1.0.0 | Rakefile |
raabro-0.9.0 | Rakefile |