Skip to content
Browse files

gemspec

  • Loading branch information...
1 parent 6064a75 commit 1ade761029828a78da02d56142a232dd51768c50 @brettstimmerman committed Feb 25, 2009
Showing with 33 additions and 31 deletions.
  1. +4 −31 Rakefile
  2. +29 −0 jabber-bot.gemspec
View
35 Rakefile
@@ -27,43 +27,16 @@
#++
require 'rubygems'
-
-Gem::manage_gems
-
require 'rake/gempackagetask'
require 'rake/rdoctask'
-spec = Gem::Specification.new do |s|
- s.name = 'jabber-bot'
- s.version = '1.1.0'
- s.author = 'Brett Stimmerman'
- s.email = 'brettstimmerman@gmail.com'
- s.homepage = 'http://socket7.net/software/jabber-bot'
- s.platform = Gem::Platform::RUBY
- s.summary = "Jabber::Bot makes it simple to create and command your own " +
- "Jabber bot with little fuss. By adding custom commands " +
- "powered by regular expressions to your bot's repertoire, you " +
- "and your new bot will be able to accomplish nearly anything."
-
- s.rubyforge_project = 'jabber-bot'
-
- s.files = FileList['lib/**/*', 'LICENSE', 'README',
- 'HISTORY'].exclude('rdoc').to_a
-
- s.require_path = 'lib'
-
- s.has_rdoc = true
- s.extra_rdoc_files = ['README', 'LICENSE', 'HISTORY']
- s.rdoc_options << '--title' << 'Jabber::Bot Documentation' <<
- '--main' << 'README' <<
- '--line-numbers'
-
- s.required_ruby_version = '>=1.8.4'
+gemspec = nil
- s.add_dependency('xmpp4r-simple', '>=0.8.7')
+File.open(File.join(File.dirname(__FILE__), 'jabber-bot.gemspec')) do |f|
+ eval("gemspec = #{f.read}")
end
-Rake::GemPackageTask.new(spec) do |pkg|
+Rake::GemPackageTask.new(gemspec) do |pkg|
pkg.need_tar = true
end
View
29 jabber-bot.gemspec
@@ -0,0 +1,29 @@
+Gem::Specification.new do |s|
+ s.name = 'jabber-bot'
+ s.version = '1.1.0'
+ s.author = 'Brett Stimmerman'
+ s.email = 'brettstimmerman@gmail.com'
+ s.homepage = 'http://socket7.net/software/jabber-bot'
+ s.platform = Gem::Platform::RUBY
+ s.summary = "Jabber::Bot makes it simple to create and command your own " +
+ "Jabber bot with little fuss. By adding custom commands " +
+ "powered by regular expressions to your bot's repertoire, you " +
+ "and your new bot will be able to accomplish nearly anything."
+
+ s.rubyforge_project = 'jabber-bot'
+
+ s.files = FileList['lib/**/*', 'LICENSE', 'README',
+ 'HISTORY'].exclude('rdoc').to_a
+
+ s.require_path = 'lib'
+
+ s.has_rdoc = true
+ s.extra_rdoc_files = ['README', 'LICENSE', 'HISTORY']
+ s.rdoc_options << '--title' << 'Jabber::Bot Documentation' <<
+ '--main' << 'README' <<
+ '--line-numbers'
+
+ s.required_ruby_version = '>=1.8.4'
+
+ s.add_dependency('xmpp4r-simple', '>=0.8.7')
+end

0 comments on commit 1ade761

Please sign in to comment.
Something went wrong with that request. Please try again.