Sha256: b9ba947f8140d0414376363d2511071fb35efc84da17aac9230b904a95dde064

Contents?: true

Size: 923 Bytes

Versions: 8

Compression:

Stored size: 923 Bytes

Contents

# 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}"],
  ["padrino-support", "= #{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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
padrino-0.12.8 Rakefile
padrino-0.12.7 Rakefile
padrino-0.12.6 Rakefile
padrino-0.12.5 Rakefile
padrino-0.12.4 Rakefile
padrino-0.12.3 Rakefile
padrino-0.12.2 Rakefile
padrino-0.12.1 Rakefile