Rakefile in merb_sequel-0.0.4 vs Rakefile in merb_sequel-0.4.0
- old
+ new
@@ -1,11 +1,11 @@
require 'rubygems'
require 'rake/gempackagetask'
PLUGIN = "merb_sequel"
NAME = "merb_sequel"
-VERSION = "0.0.4"
+VERSION = "0.4.0"
AUTHOR = "Duane Johnson"
EMAIL = "canadaduane@gmail.com"
HOMEPAGE = "http://merb-plugins.rubyforge.org/merb_sequel/"
SUMMARY = "Merb plugin that provides support for the Sequel database object"
@@ -18,14 +18,19 @@
s.summary = SUMMARY
s.description = s.summary
s.author = AUTHOR
s.email = EMAIL
s.homepage = HOMEPAGE
- s.requirements << 'merb'
+ s.add_dependency('merb', '>= 0.4.0')
s.require_path = 'lib'
s.autorequire = PLUGIN
- s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs}/**/*")
+ s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,sequel_generators}/**/*")
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
+end
+
+task :install do
+ sh %{rake package}
+ sh %{sudo gem install pkg/#{NAME}-#{VERSION}}
end
\ No newline at end of file