sassc-embedded 1.5.8 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47ccda859c1fd8acaffccd1945f5dc15907e5ca96086244a01fc3091003cf4d4
4
- data.tar.gz: 7ee3c7121bf0c299771c4a9d3a6c1f5699a85565acea5392ddf3c3c9a6b3856f
3
+ metadata.gz: 94c2615a978f5274aff8c7bcd5122005e0d76ee72fe18675531a31afe0f3fb65
4
+ data.tar.gz: 2f1a351a0a1fdd5db09c291a9c22cdc81c8144ca901f851ed72ebafbfe8b19ca
5
5
  SHA512:
6
- metadata.gz: 6f548fbe156fa13744ced7282b9a1959f35851bd24b1c3d329542e426715a7a0dbf400e7dddff9cee76b3d73af978087a0e383f0b37e7c2c61f7c64c7c096589
7
- data.tar.gz: 8aa5ff0798d5ffbc0699543884c2c13e953d5847b59c0ea47d4573ce68e35329ff380f16fda6b3560cc012f86a35509ab272d0f5e907b8765805a5f8c0adcd55
6
+ metadata.gz: a10a45c9075b99fea03f89f752748fbddfc29cbdf07abaf1b76a0fded7cefd58d68e4e40b63d1c3e3962ac1825dfec79f1fd2f992d9ad96fef53ba8013542cf4
7
+ data.tar.gz: 2c2b15b8348e5654d5625abf884a0731d436d63cb679fbe01def20ee76783a91b6c9ddd75f31ba0deb1515399bbbdea6d76d76462edb2211fef9a28ae64b303a
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # Embedded Sass Polyfill for SassC Ruby
1
+ # Embedded Sass Shim for SassC Ruby
2
2
 
3
- [![build](https://github.com/ntkme/sassc-embedded-polyfill-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/ntkme/sassc-embedded-polyfill-ruby/actions/workflows/build.yml)
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 polyfills [`sassc`](https://github.com/sass/sassc-ruby) with the [`sass-embedded`](https://github.com/ntkme/sass-embedded-host-ruby) implementation.
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 polyfill utilizes `sass-embedded` to allow you to compile SCSS or SASS syntax to CSS. To compile, use a `SassC::Engine`, e.g.:
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'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.5.8'
5
+ VERSION = '1.6.2'
6
6
  end
7
7
  end
@@ -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.5.8
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-07 00:00:00.000000000 Z
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.3'
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.3'
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.26.0
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.26.0
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 polyfill for SassC.
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-polyfill-ruby
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.5.8
142
- source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v1.5.8
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: []