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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01b39ff3df99a2a2c1d9e9aa76ad7d06462a0ba970c8ed907753dc094ac93f54
4
- data.tar.gz: aa75aa2ff62c0b50c48fd0c7594aadee3ff7180b215df76c9efbc7f3e4112ace
3
+ metadata.gz: 8cf8f3e1be82dc2c5e03391f6407b5f2d5ab532bc824d79b8967bc8e872f2cd7
4
+ data.tar.gz: a4efdf9e9f79e4808fcd286a1a4071323684f87fccc79a7f52e2c8fcc8e5e127
5
5
  SHA512:
6
- metadata.gz: 9eec5413a5ef0da29d752c421889cb0f4bf278f10a48ca7a0ffdd002d7217f04f99d3553dbdf9396077c23e66ed24d5baa7005bb6a7a324f094533300a2d9d20
7
- data.tar.gz: 59348aae444404fba124bc4717ac51f8433739f5ff6c26ab394b3191483ccc5aa67ffb5df917a3c0643c5ca2fd93da1ab563c8c460fd6c27083e04c1aaeb1551
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
- To compile, `require 'sassc/embedded'` before use a `SassC::Engine`, e.g.:
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/embedded'
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.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
6
6
  end
7
7
  end
@@ -101,7 +101,7 @@ module SassC
101
101
  end
102
102
 
103
103
  def post_process_css(css)
104
- css += "\n" if css.end_with? '}'
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.0
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.0
142
- source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v0.1.0
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: []