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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59a845230e544276ea6eb32db4a12a9612d2e14b6f25bd4e0031806ceb6f5eb4
4
- data.tar.gz: 1716cb7bdb3d8bf99564bff6802f995802399bb22ee347ae2028c8d0729c5218
3
+ metadata.gz: f635b683afc8ea3aad06831d7ed96835faf439aa1c160caafc5d69d836e2636e
4
+ data.tar.gz: f017a21e204e8e25bda8d0f0defca07849ca54f4419fb4f6e0313b87e826a8d4
5
5
  SHA512:
6
- metadata.gz: 2bb616946d32c4a71a939d1e723dc11dcb7c7b02fb1ebc1236865e7badc53ad8dc9fc320706b7b3119e0d2d0e1bccad55665e95dd3ede0b6ce715226d0d31dfb
7
- data.tar.gz: 5fefa20e790fbbc14368e1ae5111d2f1621e9f58c58d5a206f9799ecd2a046c15039082c25aabadcdb539fb51a7b9525305221db8b96d9b25d0f79ba881d2a03
6
+ metadata.gz: ed92f07f2009eff05bcd0da3871d3ce371a70154634ffa0ec391014fce9e2e713086c29dea7048323ccf593b20cb14bde4c998079d83d1cd201d48e6beaace41
7
+ data.tar.gz: 03f5c6092db465530a1e4c1a20d6c55705690909351d821d3b2273599b014e913b29181d5ff5b7fb139f5c68466d6d27e94b5f270dd2acaf01ca18520956a0b9
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.6.0'
5
+ VERSION = '1.54.0'
6
6
  end
7
7
  end
@@ -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.6.0
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-07 00:00:00.000000000 Z
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.3'
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.3'
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.15.0
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.15.0
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.26.0
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.26.0
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.19.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.19.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.13.0
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.13.0
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 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.6.0
142
- source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v1.6.0
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: []