Sha256: 660182eeaf722787c412b2f20f7dfa5ccb7fadbf85744dfa7a0fc76539cb08be
Contents?: true
Size: 1.82 KB
Versions: 1
Compression:
Stored size: 1.82 KB
Contents
require 'rubygems' require 'rake' require 'rake/testtask' require 'rake/packagetask' require 'rake/rdoctask' require 'rake/gempackagetask' require 'rake/contrib/rubyforgepublisher' PKG_VERSION = "0.2.#{`vcs-svn rev`.chomp}" PKG_FILES = FileList[*%w" src/**/*.rb ruby_ex/**/*.rb bin/**/* doc/**/* [A-Z]* "].exclude(/\b\.svn\b|\..*\.sw[op]$|~$|README/) desc 'Default Task' task :default => :package desc 'Publish to RubyForge' task :rubyforge do Rake::RubyForgePublisher.new('vcs', 'ertai').upload end Rake::RDocTask.new('doc') do |rdoc| rdoc.title = 'Vcs -- A wrapper over any version control system' rdoc.template = 'kilmer' #rdoc.template = 'doc/jamis' rdoc.options << '--line-numbers' << '--inline-source' #rdoc.rdoc_files.add('src/vcs.rb', 'src/**/*.rb') rdoc.rdoc_files.add('src/**/*.rb') #rdoc.main = end # The Gem specification spec = Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.name = 'vcs' s.version = PKG_VERSION s.summary = 'A wrapper over any version control system' s.description = ' Version control systems (Subversion, CVS, PRCS...), however useful, are not very extensible: adding new features can be cumbersome, especially if you want them for different such systems at once. Vcs provide a simple dynamic hierarchy for Version Control Systems. ' s.bindir = 'bin' s.executables = %w[ vcs vcs-svn vcs-cvs vcs-prcs ] s.default_executable = 'vcs' s.files = PKG_FILES.to_a s.require_path = 'src' s.autorequire = 'vcs' s.has_rdoc = true s.author = 'Nicolas Pouillard' s.email = 'ertai@lrde.epita.fr' s.homepage = 'https://svn.lrde.epita.fr/svn/lrdetools/trunk/vcs/' s.rubyforge_project = s.name end # Create compressed packages Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec # p.need_tar = true # p.need_zip = true end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vcs-0.2.148 | Rakefile |