Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (26 sloc) 0.875 kb
# coding:utf-8
RAKE_ROOT = __FILE__
require 'rubygems'
require File.expand_path(File.dirname(__FILE__) + '/../gem_rake_helper')
########### CUSTOM TASKS ##########
gemspec = ::Gem::Specification.load(File.expand_path(File.dirname(__FILE__) + "/padrino.gemspec"))
subgems = [
["padrino-core", "= #{gemspec.version}"],
["padrino-helpers", "= #{gemspec.version}"],
["padrino-mailer", "= #{gemspec.version}"],
["padrino-gen", "= #{gemspec.version}"],
["padrino-admin", "= #{gemspec.version}"],
["padrino-cache", "= #{gemspec.version}"]
]
task :package => "lib/padrino.rb"
desc "Create padrino.rb"
task "lib/padrino.rb" do
mkdir_p "lib"
File.open("lib/padrino.rb","w+") do |file|
file.puts "### AUTOMATICALLY GENERATED. DO NOT EDIT!"
subgems.each do |pair|
g, _ = pair
file.puts "require '#{g}'" unless g =~ /padrino-gen/
end
end
end
Jump to Line
Something went wrong with that request. Please try again.