dartsass 1.49.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE-DEPENDENCIES.md +24 -0
- data/README.md +36 -0
- data/exe/dartsass +23 -0
- data/exe/darwin/sass +17 -0
- data/exe/darwin/src/LICENSE +1532 -0
- data/exe/darwin/src/dart +0 -0
- data/exe/darwin/src/sass.snapshot +0 -0
- data/exe/linux/sass +0 -0
- data/exe/linux/src/LICENSE +1532 -0
- data/exe/mingw32/sass.bat +7 -0
- data/exe/mingw32/src/LICENSE +1532 -0
- data/exe/mingw32/src/dart.exe +0 -0
- data/exe/mingw32/src/sass.snapshot +0 -0
- data/lib/dartsass/version.rb +5 -0
- data/lib/dartsass-ruby.rb +6 -0
- metadata +61 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: aace9f451e97f3888a20f0d6f76734d4e1a68402be1fe1f2c992526c57268397
|
4
|
+
data.tar.gz: 9c99ae50cf6880339ccb1dd913123185a63cb0b08e8f03f5682e2f7a1f492bc6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8d88e8024c19aba05bdf2cf6fafec0f5c3cb61d55320730212ab096759652d3211a363c9e2511b7c52449ad2c322245d8e2196704fdba7273bdbb5b4bef05878
|
7
|
+
data.tar.gz: b0d461c97e7475200a1ccef18183f0be5b941ff64e5b5fe0e1e7671a1c40b6ee2141c604a76a75a2bbf5c303d55e3cb1bf73dd59ede10a45b6ec36e1c4cc6f20
|
@@ -0,0 +1,24 @@
|
|
1
|
+
artsass-ruby redistributes executables from the https://github.com/sass/dart-sass/ project
|
2
|
+
|
3
|
+
The license for that software can be found at https://github.com/sass/dart-sass/blob/main/LICENSE which is reproduced here for your convenience:
|
4
|
+
|
5
|
+
Copyright (c) 2016, Google Inc.
|
6
|
+
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
8
|
+
a copy of this software and associated documentation files (the
|
9
|
+
"Software"), to deal in the Software without restriction, including
|
10
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
11
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
+
permit persons to whom the Software is furnished to do so, subject to
|
13
|
+
the following conditions:
|
14
|
+
|
15
|
+
The above copyright notice and this permission notice shall be
|
16
|
+
included in all copies or substantial portions of the Software.
|
17
|
+
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
21
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
22
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
23
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
24
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# Dart Sass Ruby
|
2
|
+
|
3
|
+
This gem is a thin wrapper around the [Dart Sass binaries](https://github.com/sass/dart-sass/releases). It enables you to easily compile Sass in Ruby projects. The binaries for macOS, Linux and Windows are included.
|
4
|
+
|
5
|
+
The version number of this gem tracks the version number of the Dart Sass binary.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'dartsass'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle install
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install dartsass
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
The Dart Sass binary can be called within your project as:
|
26
|
+
|
27
|
+
$ bundle exec dartsass css/index.scss output/css/main.css
|
28
|
+
|
29
|
+
|
30
|
+
## Contributing
|
31
|
+
|
32
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ayushn21/dartsass-ruby.
|
33
|
+
|
34
|
+
## License
|
35
|
+
|
36
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/exe/dartsass
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# because rubygems shims assume a gem's executables are Ruby
|
3
|
+
|
4
|
+
require "shellwords"
|
5
|
+
|
6
|
+
platform_info = Gem::Platform.local
|
7
|
+
platform_string = "#{platform_info.cpu}-#{platform_info.os}"
|
8
|
+
|
9
|
+
exe_path =
|
10
|
+
case platform_string
|
11
|
+
when /darwin\z/ then File.join(__dir__, "darwin/sass")
|
12
|
+
when /linux\z/ then File.join(__dir__, "linux/sass")
|
13
|
+
when /mingw32\z/ then File.join(__dir__, "mingw32/sass.bat")
|
14
|
+
else
|
15
|
+
STDERR.puts(<<~ERRMSG)
|
16
|
+
ERROR: dartsass-ruby does not support the #{platform_string} platform
|
17
|
+
ERRMSG
|
18
|
+
exit 1
|
19
|
+
end
|
20
|
+
|
21
|
+
command = Shellwords.join([ exe_path, ARGV ].flatten)
|
22
|
+
puts "+ #{command}"
|
23
|
+
exec(command)
|
data/exe/darwin/sass
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
# This script drives the standalone dart-sass package, which bundles together a
|
4
|
+
# Dart executable and a snapshot of dart-sass.
|
5
|
+
|
6
|
+
follow_links() {
|
7
|
+
file="$1"
|
8
|
+
while [ -h "$file" ]; do
|
9
|
+
# On Mac OS, readlink -f doesn't work.
|
10
|
+
file="$(readlink "$file")"
|
11
|
+
done
|
12
|
+
echo "$file"
|
13
|
+
}
|
14
|
+
|
15
|
+
# Unlike $0, $BASH_SOURCE points to the absolute path of this file.
|
16
|
+
path=`dirname "$(follow_links "$0")"`
|
17
|
+
exec "$path/src/dart" "$path/src/sass.snapshot" "$@"
|