sass-embedded 1.0.0 → 1.0.1

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: 42eb14d20db4890ec57583655ac03f7ccedd413af931581909a874e020cb3a8b
4
- data.tar.gz: bf36fc0fc518277b4693f18452d30e06d39e52677041d9926471af2db6db34b6
3
+ metadata.gz: 5f5ecc805dbe549bd19b1e5777bd16500bcd71fc56def8fe364f542c7bb731e0
4
+ data.tar.gz: 14c15309ebc1aff54a5b9df78cbd5a66e7321c22e4229357724945aa2a0d3647
5
5
  SHA512:
6
- metadata.gz: de5f8d48c8222c65fd4428136d3dd68f5d468942e258ce5d12b151b50e141d3a00ae37e6c1ca4b3ad696e74a56d56fc9508614a9d1e63913e904046451ef2cef
7
- data.tar.gz: 61200f58afacf595f8ab4e7ef96e526fea49ff83573239c46a6ca6a5f000a3f4419b1183a32d12e6a6b4d2cf9dc1a81a5856c1b63180430ed0432d4a9c832668
6
+ metadata.gz: e4d372b8b307ff60d2f21c6b6bf1674833587c0945ff13e6435dae761fb4bfa0e75233f5dfe88aa47d97b7d4cea483ffdc55e71df92ae9d472d29a94c4eb4f21
7
+ data.tar.gz: 4ecd5d19ca66c2697e0a2cdbfccbb550ab0cb414829d542e71b7f28c77122973f5dc508e2aec3c214aaad777c674cc72a1a8a0b5b90b256728ef20623e16df53
data/ext/sass/extconf.rb CHANGED
@@ -106,15 +106,15 @@ module Sass
106
106
 
107
107
  def fetch(uri_s)
108
108
  uri = URI.parse(uri_s)
109
- path = File.absolute_path(File.basename(uri.path), __dir__)
109
+ path = URI::DEFAULT_PARSER.unescape(uri.path)
110
+ dest = File.absolute_path(File.basename(path), __dir__)
110
111
  if uri.is_a?(URI::File) || uri.instance_of?(URI::Generic)
111
- source = uri_parser.unescape(uri.path)
112
- puts "cp -- #{source} #{path}"
113
- FileUtils.copy_file(source, path)
112
+ puts "cp -- #{path} #{dest}"
113
+ FileUtils.copy_file(path, dest)
114
114
  elsif uri.respond_to? :open
115
- puts "curl -fsSLo #{path} -- #{uri}"
115
+ puts "curl -fsSLo #{dest} -- #{uri}"
116
116
  uri.open do |stream|
117
- File.binwrite(path, stream.read)
117
+ File.binwrite(dest, stream.read)
118
118
  end
119
119
  else
120
120
  raise
@@ -123,10 +123,6 @@ module Sass
123
123
  raise "Failed to fetch #{uri_s}"
124
124
  end
125
125
 
126
- def uri_parser
127
- @uri_parser ||= URI::Parser.new({ RESERVED: ';/?:@&=+$,' })
128
- end
129
-
130
126
  def default_sass_embedded
131
127
  repo = 'sass/dart-sass-embedded'
132
128
 
@@ -214,7 +210,7 @@ module Sass
214
210
 
215
211
  ext = 'zip'
216
212
 
217
- "https://github.com/#{repo}/releases/download/#{tag_name}/protoc-#{tag_name[1..]}-#{os_arch}.#{ext}"
213
+ "https://github.com/#{repo}/releases/download/#{tag_name}/protoc-#{tag_name.delete_prefix('v')}-#{os_arch}.#{ext}"
218
214
  end
219
215
 
220
216
  def default_sass_embedded_protocol
@@ -49,7 +49,7 @@ module Sass
49
49
 
50
50
  success = value_protofier.to_proto(get(function_call_request).call(arguments))
51
51
  accessed_argument_lists = arguments
52
- .filter do |argument|
52
+ .select do |argument|
53
53
  argument.is_a?(Sass::Value::ArgumentList) && argument.instance_eval do
54
54
  @keywords_accessed
55
55
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  class Embedded
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.1'
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: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-25 00:00:00.000000000 Z
11
+ date: 2022-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -162,8 +162,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
162
162
  licenses:
163
163
  - MIT
164
164
  metadata:
165
- documentation_uri: https://www.rubydoc.info/gems/sass-embedded/1.0.0
166
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.0.0
165
+ documentation_uri: https://www.rubydoc.info/gems/sass-embedded/1.0.1
166
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.0.1
167
167
  funding_uri: https://github.com/sponsors/ntkme
168
168
  post_install_message:
169
169
  rdoc_options: []