sass-embedded 0.19.6 → 0.19.7
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/ext/sass/extconf.rb +10 -5
- data/lib/sass/embedded/channel.rb +1 -1
- data/lib/sass/embedded/compiler.rb +3 -3
- data/lib/sass/embedded/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a45cb1a6cf846dde82321dc1b98ec60c2ff835c2421e9b46291ec3f2c8c6ab92
|
4
|
+
data.tar.gz: b879612efdf38864699c2ac75b3d3342035882860fa311ee4938067c96a5b92c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e13d63c13ef66008c4c971d45b8e865f5c4cdc4e5a72e239691c5bb1a9e6b61928cd413f46a08da9a14161ed42c054f810fe7288a19bae9ef52b5b6248f9c21
|
7
|
+
data.tar.gz: 849bf9f6fdc5471881337f92f2cb3ced649b59ba7b7f07fbf78bda974f432d1bc5c93547bccf70827acf721c0585f4e61e92c0ab6aa43cc56bdc5656c234a69a
|
data/ext/sass/extconf.rb
CHANGED
@@ -108,18 +108,23 @@ module Sass
|
|
108
108
|
uri = URI.parse(uri_s)
|
109
109
|
path = File.absolute_path(File.basename(uri.path), __dir__)
|
110
110
|
if uri.is_a?(URI::File) || uri.instance_of?(URI::Generic)
|
111
|
-
|
111
|
+
source = uri_parser.unescape(uri.path)
|
112
|
+
puts "cp -- #{source} #{path}"
|
113
|
+
FileUtils.copy_file(source, path)
|
112
114
|
elsif uri.respond_to? :open
|
113
115
|
puts "curl -fsSLo #{path} -- #{uri}"
|
114
|
-
uri.open do |
|
115
|
-
File.binwrite(path,
|
116
|
+
uri.open do |stream|
|
117
|
+
File.binwrite(path, stream.read)
|
116
118
|
end
|
117
119
|
else
|
118
120
|
raise
|
119
121
|
end
|
120
122
|
rescue StandardError
|
121
|
-
|
122
|
-
|
123
|
+
raise "Failed to fetch #{uri_s}"
|
124
|
+
end
|
125
|
+
|
126
|
+
def uri_parser
|
127
|
+
@uri_parser ||= URI::Parser.new({ RESERVED: ';/?:@&=+$,' })
|
123
128
|
end
|
124
129
|
|
125
130
|
def default_sass_embedded
|
@@ -13,11 +13,11 @@ module Sass
|
|
13
13
|
)
|
14
14
|
|
15
15
|
def initialize
|
16
|
+
@stdin, @stdout, @stderr, @wait_thread = Open3.popen3(PATH)
|
17
|
+
@stdin.binmode
|
18
|
+
@stdout.binmode
|
16
19
|
@stdin_mutex = Mutex.new
|
17
20
|
@stdout_mutex = Mutex.new
|
18
|
-
@stdin, @stdout, @stderr, @wait_thread = Open3.popen3(PATH)
|
19
|
-
|
20
|
-
[@stdin, @stdout].each(&:binmode)
|
21
21
|
|
22
22
|
Thread.new do
|
23
23
|
loop do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass-embedded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -163,8 +163,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
|
|
163
163
|
licenses:
|
164
164
|
- MIT
|
165
165
|
metadata:
|
166
|
-
documentation_uri: https://www.rubydoc.info/gems/sass-embedded/0.19.
|
167
|
-
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.19.
|
166
|
+
documentation_uri: https://www.rubydoc.info/gems/sass-embedded/0.19.7
|
167
|
+
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.19.7
|
168
168
|
funding_uri: https://github.com/sponsors/ntkme
|
169
169
|
post_install_message:
|
170
170
|
rdoc_options: []
|