sassc-embedded 0.1.0 → 0.1.1
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 -3
- data/lib/sassc/embedded/version.rb +1 -1
- data/lib/sassc/embedded.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cf8f3e1be82dc2c5e03391f6407b5f2d5ab532bc824d79b8967bc8e872f2cd7
|
4
|
+
data.tar.gz: a4efdf9e9f79e4808fcd286a1a4071323684f87fccc79a7f52e2c8fcc8e5e127
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71deb13972d1eeba8be5b84bb792879dbbb27c7a147d29e065404d135d65ace120b647cc61331846e586235b569d40af7e0872aa8172255e33974abd83fec739
|
7
|
+
data.tar.gz: 993ceb2c416c2235848db65305a01fbd86b8654eaca4fa9b030e275356910a3201c0d94b62fd14e5a37617d7cc66cfa035e380fd22d48ca6858819a73a4ac594
|
data/README.md
CHANGED
@@ -16,10 +16,10 @@ gem install sassc-embedded
|
|
16
16
|
|
17
17
|
## Usage
|
18
18
|
|
19
|
-
|
19
|
+
This polyfill utilizes `sass-embedded` to allow you to compile SCSS or SASS syntax to CSS. To compile, use a `SassC::Engine`, e.g.:
|
20
20
|
|
21
21
|
``` ruby
|
22
|
-
require 'sassc
|
22
|
+
require 'sassc-embedded'
|
23
23
|
|
24
24
|
SassC::Engine.new(sass, style: :compressed).render
|
25
25
|
```
|
@@ -32,4 +32,5 @@ See [rubydoc.info/gems/sassc](https://rubydoc.info/gems/sassc) for full API docu
|
|
32
32
|
2. Option `:style => :compact` behaves as `:compressed`.
|
33
33
|
3. Option `:precision` is ignored.
|
34
34
|
4. Option `:line_comments` is ignored.
|
35
|
-
5. Argument `parent_path` in `Importer#imports` is set to value of option `:filename`.
|
35
|
+
5. Argument `parent_path` in `Importer#imports` is set to value of option `:filename`.
|
36
|
+
6. See [the dart-sass documentation](https://github.com/sass/dart-sass#behavioral-differences-from-ruby-sass) for other differences.
|
data/lib/sassc/embedded.rb
CHANGED
@@ -101,7 +101,7 @@ module SassC
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def post_process_css(css)
|
104
|
-
css += "\n"
|
104
|
+
css += "\n" unless css.empty?
|
105
105
|
unless @source_map.nil? || omit_source_map_url?
|
106
106
|
url = if source_map_embed?
|
107
107
|
"data:application/json;base64,#{Base64.strict_encode64(@source_map)}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sassc-embedded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
@@ -138,8 +138,8 @@ homepage: https://github.com/ntkme/sassc-embedded-polyfill-ruby
|
|
138
138
|
licenses:
|
139
139
|
- MIT
|
140
140
|
metadata:
|
141
|
-
documentation_uri: https://rubydoc.info/gems/sassc-embedded/0.1.
|
142
|
-
source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v0.1.
|
141
|
+
documentation_uri: https://rubydoc.info/gems/sassc-embedded/0.1.1
|
142
|
+
source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v0.1.1
|
143
143
|
funding_uri: https://github.com/sponsors/ntkme
|
144
144
|
post_install_message:
|
145
145
|
rdoc_options: []
|