-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathRakefile
More file actions
56 lines (48 loc) · 1.3 KB
/
Rakefile
File metadata and controls
56 lines (48 loc) · 1.3 KB
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
$:.unshift File.expand_path("../lib", __FILE__)
require 'rubygems'
require 'rake/gempackagetask'
require 'acrosslite'
lib_dir = File.expand_path('lib')
spec_dir = File.expand_path('spec')
gem_spec = Gem::Specification.new do |s|
s.name = "acrosslite"
s.version = Acrosslite::VERSION
s.authors = ["Samuel Mullen"]
s.email = "samullen@gmail.com"
s.homepage = "http://github.com/samullen/acrosslite"
s.summary = "A Ruby library for parsing Across Lite puzzle (.puz) files"
s.description = false
s.test_files = Dir['spec/**/*']
s.add_development_dependency "rspec"
s.files = [
"LICENSE",
"README.rdoc",
"Rakefile",
"lib/acrosslite.rb",
"lib/entry.rb"
] + s.test_files
end
begin
require 'spec/rake/spectask'
rescue LoadError
task :spec do
$stderr.puts '`gem install rspec` to run specs'
end
else
desc "Run specs"
Spec::Rake::SpecTask.new do |t|
t.spec_files = Dir['spec/**/*.rb']
t.spec_opts = %w(-fs --color)
end
end
Rake::GemPackageTask.new(gem_spec) do |pkg|
pkg.need_zip = false
pkg.need_tar = false
end
desc "Install the gem locally"
task :install => [:spec, :gem] do
sh %{gem install pkg/#{gem_spec.name}-#{gem_spec.version}}
end
desc "Remove the pkg directory and all of its contents."
task :clean => :clobber_package
task :default => [:spec, :gem]