Skip to content

Commit

Permalink
Make merb-plugins gems use extlib release tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jul 24, 2008
1 parent 3d94d9f commit cf83af5
Show file tree
Hide file tree
Showing 9 changed files with 154 additions and 12 deletions.
9 changes: 9 additions & 0 deletions Rakefile
Expand Up @@ -35,3 +35,12 @@ task :bundle do
end
end
end

namespace :release do
desc "Publish Merb More gem to RubyForge, one by one."
task :gems => [ :bundle ] do
gems.each do |gem|
Dir.chdir(gem){ sh "rake release" }
end
end
end
20 changes: 19 additions & 1 deletion merb_activerecord/Rakefile
Expand Up @@ -42,4 +42,22 @@ namespace :jruby do
sh %{#{sudo} jruby -S gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION}.gem --no-rdoc --no-ri}
end

end
end


##############################################################################
# Release
##############################################################################
RUBY_FORGE_PROJECT = NAME

PKG_NAME = NAME
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
PKG_VERSION = GEM_VERSION + PKG_BUILD
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"

RELEASE_NAME = "REL #{PKG_VERSION}"

# FIXME: hey, someone take care of me
RUBY_FORGE_USER = ""

require "extlib/tasks/release"
17 changes: 17 additions & 0 deletions merb_helpers/Rakefile
Expand Up @@ -61,3 +61,20 @@ Spec::Rake::SpecTask.new('rcov') do |t|
t.rcov_opts = ['--exclude', 'gems', '--exclude', 'spec']
end


##############################################################################
# Release
##############################################################################
RUBY_FORGE_PROJECT = NAME

PKG_NAME = NAME
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
PKG_VERSION = GEM_VERSION + PKG_BUILD
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"

RELEASE_NAME = "REL #{PKG_VERSION}"

# FIXME: hey, someone take care of me
RUBY_FORGE_USER = ""

require "extlib/tasks/release"
20 changes: 18 additions & 2 deletions merb_laszlo/Rakefile
Expand Up @@ -45,10 +45,26 @@ task :make_spec do
end

namespace :jruby do

desc "Run :package and install the resulting .gem with jruby"
task :install => :package do
sh %{#{sudo} jruby -S gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION}.gem --no-rdoc --no-ri}
end

end


##############################################################################
# Release
##############################################################################
RUBY_FORGE_PROJECT = NAME

PKG_NAME = NAME
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
PKG_VERSION = GEM_VERSION + PKG_BUILD
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"

RELEASE_NAME = "REL #{PKG_VERSION}"

# FIXME: hey, someone take care of me
RUBY_FORGE_USER = ""

require "extlib/tasks/release"
18 changes: 18 additions & 0 deletions merb_param_protection/Rakefile
Expand Up @@ -60,3 +60,21 @@ Spec::Rake::SpecTask.new("rcov") do |t|
t.libs = ["lib", "server/lib" ]
t.rcov = true
end


##############################################################################
# Release
##############################################################################
RUBY_FORGE_PROJECT = NAME

PKG_NAME = NAME
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
PKG_VERSION = GEM_VERSION + PKG_BUILD
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"

RELEASE_NAME = "REL #{PKG_VERSION}"

# FIXME: hey, someone take care of me
RUBY_FORGE_USER = ""

require "extlib/tasks/release"
22 changes: 19 additions & 3 deletions merb_screw_unit/Rakefile
Expand Up @@ -39,10 +39,26 @@ task :install => [:package] do
end

namespace :jruby do

desc "Run :package and install the resulting .gem with jruby"
task :install => :package do
sh %{#{sudo} jruby -S gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION}.gem --no-rdoc --no-ri}
end

end
end


##############################################################################
# Release
##############################################################################
RUBY_FORGE_PROJECT = NAME

PKG_NAME = NAME
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
PKG_VERSION = GEM_VERSION + PKG_BUILD
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"

RELEASE_NAME = "REL #{PKG_VERSION}"

# FIXME: hey, someone take care of me
RUBY_FORGE_USER = ""

require "extlib/tasks/release"
20 changes: 18 additions & 2 deletions merb_sequel/Rakefile
Expand Up @@ -38,10 +38,26 @@ task :install => :package do
end

namespace :jruby do

desc "Run :package and install the resulting .gem with jruby"
task :install => :package do
sh %{#{sudo} jruby -S gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION}.gem --no-rdoc --no-ri}
end
end


##############################################################################
# Release
##############################################################################
RUBY_FORGE_PROJECT = NAME

PKG_NAME = NAME
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
PKG_VERSION = GEM_VERSION + PKG_BUILD
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"

RELEASE_NAME = "REL #{PKG_VERSION}"

# FIXME: hey, someone take care of me
RUBY_FORGE_USER = ""

end
require "extlib/tasks/release"
20 changes: 18 additions & 2 deletions merb_stories/Rakefile
Expand Up @@ -37,10 +37,26 @@ task :install => [:package] do
end

namespace :jruby do

desc "Run :package and install the resulting .gem with jruby"
task :install => :package do
sh %{#{sudo} jruby -S gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION}.gem --no-rdoc --no-ri}
end

end


##############################################################################
# Release
##############################################################################
RUBY_FORGE_PROJECT = NAME

PKG_NAME = NAME
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
PKG_VERSION = GEM_VERSION + PKG_BUILD
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"

RELEASE_NAME = "REL #{PKG_VERSION}"

# FIXME: hey, someone take care of me
RUBY_FORGE_USER = ""

require "extlib/tasks/release"
20 changes: 18 additions & 2 deletions merb_test_unit/Rakefile
Expand Up @@ -36,10 +36,26 @@ task :install => [:package] do
end

namespace :jruby do

desc "Run :package and install the resulting .gem with jruby"
task :install => :package do
sh %{#{sudo} jruby -S gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION}.gem --no-rdoc --no-ri}
end

end


##############################################################################
# Release
##############################################################################
RUBY_FORGE_PROJECT = NAME

PKG_NAME = NAME
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
PKG_VERSION = GEM_VERSION + PKG_BUILD
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"

RELEASE_NAME = "REL #{PKG_VERSION}"

# FIXME: hey, someone take care of me
RUBY_FORGE_USER = ""

require "extlib/tasks/release"

0 comments on commit cf83af5

Please sign in to comment.