sassc-embedded 1.6.0 → 1.54.0
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 -3
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f635b683afc8ea3aad06831d7ed96835faf439aa1c160caafc5d69d836e2636e
|
4
|
+
data.tar.gz: f017a21e204e8e25bda8d0f0defca07849ca54f4419fb4f6e0313b87e826a8d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed92f07f2009eff05bcd0da3871d3ce371a70154634ffa0ec391014fce9e2e713086c29dea7048323ccf593b20cb14bde4c998079d83d1cd201d48e6beaace41
|
7
|
+
data.tar.gz: 03f5c6092db465530a1e4c1a20d6c55705690909351d821d3b2273599b014e913b29181d5ff5b7fb139f5c68466d6d27e94b5f270dd2acaf01ca18520956a0b9
|
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
@@ -21,6 +21,7 @@ module SassC
|
|
21
21
|
syntax: syntax,
|
22
22
|
url: file_url,
|
23
23
|
|
24
|
+
charset: @options.fetch(:charset, true),
|
24
25
|
source_map: source_map_embed? || !source_map_file.nil?,
|
25
26
|
source_map_include_sources: source_map_contents?,
|
26
27
|
style: output_style,
|
@@ -45,9 +46,7 @@ module SassC
|
|
45
46
|
line = e.span&.start&.line
|
46
47
|
line += 1 unless line.nil?
|
47
48
|
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
|
49
|
+
path = (URL.parse(url).route_from(URL.path_to_file_url("#{Dir.pwd}/")) if url&.start_with?(Protocol::FILE))
|
51
50
|
raise SyntaxError.new(e.full_message, filename: path, line: line)
|
52
51
|
end
|
53
52
|
|
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.54.0
|
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-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sassc
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.54'
|
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.54'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 5.
|
47
|
+
version: 5.16.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 5.
|
54
|
+
version: 5.16.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest-around
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,42 +72,42 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.
|
75
|
+
version: 1.32.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.32.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop-minitest
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.21.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.21.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop-performance
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
103
|
+
version: 1.14.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
110
|
+
version: 1.14.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rubocop-rake
|
113
113
|
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.54.0
|
142
|
+
source_code_uri: https://github.com/ntkme/sassc-embedded-shim-ruby/tree/v1.54.0
|
143
143
|
funding_uri: https://github.com/sponsors/ntkme
|
144
144
|
post_install_message:
|
145
145
|
rdoc_options: []
|