0
-require "rake/gempackagetask"
0
-gems = %w[merb_has_flash merb_has_rails_plugins]
0
-spec = Gem::Specification.new do |s|
0
- s.name = "merb_for_rails"
0
- s.platform = Gem::Platform::RUBY
0
- s.author = "Michael D. Ivey"
0
- s.email = "ivey@gweezlebur.com"
0
- s.homepage = "http://rubyforge.org/projects/merb-plugins/"
0
- s.summary = "A collection of Merb plugins to make the transition from Rails a little easier"
0
- s.description = s.summary
0
- s.files = %w( LICENSE README Rakefile )
0
- s.add_dependency "merb-core", ">= 0.9.0"
0
- s.add_dependency gem, [">= 0.9", "<= 1.0"]
0
-windows = (PLATFORM =~ /win32|cygwin/) rescue nil
0
-SUDO = windows ? "" : "sudo"
0
-# desc "Installs Merb More."
0
-# task :default => :install
0
-Rake::GemPackageTask.new(spec) do |package|
0
- package.gem_spec = spec
0
-task :install => [:install_gems, :package] do
0
- sh %{#{SUDO} gem install pkg/merb_has_rails_plugins-0.9.0.gem}
0
-desc "Build the sub-gems"
0
- sh %{cd #{dir}; rake package}
0
-desc "Install the sub-gems"
0
- sh %{cd #{dir}; #{SUDO} rake install}
0
-desc "Uninstall the sub-gems"
0
-task :uninstall_gems do
0
- gems.each do |sub_gem|
0
- sh %{#{SUDO} gem uninstall #{sub_gem}}
0
-desc "Bundle up all the merb-more gems"
0
-task :bundle => [:package, :build_gems] do
0
- cp "pkg/merb-#{Merb::MORE_VERSION}.gem", "bundle"
0
- cp "pkg/merb-more-#{Merb::MORE_VERSION}.gem", "bundle"
0
- File.open("#{gem}/Rakefile") do |rakefile|
0
- rakefile.read.detect {|l| l =~ /^VERSION\s*=\s*"(.*)"$/ }
0
- sh %{cp #{gem}/pkg/#{gem}-#{$1}.gem bundle/}
Comments
No one has commented yet.