dartsass-rails 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63c02e6013b5cc320cc16b785bfde748ed62b4c7131381a0b20094671a3e60e2
4
- data.tar.gz: 97f292bf59c8d746cd8d3234496d04e235ccebf2ffeb5561070cfd40b95c8c48
3
+ metadata.gz: c00e94e064e218058760b98dc11cab24ca2b6fedecd673d5a7a5ad17d2cd97c4
4
+ data.tar.gz: 649b361c576c944ade9830dbc06d39bb9b0be78a3d85f4f3e20fbd7c8d4dec8c
5
5
  SHA512:
6
- metadata.gz: 6df4dbdbe880d4bda7d6f70d2dbe2393efcde5ab03677c1ab914d0307515b48324d7b249fdd394abc23ba8141f587b2f3bd2e29961854b055b78c1408c91a414
7
- data.tar.gz: 107198c8ec71b941ab26d2f6071b192e459a1f0bf0fbca47b8ec59b2a12c7f7aff4e638f789e7b8eb93c10746be0aa3eaa94de653bd099d6741ed15ea78ea0d7
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. These executables are platform specific, but included in this gem are the ones for macOS (Intel, Apple Silicon), Linux (x86-64, AArch64), and Windows (x86-64).
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
- Dart Sass 1.49.0
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
- # because rubygems shims assume a gem's executables are Ruby
2
+ # frozen_string_literal: true
3
3
 
4
- require "shellwords"
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")
@@ -1,3 +1,3 @@
1
1
  module Dartsass
2
- VERSION = "0.4.1"
2
+ VERSION = "0.5.0"
3
3
  end
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.1
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: 2022-12-16 00:00:00.000000000 Z
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.3.26
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
Binary file
Binary file