Skip to content

Commit

Permalink
Doh...how did this not get added
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Jul 15, 2015
1 parent c597e60 commit fc675f8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion rakelib/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ def sha1_checksum(filename)
HashTask.hash_for(filename, Digest::SHA1)
end

def sha256_checksum(filename)
HashTask.hash_for(filename, Digest::SHA256)
end

def checksums(filename)
md5_checksum filename
sha1_checksum filename
sha256_checksum filename
end

def permute_tests(base_name, options, *prereqs, &block)
permute_task("test", Rake::TestTask, base_name, options, *prereqs, &block)
end
Expand Down Expand Up @@ -106,4 +116,4 @@ def permute_task(task_desc, task_type, base_name, options, *prereqs, &block)
all_tasks ||= tasks.keys
desc "Run #{task_desc}s for #{all_tasks.inspect}"
task "#{base_name}:all" => all_tasks.map {|key| tasks[key]}
end
end

0 comments on commit fc675f8

Please sign in to comment.