Rakefile in merb_helpers-0.5 vs Rakefile in merb_helpers-0.9.2
- old
+ new
@@ -3,11 +3,11 @@
require 'rake/rdoctask'
require 'spec/rake/spectask'
PLUGIN = "merb_helpers"
NAME = "merb_helpers"
-GEM_VERSION = "0.5"
+VERSION = "0.9.2"
AUTHOR = "Yehuda Katz"
EMAIL = "wycats@gmail.com"
HOMEPAGE = "http://merb.rubyforge.org/"
SUMMARY = "Helper support for merb (similar to the Rails form helpers)"
@@ -15,20 +15,20 @@
SUDO = windows ? "" : "sudo"
spec = Gem::Specification.new do |s|
s.name = NAME
- s.version = GEM_VERSION
+ s.version = VERSION
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
s.summary = SUMMARY
s.description = s.summary
s.author = AUTHOR
s.email = EMAIL
s.homepage = HOMEPAGE
- s.add_dependency("merb", ">=0.5")
+ s.add_dependency("merb-core", ">=0.9.2")
s.require_path = 'lib'
s.autorequire = PLUGIN
s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs}/**/*")
end
@@ -37,11 +37,11 @@
pkg.gem_spec = spec
end
desc "Run :package and install resulting .gem"
task :install => [:package] do
- sh %{#{SUDO} gem install pkg/#{NAME}-#{GEM_VERSION} --no-rdoc --no-ri}
+ sh %{#{SUDO} gem install pkg/#{NAME}-#{VERSION} --no-rdoc --no-ri --no-update-sources}
end
Rake::RDocTask.new do |rdoc|
files = ['README', 'LICENSE',
'lib/**/*.rb']
@@ -52,10 +52,9 @@
rdoc.options << '--line-numbers' << '--inline-source'
end
Spec::Rake::SpecTask.new do |t|
- t.warning = true
t.spec_opts = ["--format", "specdoc", "--colour"]
t.spec_files = Dir['spec/**/*_spec.rb'].sort
end
desc "Run all specs and generate an rcov report"