-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathRakefile
More file actions
26 lines (21 loc) · 729 Bytes
/
Rakefile
File metadata and controls
26 lines (21 loc) · 729 Bytes
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
#!/usr/bin/env rake
require "bundler/gem_tasks"
# Define a task to make sure the gem's files are world readable.
task :set_permissions do
system("find . -type f -exec chmod 644 {} \\;")
system("find . -type d -exec chmod 755 {} \\;")
end
# Add :set_permissions as a dependency for the :build, :install, and :release
# tasks that bundler provides, so that the correct permissions are always set.
task :build => :set_permissions
task :install => :set_permissions
task :release => :set_permissions
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new('spec')
task :default => :spec
begin
require 'yard'
YARD::Rake::YardocTask.new(:yard)
rescue LoadError
puts "You need to install YARD. Run `bundle install`."
end