forked from flavorjones/loofah
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loofah.gemspec
49 lines (39 loc) · 1.48 KB
/
loofah.gemspec
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
# frozen_string_literal: true
require "./lib/loofah/version"
Gem::Specification.new do |spec|
spec.name = "loofah"
spec.version = Loofah::VERSION
spec.authors = ["Mike Dalessio", "Bryan Helmkamp"]
spec.email = ["[email protected]", "[email protected]"]
spec.summary = <<~TEXT
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments,
built on top of Nokogiri.
TEXT
spec.description = <<~TEXT
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments,
built on top of Nokogiri.
Loofah also includes some HTML sanitizers based on `html5lib`'s safelist, which are a specific
application of the general transformation functionality.
TEXT
spec.homepage = "https://github.com/flavorjones/loofah"
spec.license = "MIT"
spec.metadata = {
"homepage_uri" => spec.homepage,
"source_code_uri" => spec.homepage,
"bug_tracker_uri" => "#{spec.homepage}/issues",
"changelog_uri" => "#{spec.homepage}/blob/main/CHANGELOG.md",
"documentation_uri" => "https://www.rubydoc.info/gems/loofah/",
}
spec.require_paths = ["lib"]
Dir.chdir(File.expand_path("..", __FILE__)) do
spec.files = [
"CHANGELOG.md",
"MIT-LICENSE.txt",
"README.md",
"SECURITY.md",
] + Dir.glob("lib/**/*.*")
end
spec.required_ruby_version = ">= 2.5.0"
spec.add_runtime_dependency("crass", ["~> 1.0.2"])
spec.add_runtime_dependency("nokogiri", [">= 1.12.0"])
end