timshadel / xmpp4r-simple forked from blaine/xmpp4r-simple
- Source
- Commits
- Network (20)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
6a0ca1b
xmpp4r-simple / Rakefile
| e246005b » | romeda | 2006-11-08 | 1 | # Jabber::Simple - Ruby Helper for Faking Web Requests | |
| 2 | # Copyright 2006 Blaine Cook <romeda@gmail.com>. | ||||
| 3 | # | ||||
| 4 | # Jabber::Simple is free software; you can redistribute it and/or modify | ||||
| 5 | # it under the terms of the GNU General Public License as published by | ||||
| 6 | # the Free Software Foundation; either version 2 of the License, or | ||||
| 7 | # (at your option) any later version. | ||||
| 8 | # | ||||
| 9 | # Jabber::Simple is distributed in the hope that it will be useful, | ||||
| 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
| 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
| 12 | # GNU General Public License for more details. | ||||
| 13 | # | ||||
| 14 | # You should have received a copy of the GNU General Public License | ||||
| 15 | # along with Jabber::Simple; if not, write to the Free Software | ||||
| 16 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||||
| 17 | |||||
| 18 | require 'rake/testtask' | ||||
| 19 | require 'rake/rdoctask' | ||||
| 20 | require 'rcov/rcovtask' | ||||
| 21 | |||||
| 37d466f7 » | blaine | 2008-07-30 | 22 | desc "Package Gem" | |
| 23 | task :package do | ||||
| 24 | system('gem build xmpp4r-simple.gemspec') | ||||
| e246005b » | romeda | 2006-11-08 | 25 | end | |
| 26 | |||||
| 27 | desc "Default Task" | ||||
| 28 | task :default => [:tests] | ||||
| 29 | |||||
| 30 | desc "Run All Tests" | ||||
| 31 | Rake::TestTask.new :tests do |test| | ||||
| 32 | test.test_files = ["test/**/*.rb"] | ||||
| 33 | test.verbose = true | ||||
| 34 | end | ||||
| 35 | |||||
| 36 | desc "Generate Documentation" | ||||
| 37 | Rake::RDocTask.new do |rdoc| | ||||
| 38 | rdoc.main = "README" | ||||
| 39 | rdoc.rdoc_dir = "doc" | ||||
| 40 | rdoc.rdoc_files.include("README", "COPYING", "lib/*.rb") | ||||
| 41 | rdoc.title = "Jabber::Simple" | ||||
| 42 | end | ||||
| 43 | |||||
| 44 | Rcov::RcovTask.new do |t| | ||||
| 45 | t.test_files = FileList['test/**/test*.rb'] | ||||
| 46 | t.rcov_opts << "--sort coverage" | ||||
| 47 | end | ||||
