Sha256: 87f198501c6424753e34b219a1dd3edf4ae2c552773b9fbf09e530b534923ff2
Contents?: true
Size: 1.86 KB
Versions: 1
Compression:
Stored size: 1.86 KB
Contents
require 'rake' require 'spec/rake/spectask' desc 'Default: run specs.' task :default => :spec desc 'Run the specs' Spec::Rake::SpecTask.new(:spec) do |t| t.spec_opts = ['--colour --format progress --loadby mtime --reverse'] t.spec_files = FileList['spec/**/*_spec.rb'] end begin require 'jeweler' Jeweler::Tasks.new do |gemspec| gemspec.name = "subdomain-fu" gemspec.rubyforge_project = 'subdomain-fu' gemspec.summary = "SubdomainFu is a Rails plugin that provides subdomain routing and URL writing helpers." gemspec.email = "michael@intridea.com" gemspec.homepage = "http://github.com/mbleigh/subdomain-fu" gemspec.files = FileList["[A-Z]*", "{lib,spec,rails}/**/*"] - FileList["**/*.log"] gemspec.description = "SubdomainFu is a Rails plugin to provide all of the basic functionality necessary to handle multiple subdomain applications (such as Basecamp-esque subdomain accounts and more)." gemspec.authors = ["Michael Bleigh"] end rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end # These are new tasks 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/gforge-projects/the-perfect-gem/" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
subdomain-fu-0.5.3 | Rakefile |