sass-embedded 0.7.21 → 0.7.22

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: 56532f85bc34c9ab6c07cd25dd183254302973d58b4a294d0038587eced63542
4
- data.tar.gz: 203141172e6db65c5e75c478eb5d38e479a0dde3c340183efb591342d62e3c7c
3
+ metadata.gz: f360e8794e886f8ab92c34e2dea8582290688c7b1859e94ae2447546570de77f
4
+ data.tar.gz: b5cefdb6ac4f7df129e49a4eeaf609b7d72ad9cdd3dbe57e554d6452f883018f
5
5
  SHA512:
6
- metadata.gz: 0567dfccbe9a7daf227de800c11ff9e170f4e76d76ab8ec32885b925ef89b94bb302c0b9dad1f2e9b12dc4598cc2fb8f522d2d12d37a0ed015470475bd024bec
7
- data.tar.gz: 7c5c0267d3f22c07d8ad915f1303d03ee9af7519ba01691d65771916dbd649d0c36e9bc94ab566af54646963bd201c0559150fa4397ddf2fec8a5d6ca2786c86
6
+ metadata.gz: 6268cc265f0a543c28c036097ea778d3258884a1724108051c66975d5944042d479f394a82297ac6f34a6c7816543007ebc16f02701344d4184e1b61d39863b4
7
+ data.tar.gz: 7bc62bd8d68f7fef9406bbaa14a69e98872e55d5d73866a7478f8e729129fb2a6df0a26e11caa5671116266a8ccddfc5c28a0a4f695c1a7c843b3bfede8a8eb5
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.22'
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.22
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-19 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.22
156
156
  post_install_message:
157
157
  rdoc_options: []
158
158
  require_paths: