sassc-embedded 1.5.8 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/sassc/embedded/version.rb +1 -1
- data/lib/sassc/embedded.rb +2 -4
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94c2615a978f5274aff8c7bcd5122005e0d76ee72fe18675531a31afe0f3fb65
|
4
|
+
data.tar.gz: 2f1a351a0a1fdd5db09c291a9c22cdc81c8144ca901f851ed72ebafbfe8b19ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a10a45c9075b99fea03f89f752748fbddfc29cbdf07abaf1b76a0fded7cefd58d68e4e40b63d1c3e3962ac1825dfec79f1fd2f992d9ad96fef53ba8013542cf4
|
7
|
+
data.tar.gz: 2c2b15b8348e5654d5625abf884a0731d436d63cb679fbe01def20ee76783a91b6c9ddd75f31ba0deb1515399bbbdea6d76d76462edb2211fef9a28ae64b303a
|
data/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
# Embedded Sass
|
1
|
+
# Embedded Sass Shim for SassC Ruby
|
2
2
|
|
3
|
-
[![build](https://github.com/ntkme/sassc-embedded-
|
3
|
+
[![build](https://github.com/ntkme/sassc-embedded-shim-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/ntkme/sassc-embedded-shim-ruby/actions/workflows/build.yml)
|
4
4
|
[![gem](https://badge.fury.io/rb/sassc-embedded.svg)](https://rubygems.org/gems/sassc-embedded)
|
5
5
|
|
6
6
|
Use `sass-embedded` with SassC Ruby!
|
7
7
|
|
8
|
-
This library
|
8
|
+
This library shims [`sassc`](https://github.com/sass/sassc-ruby) with the [`sass-embedded`](https://github.com/ntkme/sass-embedded-host-ruby) implementation.
|
9
9
|
|
10
10
|
It has been tested with:
|
11
11
|
|
@@ -37,7 +37,7 @@ gem install sassc-embedded
|
|
37
37
|
|
38
38
|
## Usage
|
39
39
|
|
40
|
-
This
|
40
|
+
This shim utilizes `sass-embedded` to allow you to compile SCSS or SASS syntax to CSS. To compile, use a `SassC::Engine`, e.g.:
|
41
41
|
|
42
42
|
``` ruby
|
43
43
|
require 'sassc-embedded'
|
data/lib/sassc/embedded.rb
CHANGED
@@ -26,7 +26,7 @@ module SassC
|
|
26
26
|
style: output_style,
|
27
27
|
|
28
28
|
functions: functions_handler.setup(nil, functions: @functions),
|
29
|
-
importers: [],
|
29
|
+
importers: @options.fetch(:importers, []),
|
30
30
|
|
31
31
|
alert_ascii: @options.fetch(:alert_ascii, false),
|
32
32
|
alert_color: @options.fetch(:alert_color, nil),
|
@@ -45,9 +45,7 @@ module SassC
|
|
45
45
|
line = e.span&.start&.line
|
46
46
|
line += 1 unless line.nil?
|
47
47
|
url = e.span&.url
|
48
|
-
path = if url&.start_with?(Protocol::FILE)
|
49
|
-
URL.parse(url).route_from(URL.path_to_file_url("#{File.absolute_path('')}/"))
|
50
|
-
end
|
48
|
+
path = (URL.parse(url).route_from(URL.path_to_file_url("#{Dir.pwd}/")) if url&.start_with?(Protocol::FILE))
|
51
49
|
raise SyntaxError.new(e.full_message, filename: path, line: line)
|
52
50
|
end
|
53
51
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sassc-embedded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sassc
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.4'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
40
|
+
version: '1.4'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.
|
75
|
+
version: 1.27.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 1.
|
82
|
+
version: 1.27.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop-minitest
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,7 +122,7 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 0.6.0
|
125
|
-
description: An embedded sass
|
125
|
+
description: An embedded sass shim for SassC.
|
126
126
|
email:
|
127
127
|
- i@ntk.me
|
128
128
|
executables: []
|
@@ -134,12 +134,12 @@ files:
|
|
134
134
|
- lib/sassc-embedded.rb
|
135
135
|
- lib/sassc/embedded.rb
|
136
136
|
- lib/sassc/embedded/version.rb
|
137
|
-
homepage: https://github.com/ntkme/sassc-embedded-
|
137
|
+
homepage: https://github.com/ntkme/sassc-embedded-shim-ruby
|
138
138
|
licenses:
|
139
139
|
- MIT
|
140
140
|
metadata:
|
141
|
-
documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.
|
142
|
-
source_code_uri: https://github.com/ntkme/sassc-embedded-
|
141
|
+
documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.6.2
|
142
|
+
source_code_uri: https://github.com/ntkme/sassc-embedded-shim-ruby/tree/v1.6.2
|
143
143
|
funding_uri: https://github.com/sponsors/ntkme
|
144
144
|
post_install_message:
|
145
145
|
rdoc_options: []
|