Sha256: 97482464b225a8ebaa3c6a22a47dce6735318675c532f2cc815e19693406cc67
Contents?: true
Size: 1.52 KB
Versions: 3
Compression:
Stored size: 1.52 KB
Contents
require 'rake' require 'rake/testtask' Rake::TestTask.new(:test) do |t| t.libs << 'lib' << 'test' t.pattern = 'test/**/*_test.rb' t.verbose = false end task :default => :test begin require 'jeweler' Jeweler::Tasks.new do |gemspec| gemspec.name = "diff_dirs" gemspec.summary = "Ruby helper to diff two directories" gemspec.email = "carl@carlmercier.com" gemspec.homepage = "http://github.com/cmer/diff_dirs" gemspec.description = "Ruby helper to diff two directories" gemspec.authors = ["Carl Mercier"] gemspec.files = FileList["[A-Z]*", "{bin,generators,lib,test}/**/*"] gemspec.rubyforge_project = 'diffdirs' end rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end begin require 'rake/contrib/sshpublisher' namespace :rubyforge do desc "Release gem and RDoc documentation to RubyForge" task :release => ["rubyforge:release:gem", "rubyforge:release:docs"] namespace :release do desc "Publish RDoc to RubyForge." task :docs => [:rdoc] do config = YAML.load( File.read(File.expand_path('~/.rubyforge/user-config.yml')) ) host = "#{config['username']}@rubyforge.org" remote_dir = "/var/www/cmercier/diff_dirs/" local_dir = 'rdoc' Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload end end end rescue LoadError puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured." end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
cmer-diff_dirs-0.1.2 | Rakefile |
diff_dirs-0.1.1 | Rakefile |
diff_dirs-0.1.2 | Rakefile |