This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
forked from sparklemotion/nokogiri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
90 lines (75 loc) · 2.31 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
require "hoe"
Hoe.plugin :bundler
Hoe.plugin :debugging
Hoe.plugin :gemspec
Hoe.plugin :git
Hoe.plugin :markdown
require_relative "rakelib/util"
require_relative "lib/nokogiri/version/constant"
HOE = Hoe.spec "nokogiri" do |hoe|
hoe.version = Nokogiri::VERSION
hoe.author = [
"Mike Dalessio",
"Aaron Patterson",
"John Shahid",
"Yoko Harada",
"Akinori MUSHA",
"Lars Kanis",
"Tim Elliott",
]
hoe.email = "[email protected]"
hoe.license "MIT"
hoe.urls = {
"home" => "https://nokogiri.org",
"bugs" => "https://github.com/sparklemotion/nokogiri/issues",
"doco" => "https://nokogiri.org/rdoc/index.html",
"clog" => "https://nokogiri.org/CHANGELOG.html",
"code" => "https://github.com/sparklemotion/nokogiri",
}
hoe.markdown_linkify_files = FileList["*.md"]
hoe.extra_rdoc_files = FileList["ext/nokogiri/*.c"]
hoe.clean_globs += [
"nokogiri.gemspec",
"lib/nokogiri/nokogiri.{bundle,jar,rb,so}",
"lib/nokogiri/[0-9].[0-9]",
"coverage",
"concourse/images/*.generated",
"ext/nokogiri/include",
"tmp",
]
hoe.clean_globs += Dir.glob("ports/*").reject { |d| d =~ %r{/archives$} }
hoe.extra_deps += [
["racc", "~> 1.4"],
]
unless java?
hoe.extra_deps += [
["mini_portile2", "~> 2.5.0"], # keep version in sync with extconf.rb
]
end
hoe.extra_dev_deps += [
["concourse", "~> 0.40"],
["hoe", ["~> 3.22", ">= 3.22.1"]],
["hoe-bundler", "~> 1.2"],
["hoe-debugging", "~> 2.0"],
["hoe-gemspec", "~> 1.0"],
["hoe-git", "~> 1.6"],
["hoe-markdown", "~> 1.1"],
["minitest", "~> 5.8"],
["minitest-reporters", "~> 1.4"],
["rake", "~> 13.0"],
["rake-compiler", "~> 1.1"],
["rake-compiler-dock", "~> 1.0"],
["rexical", "~> 1.0.5"],
["rubocop", "~> 0.88"],
["simplecov", "~> 0.17.0"], # locked on 2020-08-28 due to https://github.com/codeclimate/test-reporter/issues/413
]
hoe.spec_extras = {
:extensions => ["ext/nokogiri/extconf.rb"],
:required_ruby_version => ">= 2.5.0"
}
hoe.testlib = :minitest
hoe.test_prelude = %q(require "helper") # ensure simplecov gets loaded before anything else
end
# work around Hoe's inflexibility about the default tasks
Rake::Task[:default].prerequisites.unshift("compile")
Rake::Task[:default].prerequisites.unshift("rubocop")