forked from stompgem/stomp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
81 lines (71 loc) · 2.48 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright 2005-2006 Brian McCallister
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
$:.unshift(File.dirname(__FILE__) + "/lib")
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rspec/core/rake_task'
require "stomp/version"
begin
require "hanna/rdoctask"
rescue LoadError => e
require "rdoc/task"
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "stomp"
gem.version = Stomp::Version::STRING
gem.summary = %Q{Ruby client for the Stomp messaging protocol}
gem.license = "Apache 2.0"
gem.description = %Q{Ruby client for the Stomp messaging protocol. Note that this gem is no longer supported on rubyforge.}
gem.homepage = "https://github.com/stompgem/stomp"
gem.authors = ["Brian McCallister", 'Marius Mathiesen', 'Thiago Morello',
'Guy M. Allard']
gem.add_development_dependency "rspec", '>= 2.3'
gem.extra_rdoc_files = [ "README.rdoc", "CHANGELOG.rdoc", "LICENSE",
"lib/**/*.rb", "examples/**/*.rb",
"test/**/*.rb" ]
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end
desc 'Run the specs'
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = ['--colour']
t.pattern = 'spec/**/*_spec.rb'
end
desc "Rspec : run all with RCov"
RSpec::Core::RakeTask.new('spec:rcov') do |t|
t.pattern = 'spec/**/*_spec.rb'
t.rcov = true
t.rcov_opts = ['--exclude', 'gems', '--exclude', 'spec']
end
Rake::RDocTask.new do |rdoc|
rdoc.main = "README.rdoc"
rdoc.rdoc_dir = "doc"
rdoc.title = "Stomp"
rdoc.options += %w[ --line-numbers --inline-source --charset utf-8 ]
rdoc.rdoc_files.include("README.rdoc", "CHANGELOG.rdoc", "lib/**/*.rb", "examples/**/*.rb",
"test/**/*.rb")
end
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/test*.rb']
t.verbose = true
end
task :default => :spec