-
Notifications
You must be signed in to change notification settings - Fork 7
/
sass-embedded.gemspec
46 lines (40 loc) · 1.69 KB
/
sass-embedded.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
# frozen_string_literal: true
require_relative 'lib/sass/embedded/version'
Gem::Specification.new do |spec|
spec.name = 'sass-embedded'
spec.version = Sass::Embedded::VERSION
spec.authors = ['なつき']
spec.email = ['[email protected]']
spec.summary = 'Use dart-sass with Ruby!'
spec.description = 'A Ruby library that will communicate with Embedded Dart Sass using the Embedded Sass protocol.'
spec.homepage = 'https://github.com/sass-contrib/sass-embedded-host-ruby'
spec.license = 'MIT'
spec.metadata = {
'bug_tracker_uri' => "#{spec.homepage}/issues",
'documentation_uri' => "https://rubydoc.info/gems/#{spec.name}/#{spec.version}",
'source_code_uri' => "#{spec.homepage}/tree/v#{spec.version}",
'funding_uri' => 'https://github.com/sponsors/ntkme',
'rubygems_mfa_required' => 'true'
}
spec.bindir = 'exe'
spec.executables = ['sass']
spec.files = Dir['exe/**/*', 'ext/**/*_pb.rb', 'lib/**/*.rb'] + ['LICENSE', 'README.md']
spec.platform = ENV.fetch('gem_platform', 'ruby')
if spec.platform == Gem::Platform::RUBY
spec.extensions = ['ext/sass/Rakefile']
spec.files += [
'ext/sass/Rakefile',
'ext/sass/expand-archive.ps1',
'ext/sass/package.json'
]
spec.add_dependency 'rake', '>= 13'
else
spec.files += Dir['ext/sass/dart-sass/**/*'] + ['ext/sass/cli.rb']
end
spec.required_ruby_version = if spec.platform == Gem::Platform::RUBY || spec.platform.os != 'linux'
'>= 3.1'
else
'>= 3.2'
end
spec.add_dependency 'google-protobuf', '~> 4.28'
end