-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
selma.gemspec
40 lines (31 loc) · 1.37 KB
/
selma.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
# frozen_string_literal: true
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "selma/version"
Gem::Specification.new do |spec|
spec.name = "selma"
spec.version = Selma::VERSION
spec.authors = ["Garen J. Torikian"]
spec.email = ["[email protected]"]
spec.summary = "Selma selects and matches HTML nodes using CSS rules. Backed by Rust's lol_html parser."
spec.license = "MIT"
spec.required_ruby_version = "~> 3.1"
# https://github.com/rubygems/rubygems/pull/5852#issuecomment-1231118509
spec.required_rubygems_version = ">= 3.3.22"
spec.files = ["LICENSE.txt", "README.md", "Cargo.lock", "Cargo.toml"]
spec.files += Dir.glob("lib/**/*.rb")
spec.files += Dir.glob("ext/**/*.{rs,toml,lock,rb}")
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.extensions = ["ext/selma/extconf.rb"]
spec.metadata = {
"allowed_push_host" => "https://rubygems.org",
"funding_uri" => "https://github.com/sponsors/gjtorikian/",
"source_code_uri" => "https://github.com/gjtorikian/selma",
"rubygems_mfa_required" => "true",
}
spec.add_dependency("rb_sys", "~> 0.9")
spec.add_development_dependency("rake", "~> 13.0")
spec.add_development_dependency("rake-compiler", "~> 1.2")
end