dartsass-rails 0.4.1 → 0.5.0
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 +4 -4
- data/README.md +4 -3
- data/exe/dartsass +2 -24
- data/lib/dartsass/version.rb +1 -1
- metadata +17 -16
- data/LICENSE-DEPENDENCIES +0 -26
- data/exe/aarch64-linux/sass +0 -0
- data/exe/arm64-darwin/sass +0 -0
- data/exe/darwin/LICENSE +0 -1531
- data/exe/darwin/sass +0 -17
- data/exe/darwin/src/dart +0 -0
- data/exe/darwin/src/sass.snapshot +0 -0
- data/exe/linux/LICENSE +0 -1531
- data/exe/linux/sass +0 -0
- data/exe/mingw32/LICENSE +0 -1531
- data/exe/mingw32/sass.bat +0 -7
- data/exe/mingw32/src/dart.exe +0 -0
- data/exe/mingw32/src/sass.snapshot +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c00e94e064e218058760b98dc11cab24ca2b6fedecd673d5a7a5ad17d2cd97c4
|
4
|
+
data.tar.gz: 649b361c576c944ade9830dbc06d39bb9b0be78a3d85f4f3e20fbd7c8d4dec8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86341084eddd19bcaca06bf7a350e7d6140afe57d1aeaf1b235de3c041be489570d3317b62451d2f42b93c4678c3fe95db5809f44aea4f43ff0f4de862d9ad33
|
7
|
+
data.tar.gz: e9712ed6ebf4f956229d825b7d98b4e6cda1d72afaad7335a31d43b47b937cd0cd31a102c4d9197be64099fe9a94c335a43087706d9ff3c8a81970653187cd9b
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Sass](https://sass-lang.com) is a stylesheet language that’s compiled to CSS. It allows you to use variables, nested rules, mixins, functions, and more, all with a fully CSS-compatible syntax.
|
4
4
|
|
5
|
-
This gem wraps [the standalone executable version](https://github.com/sass/dart-sass/releases) of the Dart version of Sass.
|
5
|
+
This gem wraps [the standalone executable version](https://github.com/sass/dart-sass/releases) of the Dart version of Sass. The platform specific Dart Sass executables are distributed by [sass-embedded](https://rubygems.org/gems/sass-embedded) gem.
|
6
6
|
|
7
7
|
The installer will create your default Sass input file in `app/assets/stylesheets/application.scss`. This is where you should import all the style files to be compiled [using the @use rule](https://sass-lang.com/documentation/at-rules/use). When you run `rails dartsass:build`, this input file will be used to generate the output in `app/assets/builds/application.css`. That's the output CSS that you'll include in your app. The load path for Sass is automatically configured to be `app/assets/stylesheets`.
|
8
8
|
|
@@ -123,8 +123,9 @@ the following command: `bundle exec rails dartsass:build`.
|
|
123
123
|
|
124
124
|
## Version
|
125
125
|
|
126
|
-
|
127
|
-
|
126
|
+
``` sh
|
127
|
+
bundle exec dartsass --version
|
128
|
+
```
|
128
129
|
|
129
130
|
## License
|
130
131
|
|
data/exe/dartsass
CHANGED
@@ -1,26 +1,4 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
|
-
#
|
2
|
+
# frozen_string_literal: true
|
3
3
|
|
4
|
-
|
5
|
-
require "rbconfig"
|
6
|
-
|
7
|
-
system_config = RbConfig::CONFIG
|
8
|
-
platform_string = "#{system_config["host_cpu"]}-#{system_config["host_os"]}"
|
9
|
-
|
10
|
-
exe_path =
|
11
|
-
case platform_string
|
12
|
-
when /aarch64-linux/ then File.join(__dir__, "aarch64-linux/sass")
|
13
|
-
when /arm(64)?-darwin/ then File.join(__dir__, "arm64-darwin/sass")
|
14
|
-
when /darwin/ then File.join(__dir__, "darwin/sass")
|
15
|
-
when /linux/ then File.join(__dir__, "linux/sass")
|
16
|
-
when /mswin|mingw|cygwin/ then File.join(__dir__, "mingw32/sass.bat")
|
17
|
-
else
|
18
|
-
STDERR.puts(<<~ERRMSG)
|
19
|
-
ERROR: dartsass-rails does not support the #{platform_string} platform
|
20
|
-
ERRMSG
|
21
|
-
exit 1
|
22
|
-
end
|
23
|
-
|
24
|
-
command = Shellwords.join([ exe_path, ARGV ].flatten)
|
25
|
-
puts "+ #{command}"
|
26
|
-
exec(command)
|
4
|
+
load Gem.bin_path("sass-embedded", "sass")
|
data/lib/dartsass/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dartsass-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 6.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sass-embedded
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.63'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.63'
|
27
41
|
description:
|
28
42
|
email: david@hey.com
|
29
43
|
executables:
|
@@ -31,23 +45,10 @@ executables:
|
|
31
45
|
extensions: []
|
32
46
|
extra_rdoc_files: []
|
33
47
|
files:
|
34
|
-
- LICENSE-DEPENDENCIES
|
35
48
|
- MIT-LICENSE
|
36
49
|
- README.md
|
37
50
|
- Rakefile
|
38
|
-
- exe/aarch64-linux/sass
|
39
|
-
- exe/arm64-darwin/sass
|
40
51
|
- exe/dartsass
|
41
|
-
- exe/darwin/LICENSE
|
42
|
-
- exe/darwin/sass
|
43
|
-
- exe/darwin/src/dart
|
44
|
-
- exe/darwin/src/sass.snapshot
|
45
|
-
- exe/linux/LICENSE
|
46
|
-
- exe/linux/sass
|
47
|
-
- exe/mingw32/LICENSE
|
48
|
-
- exe/mingw32/sass.bat
|
49
|
-
- exe/mingw32/src/dart.exe
|
50
|
-
- exe/mingw32/src/sass.snapshot
|
51
52
|
- lib/dartsass-rails.rb
|
52
53
|
- lib/dartsass/engine.rb
|
53
54
|
- lib/dartsass/version.rb
|
@@ -79,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
80
|
- !ruby/object:Gem::Version
|
80
81
|
version: '0'
|
81
82
|
requirements: []
|
82
|
-
rubygems_version: 3.
|
83
|
+
rubygems_version: 3.4.10
|
83
84
|
signing_key:
|
84
85
|
specification_version: 4
|
85
86
|
summary: Integrate Dart Sass with the asset pipeline in Rails.
|
data/LICENSE-DEPENDENCIES
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
dartsass-rails 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.
|
25
|
-
|
26
|
-
Licenses for individual platform binaries are available under exe/[platform]/LICENSE
|
data/exe/aarch64-linux/sass
DELETED
Binary file
|
data/exe/arm64-darwin/sass
DELETED
Binary file
|