Rakefile in masterview_parser-0.0.3 vs Rakefile in masterview_parser-0.0.4

- old
+ new

@@ -10,12 +10,12 @@ require 'masterview' RUBY_FORGE_PROJECT = "masterview" RUBY_FORGE_USER = "jeffbski" RUBY_FORGE_GROUPID = "1290" -RUBY_FORGE_PACKAGEID = "1581" #verify this from http://rubyforge.org/frs/admin/?group_id=1290 + desc "Default Task" task :default => [ :test ] desc "Delete tar.gz / zip / rdoc" task :cleanup => [ :rm_packages, :clobber_rdoc ] @@ -97,18 +97,18 @@ desc 'Build all packages' task :package_all => ['masterview_complete:package', 'masterview:package', 'masterview_parser:package', 'masterview_generator:package', - 'masterview_gem_plugin_generator:package'] + 'masterview_plugin_generator:package'] desc 'Re-build all packages' task :repackage_all => ['masterview_complete:repackage', 'masterview:repackage', 'masterview_parser:repackage', 'masterview_generator:repackage', - 'masterview_gem_plugin_generator:repackage'] + 'masterview_plugin_generator:repackage'] namespace 'masterview_complete' do module MasterViewComplete PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' PKG_NAME = 'masterview_complete' @@ -128,11 +128,11 @@ ].exclude(/\bCVS\b|~$|\.svn|semantic.cache/) spec = Gem::Specification.new do |s| s.name = PKG_NAME s.version = PKG_VERSION - s.summary = "A (x)html friendly template engine for rails with the power of layouts, and partials. This is the plugin version which contains everything." + s.summary = "A (x)html friendly template engine for rails with the power of layouts, and partials. This is the plugin version which contains everything for installation, does not require any gems." s.has_rdoc = true s.files = PKG_FILES s.require_path = 'lib' s.autorequire = 'masterview' s.author = "Jeff Barczewski" @@ -144,10 +144,23 @@ Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec p.need_tar = true p.need_zip = true end + + # --- Ruby forge release manager by florian gross ------------------------------------------------- + RUBY_FORGE_PACKAGEID = "1909" #verify this from http://rubyforge.org/frs/admin/?group_id=1290 + desc "Publish the masterview_complete release files to RubyForge." + task :release => [:gem, :package] do + files = ["zip", "tgz"].map { |ext| "pkg/#{PKG_FILE_NAME}.#{ext}" } + + system("rubyforge login --username #{::RUBY_FORGE_USER}") + + files.each do |file| + system("rubyforge add_release #{::RUBY_FORGE_GROUPID} #{RUBY_FORGE_PACKAGEID} \"#{RELEASE_NAME}\" #{file}") + end + end end end namespace 'masterview' do module MasterViewGem @@ -165,15 +178,15 @@ s.name = PKG_NAME s.version = PKG_VERSION s.summary = "A (x)html friendly template engine for rails with the power of layouts, and partials. Main gem which requires all others" s.has_rdoc = true s.files = PKG_FILES - s.require_path = 'lib' + #s.require_path = 'lib' #s.autorequire = 'masterview' s.add_dependency 'masterview_parser' s.add_dependency 'masterview_generator' - s.add_dependency 'masterview_gem_plugin_generator' + s.add_dependency 'masterview_plugin_generator' s.author = "Jeff Barczewski" s.email = "jeff.barczewski@gmail.com" s.homepage = "http://masterview.org/" end @@ -181,10 +194,23 @@ Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec p.need_tar = false p.need_zip = false end + + # --- Ruby forge release manager by florian gross ------------------------------------------------- + RUBY_FORGE_PACKAGEID = "1581" #verify this from http://rubyforge.org/frs/admin/?group_id=1290 + desc "Publish the masterview_complete release files to RubyForge." + task :release => [:gem, :package] do + files = ["zip", "tgz"].map { |ext| "pkg/#{PKG_FILE_NAME}.#{ext}" } + + system("rubyforge login --username #{::RUBY_FORGE_USER}") + + files.each do |file| + system("rubyforge add_release #{::RUBY_FORGE_GROUPID} #{RUBY_FORGE_PACKAGEID} \"#{RELEASE_NAME}\" #{file}") + end + end end end namespace 'masterview_parser' do module MasterViewParser @@ -221,10 +247,23 @@ Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec p.need_tar = false p.need_zip = false end + + # --- Ruby forge release manager by florian gross ------------------------------------------------- + RUBY_FORGE_PACKAGEID = "1910" #verify this from http://rubyforge.org/frs/admin/?group_id=1290 + desc "Publish the masterview_parser release files to RubyForge." + task :release => [:gem, :package] do + files = ["zip", "tgz"].map { |ext| "pkg/#{PKG_FILE_NAME}.#{ext}" } + + system("rubyforge login --username #{::RUBY_FORGE_USER}") + + files.each do |file| + system("rubyforge add_release #{::RUBY_FORGE_GROUPID} #{RUBY_FORGE_PACKAGEID} \"#{RELEASE_NAME}\" #{file}") + end + end end end namespace 'masterview_generator' do module MasterViewGenerator @@ -241,11 +280,11 @@ spec = Gem::Specification.new do |s| s.name = PKG_NAME s.version = PKG_VERSION s.summary = "A (x)html friendly template engine for rails with the power of layouts, and partials. MasterView Generator for GEM" - s.has_rdoc = true + s.has_rdoc = false s.files = PKG_FILES s.require_path = 'generators/masterview' #s.autorequire = 'masterview_generator' s.add_dependency 'masterview_parser' s.author = "Jeff Barczewski" @@ -257,35 +296,48 @@ Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec p.need_tar = false p.need_zip = false end + + # --- Ruby forge release manager by florian gross ------------------------------------------------- + RUBY_FORGE_PACKAGEID = "1911" #verify this from http://rubyforge.org/frs/admin/?group_id=1290 + desc "Publish the masterview_generator release files to RubyForge." + task :release => [:gem, :package] do + files = ["zip", "tgz"].map { |ext| "pkg/#{PKG_FILE_NAME}.#{ext}" } + + system("rubyforge login --username #{::RUBY_FORGE_USER}") + + files.each do |file| + system("rubyforge add_release #{::RUBY_FORGE_GROUPID} #{RUBY_FORGE_PACKAGEID} \"#{RELEASE_NAME}\" #{file}") + end + end end end -namespace 'masterview_gem_plugin_generator' do +namespace 'masterview_plugin_generator' do module MasterViewGemPluginGenerator PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' - PKG_NAME = 'masterview_gem_plugin_generator' + PKG_NAME = 'masterview_plugin_generator' PKG_VERSION = MasterView::VERSION::STRING + PKG_BUILD PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" PKG_DESTINATION = ENV["RAILS_PKG_DESTINATION"] || "../#{PKG_NAME}" RELEASE_NAME = "REL #{PKG_VERSION}" PKG_FILES = FileList[ - "generators/masterview_gem_plugin/**/*", + "generators/masterview_plugin/**/*", "[A-Z]*" ].exclude(/\bCVS\b|~$|\.svn|semantic.cache/) spec = Gem::Specification.new do |s| s.name = PKG_NAME s.version = PKG_VERSION s.summary = "A (x)html friendly template engine for rails with the power of layouts, and partials. MasterView Plugin Generator for GEM" - s.has_rdoc = true + s.has_rdoc = false s.files = PKG_FILES - s.require_path = 'generators/masterview_gem_plugin' - #s.autorequire = 'masterview_gem_plugin_generator' + s.require_path = 'generators/masterview_plugin' + #s.autorequire = 'masterview_plugin_generator' s.add_dependency 'masterview_parser' s.author = "Jeff Barczewski" s.email = "jeff.barczewski@gmail.com" s.homepage = "http://masterview.org/" end @@ -294,20 +346,22 @@ Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec p.need_tar = false p.need_zip = false end - end -end + # --- Ruby forge release manager by florian gross ------------------------------------------------- + RUBY_FORGE_PACKAGEID = "1912" #verify this from http://rubyforge.org/frs/admin/?group_id=1290 + desc "Publish the masterview_plugin_generator release files to RubyForge." + task :release => [:gem, :package] do + files = ["zip", "tgz"].map { |ext| "pkg/#{PKG_FILE_NAME}.#{ext}" } -# --- Ruby forge release manager by florian gross ------------------------------------------------- -desc "Publish the release files to RubyForge." -task :release => [:gem, :package] do - files = ["zip", "tgz"].map { |ext| "pkg/#{PKG_FILE_NAME}.#{ext}" } - - system("rubyforge login --username #{RUBY_FORGE_USER}") - - files.each do |file| - system("rubyforge add_release #{RUBY_FORGE_GROUPID} #{RUBY_FORGE_PACKAGEID} \"#{RELEASE_NAME}\" #{file}") + system("rubyforge login --username #{::RUBY_FORGE_USER}") + + files.each do |file| + system("rubyforge add_release #{::RUBY_FORGE_GROUPID} #{RUBY_FORGE_PACKAGEID} \"#{RELEASE_NAME}\" #{file}") + end + end end end + +