-
- s.requirements << 'Ruby, version 1.8.0 (or newer)'
-
- #### Which files are to be included in this gem? Everything! (Except .svn directories.)
-
- s.files = Dir.glob("**/*").delete_if { |item| item.include?(".svn") }
-
- #### C code extensions.
-
- # s.require_path = '.' # is this correct?
- # s.extensions << "extconf.rb"
-
- #### Load-time details: library and application (you will need one or both).
- s.autorequire = 'rbot/ircbot'
- s.has_rdoc = true
- s.rdoc_options = ['--include', 'lib', '--exclude',
- '(post-config.rb|rbotconfig.rb)', '--title', 'rbot API Documentation',
- '--main', 'lib/rbot/ircbot.rb', 'lib', 'bin/rbot']
-
- #### Author and project details.
+ s.requirements << 'Ruby, version 1.9.3 (or newer)'
+ s.licenses = ['GPL-2.0']
+
+ s.files = FileList[
+ 'lib/**/*.rb',
+ 'bin/*',
+ 'data/rbot/**/*',
+ 'AUTHORS',
+ 'COPYING',
+ 'COPYING.rbot',
+ 'GPLv2',
+ 'README.md',
+ 'REQUIREMENTS',
+ 'TODO',
+ 'ChangeLog',
+ 'INSTALL',
+ 'Usage_en.txt',
+ 'man/rbot.xml',
+ 'setup.rb',
+ 'launch_here.rb',
+ 'po/*.pot',
+ 'po/**/*.po'
+ ]
+
+ s.bindir = 'bin'
+ s.executables = ['rbot', 'rbotdb']
+ s.extensions = 'Rakefile'
+
+ s.rdoc_options = ['--exclude', 'post-install.rb',
+ '--title', 'rbot API Documentation', '--main', 'README.rdoc', 'README.rdoc']