-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRakefile
65 lines (51 loc) · 1.64 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
55
56
57
58
59
60
61
62
63
64
65
# frozen_string_literal: true
require "rubygems"
require "hoe"
require "rake/clean"
Hoe.plugin :doofus
Hoe.plugin :email unless ENV["CI"]
Hoe.plugin :gemspec2
Hoe.plugin :git
Hoe.plugin :minitest
Hoe.plugin :rubygems
spec = Hoe.spec "marlowe" do
developer("Trevor Oke", "toke@kineticcafe.com")
developer("Kinetic Cafe", "dev@kineticcafe.com")
self.history_file = "History.md"
self.readme_file = "README.rdoc"
license "MIT"
require_ruby_version ">= 2.0", "< 4"
extra_deps << ["request_store", "~> 1.2"]
extra_deps << ["rack", ">= 1", "< 4"]
extra_dev_deps << ["appraisal", "~> 2.1"]
extra_dev_deps << ["hoe-doofus", "~> 1.0"]
extra_dev_deps << ["hoe-gemspec2", "~> 1.1"]
extra_dev_deps << ["hoe-git2", "~> 1.7"]
extra_dev_deps << ["hoe-rubygems", "~> 1.0"]
extra_dev_deps << ["minitest", "~> 5.4"]
extra_dev_deps << ["minitest-autotest", "~> 1.0"]
extra_dev_deps << ["minitest-focus", "~> 1.1"]
extra_dev_deps << ["minitest-moar", "~> 0.0"]
extra_dev_deps << ["rack-test", "~> 2.0"]
extra_dev_deps << ["rake", ">= 10.0", "< 14"]
extra_dev_deps << ["standard", "~> 1.0"]
extra_dev_deps << ["simplecov", "~> 0.21"]
end
ENV["RUBYOPT"] = "-W0"
module Hoe::Publish # :nodoc:
alias_method :__make_rdoc_cmd__marlowe__, :make_rdoc_cmd
def make_rdoc_cmd(*extra_args) # :nodoc:
spec.extra_rdoc_files.reject! { |f| f == "Manifest.txt" }
__make_rdoc_cmd__marlowe__(*extra_args)
end
end
if File.exist?(".simplecov-prelude.rb")
namespace :test do
task :coverage do
spec.test_prelude = 'load ".simplecov-prelude.rb"'
Rake::Task["test"].execute
end
CLOBBER << "coverage"
end
end
CLOBBER << "tmp"