sass-embedded 0.19.6 → 0.19.7

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: 914b5726d70add284fd3028fc0b8c7c3929d4a37b869887425a3d7265aac5053
4
- data.tar.gz: 34dd1b5ffb948c63e195472e2f3287497ef77b79f485d7631edeb898d055bbec
3
+ metadata.gz: a45cb1a6cf846dde82321dc1b98ec60c2ff835c2421e9b46291ec3f2c8c6ab92
4
+ data.tar.gz: b879612efdf38864699c2ac75b3d3342035882860fa311ee4938067c96a5b92c
5
5
  SHA512:
6
- metadata.gz: 1b17e913eca2f5d5c7565a3ae02e5bc98887624332d2a03653f27793bfe772d1b444135628f99ebf42db40302509c8ce183ac57375120758bfd5677adee7f624
7
- data.tar.gz: 5a8f24ac6b0bfa83f810639de88c7f8022b202cc2aeccf63f6eb8f50b6dc10928a2341cb342d5725cc667a64355728de7ee0341c9503f99e44effb638be3d133
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
- FileUtils.copy_file uri.path, path
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 |source|
115
- File.binwrite(path, source.read)
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
- warn "ERROR: Error fetching #{uri_s}:"
122
- raise
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
@@ -7,8 +7,8 @@ module Sass
7
7
  # It establishes connection between {Host} and {Dispatcher}.
8
8
  class Channel
9
9
  def initialize
10
- @mutex = Mutex.new
11
10
  @dispatcher = Dispatcher.new
11
+ @mutex = Mutex.new
12
12
  end
13
13
 
14
14
  def close
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  class Embedded
5
- VERSION = '0.19.6'
5
+ VERSION = '0.19.7'
6
6
  end
7
7
  end
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.6
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-24 00:00:00.000000000 Z
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.6
167
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.19.6
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: []