Rakefile in parlement-0.3 vs Rakefile in parlement-0.4

- old
+ new

@@ -32,12 +32,14 @@ PKG_VERSION = PARLEMENT_VERSION PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" PKG_FILES = FileList[ '[A-Z]*', 'app/**/*', 'components/**/*', 'config/**/*', 'db/**/*', - 'lib/**/*', 'public/**/*', 'script/**/*', 'test/**/*', 'vendor/**/*' -].exclude(/\bsvn\b|~$/) + 'lib/**/*', 'public/*.*', 'public/dynamic/*', 'public/images/*', + 'public/engine_files/*', 'public/javascripts/*', 'script/stylesheets/*', + 'test/**/*', 'vendor/**/*' +].exclude(/\b(svn|tmp|attachment)\b|~$/) spec = Gem::Specification.new do |s| ## Basic information. s.name = PKG_NAME s.version = PKG_VERSION @@ -52,11 +54,11 @@ - PGP signatures - electoral lists EOF s.files = PKG_FILES s.require_path = 'lib' - s.autorequire = 'rails' + s.autorequire = 'rails redcloth' s.has_rdoc = false s.requirements << 'none' s.test_files = Dir.glob('test/unit/*') # Author and project details. @@ -161,23 +163,17 @@ """ fm = DevTools::Freshmeat::FreshmeatService.new(ENV['FRESHMEAT_USER'], ENV['FRESHMEAT_PASSWORD']) fm.get_project_list.each do |p| branches = fm.get_branch_list( p.shortName ) + puts branches.inspect release = fm.get_release( p.shortName, branches[0], p.version ) if PKG_NAME == p.shortName puts p - release.version = PKG_VERSION - release.changes = PKG_VERSION + #release.version = PKG_VERSION + #release.changes = PKG_VERSION end end puts fm.logout - - - Rake::XForge::NewsPublisher.new(MetaProject::Project::XForge::Fresh.new(PKG_NAME)) do |news| - # Never hardcode user name and password in the Rakefile! - news.user_name = ENV['RUBYFORGE_USER'] - news.password = ENV['RUBYFORGE_PASSWORD'] - end """ end