forked from larrytheliquid/dataflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
36 lines (31 loc) · 1.15 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
require "rubygems"
require "rake/gempackagetask"
require "rake/clean"
require "spec/rake/spectask"
require File.expand_path("./dataflow")
Spec::Rake::SpecTask.new do |t|
t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
end
desc "Run the specs"
task :default => :spec
spec = Gem::Specification.new do |s|
s.name = "dataflow"
s.rubyforge_project = s.name
s.version = Dataflow::VERSION
s.author = "Larry Diehl"
s.email = "larrytheliquid" + "@" + "gmail.com"
s.homepage = "http://github.com/larrytheliquid/dataflow"
s.summary = "Dataflow concurrency for Ruby (inspired by the Oz language)"
s.description = s.summary
s.files = %w[LICENSE HISTORY Rakefile README.textile dataflow.rb] + Dir["dataflow/**/*"] + Dir["examples/**/*"]
s.require_path = '.'
s.test_files = Dir["spec/**/*"]
end
Rake::GemPackageTask.new(spec) do |package|
package.gem_spec = spec
end
desc 'Install the package as a gem.'
task :install => [:clean, :package] do
gem = Dir['pkg/*.gem'].first
sh "sudo gem install --no-rdoc --no-ri --local #{gem}"
end