public
Description: A simple tool to manage Ruby on Rails plugins from GIT and Subversion SCM
Homepage: http://github.com/fnando/pez
Clone URL: git://github.com/fnando/pez.git
Click here to lend your support to: pez and make a donation at www.pledgie.com !
commit  2044720413d9dcf066aee0a9251ab6561172aaba
tree    0b804f28a1cfd81421ae5abbd0c01dfa8958e199
parent  3f8f551766535ec9c45ee3ba97b8845387947101
pez / Rakefile
100644 52 lines (41 sloc) 1.872 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
require "rake"
require "jeweler"
require "spec/rake/spectask"
require File.dirname(__FILE__) + "/lib/pez"
 
JEWEL = Jeweler::Tasks.new do |gem|
  gem.name = "pez"
  gem.version = Pez::VERSION
  gem.summary = "Manage Ruby on Rails plugins from GIT and Subversion repositories in a simple way"
  gem.description = <<-TXT
Pez is a simple tool to manage plugins from Git and Subversion repositories in
a easy way. Instead of adding plugins to the project repository, Pez
checkouts/clones the specified version to a temporary directory and
creates a symlink to the Ruby on Rails plugin directory.
 
When Pez is asked to update the plugins, it runs the correct command in that
directory, based on the repository type (Git or Subversion), which in turn is
applied to the project through the symlink.
 
Pez allows different environments to update plugins from a different directory.
So, when you deploy your Ruby on Rails application, you won't have to
checkout/update all plugins again, unless you explicit say so.
 
Pez is based on Braid (which I never had it working) but way simpler.
TXT
  
  gem.authors = ["Nando Vieira"]
  gem.email = "fnando.vieira@gmail.com"
  gem.homepage = "http://github.com/fnando/pez"
  
  gem.has_rdoc = false
  gem.files = %w(Rakefile History.txt pez.gemspec VERSION README.markdown) + Dir["{bin,lib,templates}/**/*"]
gem.bindir = "bin"
gem.executables = "pez"
 
gem.add_dependency "main"
end
 
desc "Generate gemspec, build and install the gem"
task :package => :build_gem do
  FileUtils.cp "VERSION", File.expand_path("~/Sites/github/fnando.github.com/views/version/_#{JEWEL.gemspec.name}.haml")
end
 
desc "Generate gemspec and build gem"
task :build_gem do
  File.open("VERSION", "w+") {|f| f << Pez::VERSION.to_s }
  Rake::Task["gemspec"].invoke
  Rake::Task["build"].invoke
end
 
Spec::Rake::SpecTask.new {|t| t.spec_opts = ["-c", "-f s"] }