sassc-embedded 1.77.1 → 1.77.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 +4 -4
- data/lib/sassc/embedded/version.rb +1 -1
- data/lib/sassc/embedded.rb +3 -19
- 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: 5f6d451aad32416a320f1c23c4f312633e058955744c0da5a5e19ac967c2677d
|
|
4
|
+
data.tar.gz: 4d21e4f1aa6a0d79d697237e1825a4b770d4b85472c7dc2e762dcbcf3c842b51
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2dfd35f4e9053a3a51c89197c0079a877b20d8ee9f76cde280f20a40382452220e4afe735777c4fa99b7fd65e1d50c2aeef2aa05bba05734ff771c3c13b9c898
|
|
7
|
+
data.tar.gz: 8cde54ce2caca35192fcfd38c1f6244823c299924150418779e21e18635b7f3c70b1baef7a3cb8528d62ac598cfebd6388a51579a099aee1998351119e4c7ccd
|
data/lib/sassc/embedded.rb
CHANGED
|
@@ -46,11 +46,10 @@ module SassC
|
|
|
46
46
|
css = result.css
|
|
47
47
|
css += "\n" unless css.empty?
|
|
48
48
|
unless @source_map.nil? || omit_source_map_url?
|
|
49
|
-
url = Uri.parse(output_url || file_url)
|
|
50
49
|
source_mapping_url = if source_map_embed?
|
|
51
50
|
"data:application/json;base64,#{[@source_map].pack('m0')}"
|
|
52
51
|
else
|
|
53
|
-
Uri.file_urls_to_relative_url(source_map_file_url,
|
|
52
|
+
Uri.file_urls_to_relative_url(source_map_file_url, file_url)
|
|
54
53
|
end
|
|
55
54
|
css += "\n/*# sourceMappingURL=#{source_mapping_url} */"
|
|
56
55
|
end
|
|
@@ -78,7 +77,6 @@ module SassC
|
|
|
78
77
|
|
|
79
78
|
url = Uri.parse(source_map_file_url || file_url)
|
|
80
79
|
data = JSON.parse(@source_map)
|
|
81
|
-
data['file'] = Uri.file_urls_to_relative_url(output_url, url) if output_url
|
|
82
80
|
data['sources'].map! do |source|
|
|
83
81
|
if source.start_with?('file:')
|
|
84
82
|
Uri.file_urls_to_relative_url(source, url)
|
|
@@ -96,24 +94,10 @@ module SassC
|
|
|
96
94
|
@file_url ||= Uri.path_to_file_url(File.absolute_path(filename || 'stdin'))
|
|
97
95
|
end
|
|
98
96
|
|
|
99
|
-
def output_path
|
|
100
|
-
@output_path ||= @options.fetch(:output_path) do
|
|
101
|
-
"#{filename.delete_suffix(File.extname(filename))}.css" if filename
|
|
102
|
-
end
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
def output_url
|
|
106
|
-
@output_url ||= (Uri.path_to_file_url(File.absolute_path(output_path)) if output_path)
|
|
107
|
-
end
|
|
108
|
-
|
|
109
97
|
def source_map_file_url
|
|
110
98
|
@source_map_file_url ||= if source_map_file
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
# However, this behavior has been abused to append query string to sourceMappingURL.
|
|
114
|
-
components = source_map_file.split('?', 2)
|
|
115
|
-
components[0] = Uri.path_to_file_url(File.absolute_path(components[0]))
|
|
116
|
-
components.join('?')
|
|
99
|
+
Uri.path_to_file_url(File.absolute_path(source_map_file))
|
|
100
|
+
.gsub('%3F', '?') # https://github.com/sass-contrib/sassc-embedded-shim-ruby/pull/69
|
|
117
101
|
end
|
|
118
102
|
end
|
|
119
103
|
|
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.77.
|
|
4
|
+
version: 1.77.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- なつき
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-07-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sass-embedded
|
|
@@ -79,7 +79,7 @@ licenses:
|
|
|
79
79
|
metadata:
|
|
80
80
|
bug_tracker_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/issues
|
|
81
81
|
documentation_uri: https://rubydoc.info/gems/sassc
|
|
82
|
-
source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.77.
|
|
82
|
+
source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.77.2
|
|
83
83
|
funding_uri: https://github.com/sponsors/ntkme
|
|
84
84
|
rubygems_mfa_required: 'true'
|
|
85
85
|
post_install_message:
|