sass-embedded 0.7.21 → 0.7.25

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: 56532f85bc34c9ab6c07cd25dd183254302973d58b4a294d0038587eced63542
4
- data.tar.gz: 203141172e6db65c5e75c478eb5d38e479a0dde3c340183efb591342d62e3c7c
3
+ metadata.gz: f7192933909624b939215bfca941b38c85a428a4e77d35afb0f72377fb92a2bf
4
+ data.tar.gz: 1b4a946c026324d880232803141807f4e59ac25cd2a991c0428075951deca948
5
5
  SHA512:
6
- metadata.gz: 0567dfccbe9a7daf227de800c11ff9e170f4e76d76ab8ec32885b925ef89b94bb302c0b9dad1f2e9b12dc4598cc2fb8f522d2d12d37a0ed015470475bd024bec
7
- data.tar.gz: 7c5c0267d3f22c07d8ad915f1303d03ee9af7519ba01691d65771916dbd649d0c36e9bc94ab566af54646963bd201c0559150fa4397ddf2fec8a5d6ca2786c86
6
+ metadata.gz: 3bc89fea820633e29b0e5de08aa3db822403904c6868226240b4043f9c7c616ad0c230291bedc0d57aa1667cd9f653b6aee7d83e3b6f6781860bbd089b9f3b03
7
+ data.tar.gz: 54c72b0355dddad675fea7673eba527d9a7568a0d5fd6527bac60667193b5ff84df9a48d92b5571b45f9013af7eed3d1b9b699fea2cc273212459cae7ffc7da6
data/ext/sass/Makefile CHANGED
@@ -1,5 +1,5 @@
1
1
  ifeq ($(OS),Windows_NT)
2
- RM = cmd /c del /f /q /s
2
+ RM = powershell -c "cmd.exe /c del /f /q /s"
3
3
  else
4
4
  RM = rm -fr
5
5
  endif
data/ext/sass/extconf.rb CHANGED
@@ -63,7 +63,8 @@ module Sass
63
63
  raise
64
64
  end
65
65
  rescue StandardError
66
- raise "Failed to get: #{uri_s}"
66
+ warn "Failed to get: #{uri_s}"
67
+ raise
67
68
  end
68
69
 
69
70
  def resolve_tag_name(repo, *requirements, gh_release: true)
data/lib/sass/compile.rb CHANGED
@@ -121,7 +121,7 @@ module Sass
121
121
  url: url
122
122
  )
123
123
  elsif result&.key? :file
124
- canonicalized_url = Util.file_uri_from_path(result[:file])
124
+ canonicalized_url = Util.file_uri_from_path(File.absolute_path(result[:file]))
125
125
 
126
126
  # TODO: FileImportRequest is not supported yet.
127
127
  # Workaround by reading contents and return it when server asks
@@ -187,7 +187,7 @@ module Sass
187
187
  def url
188
188
  return if @file.nil?
189
189
 
190
- Util.file_uri_from_path @file
190
+ Util.file_uri_from_path File.absolute_path @file
191
191
  end
192
192
 
193
193
  def string
data/lib/sass/util.rb CHANGED
@@ -13,15 +13,11 @@ module Sass
13
13
  private_constant :URI_PARSER
14
14
 
15
15
  def file_uri_from_path(path)
16
- absolute_path = File.absolute_path(path)
17
-
18
- absolute_path = File::SEPARATOR + absolute_path unless absolute_path.start_with? File::SEPARATOR
19
-
20
- URI_PARSER.escape("file://#{absolute_path}")
16
+ "file://#{Platform::OS == 'windows' ? File::SEPARATOR : ''}#{URI_PARSER.escape(path)}"
21
17
  end
22
18
 
23
19
  def path_from_file_uri(file_uri)
24
- URI_PARSER.unescape(file_uri)[7..]
20
+ URI_PARSER.unescape(file_uri[(Platform::OS == 'windows' ? 8 : 7)..])
25
21
  end
26
22
 
27
23
  def relative_path(from, to)
data/lib/sass/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sass
4
- VERSION = '0.7.21'
4
+ VERSION = '0.7.25'
5
5
  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.7.21
4
+ version: 0.7.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-16 00:00:00.000000000 Z
11
+ date: 2021-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -152,7 +152,7 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
152
152
  licenses:
153
153
  - MIT
154
154
  metadata:
155
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.7.21
155
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.7.25
156
156
  post_install_message:
157
157
  rdoc_options: []
158
158
  require_paths: