Skip to content

Commit

Permalink
fixup gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Dempsey committed Mar 24, 2009
1 parent d7daa24 commit 8385700
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,38 @@ require 'rubygems'
require 'rake/gempackagetask'

PLUGIN = "acts_as_commentable"
NAME = "acts_as_commentable"
GEM_VERSION = "1.0.0"
GEM = "acts_as_commentable"
GEM_VERSION = "1.0.1"
AUTHOR = "Cosmin Radoi"
EMAIL = "unknown@juixe.com"
HOMEPAGE = "http://www.juixe.com/techknow/index.php/2006/06/18/acts-as-commentable-plugin/"
SUMMARY = "Plugin/gem that provides comment functionality"

spec = Gem::Specification.new do |s|
s.name = NAME
s.name = GEM
s.version = GEM_VERSION
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.has_rdoc = false
s.extra_rdoc_files = ["README", "MIT-LICENSE"]
s.summary = SUMMARY
s.description = s.summary
s.author = AUTHOR
s.email = EMAIL
s.homepage = HOMEPAGE
s.add_dependency('merb', '>= 0.5.0')

# Uncomment this to add a dependency
# s.add_dependency "foo"

s.require_path = 'lib'
s.autorequire = PLUGIN
s.files = %w(MIT-LICENSE README Rakefile) + Dir.glob("{lib,specs}/**/*")
s.autorequire = GEM
s.files = %w(MIT-LICENSE README) + Dir.glob("lib/**/*")
end


Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end

task :install => [:package] do
sh %{sudo gem install pkg/#{NAME}-#{GEM_VERSION}}
end
sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
end

0 comments on commit 8385700

Please sign in to comment.