0
require "rake/gempackagetask"
0
-AUTHOR = "Wayne E. Seguin, Lance Carlson"
0
-EMAIL = "wayneeseguin@gmail.com, lancecarlson@gmail.com"
0
-HOMEPAGE = "http://merb-plugins.rubyforge.org/merb_sequel/"
0
-SUMMARY = "Merb plugin that provides support for Sequel and Sequel::Model"
0
-specification = Gem::Specification.new do |spec|
0
- spec.version = VERSION
0
- spec.summary = SUMMARY
0
- spec.platform = Gem::Platform::RUBY
0
- spec.homepage = HOMEPAGE
0
- spec.description = SUMMARY
0
- spec.autorequire = PLUGIN
0
- spec.require_path = "lib"
0
- spec.extra_rdoc_files = ["README", "LICENSE", 'TODO']
0
- spec.add_dependency("merb-core", ">= 0.9.4")
0
- spec.add_dependency("sequel", ">= 1.4.0")
0
- spec.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,sequel_generators}/**/*")
0
+require 'merb-core/tasks/merb_rake_helper'
0
+AUTHOR = "Wayne E. Seguin, Lance Carlson"
0
+EMAIL = "wayneeseguin@gmail.com, lancecarlson@gmail.com"
0
+HOMEPAGE = "http://merbivore.com/"
0
+SUMMARY = "Merb plugin that provides support for Sequel and Sequel::Model"
0
+specification = Gem::Specification.new do |s|
0
+ s.rubyforge_project = 'merb'
0
+ s.version = GEM_VERSION
0
+ s.platform = Gem::Platform::RUBY
0
+ s.description = SUMMARY
0
+ s.require_path = "lib"
0
+ s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
0
+ s.add_dependency("merb-core", ">= 0.9.4")
0
+ s.add_dependency("sequel", ">= 1.4.0")
0
+ s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,sequel_generators}/**/*")
0
-windows = (PLATFORM =~ /win32|cygwin/) rescue nil
0
-SUDO = windows ? "" : "sudo"
0
Rake::GemPackageTask.new(specification) do |package|
0
package.gem_spec = specification
0
desc "Install merb_sequel"
0
task :install => :package do
0
- sh %{#{
SUDO} gem install pkg/#{NAME}-#{VERSION} --no-rdoc --no-ri --no-update-sources}
0
+ sh %{#{
sudo} gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION} --no-rdoc --no-ri --no-update-sources}
0
-desc 'Release the current version on rubyforge'
0
-task :release => :package do
0
- sh %{rubyforge add_release merb #{PLUGIN} #{VERSION} pkg/#{NAME}-#{VERSION}.gem}
0
+ desc "Run :package and install the resulting .gem with jruby"
0
+ task :install => :package do
0
+ sh %{#{sudo} jruby -S gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION}.gem --no-rdoc --no-ri}
0
\ No newline at end of file
Comments
No one has commented yet.