sass-embedded 1.0.4 → 1.0.5

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: 5c43ad7fb335b99c12bdc65c8a37af7a239a737f4c8655590ce35ea6be51ca3d
4
- data.tar.gz: cbc99b11c3330928a9582cb8befba681fd49db77868e0acdbadde4c7ba14a6ec
3
+ metadata.gz: 7d191baae4f4080d338f5dd27a96165515160e78fb83390550fedbd683bdc8ae
4
+ data.tar.gz: 8e7323fbb7a3408e58a1b1c9db09b2858d6809b54675370d50a01401a5638716
5
5
  SHA512:
6
- metadata.gz: a77c23cd962c9936b9474f9ea0402095b2c65d0e4fca6bc848364d17211f37947e87ccfdf0db3dfff14477bcf6d3a2dadbf1dcc6ed127b6c1424e33b80cb3920
7
- data.tar.gz: 64bb51ebf0b1d6dadd39ceb73be714ed1090478dcafa43a34a465032a189a3ac6389aa035d3d0420cd9a243f2b2164d1e9e4b122d5e7f67c8bdd877b455aa1f1
6
+ metadata.gz: 2e6a68bfb1068e58483198d7d5b5dd5cdb742f06fbfc39557a7dc367dcef183a6c0b38631e6749ff4f3dc19d9b853644ea46602a81e7ac37a655c8cd864448b7
7
+ data.tar.gz: f23fcefbcb06b6235e35c41298e2204d8b4397222f41e19f567d3b0550486655d9d2745bd08f7864d7333c238c5eb0d41d9dbe3e75edc24d2b4bfc61b5a5e049
data/ext/sass/extconf.rb CHANGED
@@ -108,7 +108,10 @@ module Sass
108
108
  begin
109
109
  uri = URI.parse(uri_or_path)
110
110
  path = URI::DEFAULT_PARSER.unescape(uri.path)
111
- raise if uri.instance_of?(URI::Generic) && !File.file?(path)
111
+ if uri.instance_of?(URI::File) || uri.instance_of?(URI::Generic)
112
+ path = path.delete_prefix('/') if Platform::OS == 'windows' && !File.file?(path)
113
+ raise unless File.file?(path)
114
+ end
112
115
  rescue StandardError
113
116
  raise unless File.file?(uri_or_path)
114
117
 
@@ -118,7 +121,7 @@ module Sass
118
121
 
119
122
  dest = File.absolute_path(File.basename(path), __dir__)
120
123
 
121
- if uri.nil? || uri.is_a?(URI::File) || uri.instance_of?(URI::Generic)
124
+ if uri.nil? || uri.instance_of?(URI::File) || uri.instance_of?(URI::Generic)
122
125
  puts "cp -- #{path} #{dest}"
123
126
  FileUtils.copy_file(path, dest)
124
127
  elsif uri.respond_to?(:open)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  class Embedded
5
- VERSION = '1.0.4'
5
+ VERSION = '1.0.5'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass-embedded
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
@@ -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.4
166
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.0.4
165
+ documentation_uri: https://www.rubydoc.info/gems/sass-embedded/1.0.5
166
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.0.5
167
167
  funding_uri: https://github.com/sponsors/ntkme
168
168
  post_install_message:
169
169
  rdoc_options: []