Sha256: 1201ef0f71cab37603dffbd936c506eea962634f9c70c9a2ddc886e227e38098
Contents?: true
Size: 1.76 KB
Versions: 1
Compression:
Stored size: 1.76 KB
Contents
require "rake" require 'rake/gempackagetask' require 'rake/contrib/rubyforgepublisher' require 'rake/clean' require 'rake/testtask' require 'rake/rdoctask' desc "Runs the Rspec suite" task(:default) do run_suite end desc "Runs the Rspec suite" task(:spec) do run_suite end def run_suite dir = File.dirname(__FILE__) system("ruby #{dir}/spec/spec_suite.rb") || raise("Example Suite failed") end desc "Copies the trunk to a tag with the name of the current release" task(:tag_release) do tag_release end PKG_NAME = "desert" PKG_VERSION = "0.1.1" PKG_FILES = FileList[ '[A-Z]*', '*.rb', 'lib/**/*.rb', 'lib/generators/**/*', 'lib/generators/**/templates/*', 'examples/**/*.rb' ] spec = Gem::Specification.new do |s| s.name = PKG_NAME s.version = PKG_VERSION s.summary = "Desert is a component framework for Rails that allows your plugins to be packaged as mini Rails apps." s.test_files = "examples/spec_suite.rb" s.description = s.summary s.files = PKG_FILES.to_a s.require_path = 'lib' s.has_rdoc = true s.extra_rdoc_files = [ "README", "CHANGES" ] s.rdoc_options = ["--main", "README", "--inline-source", "--line-numbers"] s.test_files = Dir.glob('spec/*_spec.rb') s.require_path = 'lib' s.autorequire = 'desert' s.author = "Pivotal Labs" s.email = "opensource@pivotallabs.com" s.homepage = "http://pivotallabs.com" s.rubyforge_project = "pivotalrb" end Rake::GemPackageTask.new(spec) do |pkg| pkg.need_zip = true pkg.need_tar = true end def tag_release dashed_version = PKG_VERSION.gsub('.', '-') svn_user = "#{ENV["SVN_USER"]}@" || "" `svn cp svn+ssh://#{svn_user}rubyforge.org/var/svn/pivotalrb/desert/trunk svn+ssh://#{svn_user}rubyforge.org/var/svn/pivotalrb/desert/tags/REL-#{dashed_version} -m 'Version #{PKG_VERSION}'` end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
desert-0.1.1 | Rakefile |