-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
33 lines (28 loc) · 969 Bytes
/
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
require 'rake'
require 'rake/gempackagetask'
require 'rubygems'
require 'spec/rake/spectask'
gem_spec = Gem::Specification.new do |s|
s.name = 'eventpublisher'
s.version = '0.1.0'
s.has_rdoc = false
s.summary = 'A module which enables objects to publish multiple events, which other objects can subscribe to'
s.description = s.summary + ' See http://github.com/davybrion/EventPublisher for more information.'
s.homepage = "http://github.com/davybrion/EventPublisher"
s.author = 'Davy Brion'
s.email = '[email protected]'
s.files = FileList['lib/**/*.rb', 'bin/*', '[A-Z]*', 'test/**/*'].to_a
s.require_path = "lib"
s.required_ruby_version = '>= 1.9.1'
s.bindir = "bin"
end
Rake::GemPackageTask.new(gem_spec) do |p|
p.gem_spec = gem_spec
end
Spec::Rake::SpecTask.new(:run_specs) do |t|
t.spec_files = FileList['test/*_spec.rb']
t.verbose = true
t.warning = true
t.spec_opts << "--format nested"
end
task :default => :run_specs