forked from copiousfreetime/launchy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
54 lines (43 loc) · 1.52 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
#--
# Copyright (c) 2007 Jeremy Hinegardner
# All rights reserved. See LICENSE and/or COPYING for details.
#++
begin
require 'bones'
rescue LoadError
abort '### Please install the "bones" gem ###'
end
task :default => 'test:run'
task 'gem:release' => 'test:run'
$:.unshift( "lib" )
require 'launchy/version'
Bones {
name "launchy"
authors "Jeremy Hinegardner"
email "jeremy@copiousfreetime.org"
url 'http://www.copiousfreetime.org/projects/launchy'
version Launchy::VERSION
ruby_opts %w[ -W0 -rubygems ]
readme_file 'README'
ignore_file '.gitignore'
history_file 'HISTORY'
rdoc.include << "README" << "HISTORY" << "LICENSE"
summary 'Launchy is helper class for launching cross-platform applications in a fire and forget manner.'
description <<_
Launchy is helper class for launching cross-platform applications in a
fire and forget manner.
There are application concepts (browser, email client, etc) that are
common across all platforms, and they may be launched differently on
each platform. Launchy is here to make a common approach to launching
external application from within ruby programs.
_
if RUBY_PLATFORM == "java" then
depend_on "spoon" , "~> 0.0.1"
gem.extras = { :platform => Gem::Platform.new( "java" ) }
end
depend_on "rake" , "~> 0.9.2", :development => true
depend_on "minitest", "~> 2.3.1", :development => true
depend_on 'bones' , "~> 3.7.0", :development => true
test.files = FileList["spec/**/*_spec.rb"]
test.opts << "-w -Ilib:spec"
}