sass-embedded 0.19.1 → 0.19.2

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: 98e2d595f559611d4bf150ab826be0386123267999a77b52b37b29b780dacadc
4
- data.tar.gz: 409876982853e88acef3ea3a0d9dde84c6d4ad12e63fccfa24236fb6de0d1911
3
+ metadata.gz: 827e324d735fe63938d7ddeb8d13c31577d9eec28971561bf6eae4cca7013eeb
4
+ data.tar.gz: b8536a68113173ca68edecca565ef7f4e13aba5a647902f0dd4d1411c2127380
5
5
  SHA512:
6
- metadata.gz: 4275d81a3be35d78b111c8d34b04046e4390c5def447dd1d91cf9ea042ae9d31c87a7c05842666f83609565f69146fb8c5a6f617501d5e604251e70fbbf0121f
7
- data.tar.gz: 0bcd2e6d4d45fe029ff751fcc0f884c7b31fb829cd9ed17a0e2b6ae5d7916f7013e6f4a5e61c4e5e2d06972a58e4514cb70b7eb5fa6ce129a398dd1ce125611c
6
+ metadata.gz: 9c16c31eec049d62c380049e2b565fcb1d05c55205f3f5966b43b47fd058d1c0fffc959f178ed68b47465cbd0c152b355c8196912a3688ba01a2c5783a2b9719
7
+ data.tar.gz: 4d4836379db8fa44061bf92c49c2a49dcb76f0299fad42df56c8c4d59ce0babf66d8245f3c73e36b51a6f58062050e9bff8bccbfb5356a8b87b40329abcb1f41
@@ -1,10 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'base64'
4
- require 'json'
5
- require 'pathname'
6
- require 'uri'
7
-
8
3
  # The Sass module.
9
4
  #
10
5
  # This communicates with Embedded Dart Sass using the Embedded Sass protocol.
@@ -87,10 +82,13 @@ module Sass
87
82
  source_map_root: '',
88
83
  functions: {},
89
84
  importer: [])
90
- start = now
91
-
92
85
  raise ArgumentError, 'either data or file must be set' if file.nil? && data.nil?
93
86
 
87
+ require 'pathname'
88
+ require 'uri'
89
+
90
+ start = now
91
+
94
92
  indent_type = parse_indent_type(indent_type)
95
93
  indent_width = parse_indent_width(indent_width)
96
94
  linefeed = parse_linefeed(linefeed)
@@ -217,6 +215,9 @@ module Sass
217
215
  source_map_root:)
218
216
  return if map.nil? || map.empty?
219
217
 
218
+ require 'base64'
219
+ require 'json'
220
+
220
221
  map_data = JSON.parse(map)
221
222
 
222
223
  map_data['sourceRoot'] = source_map_root
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  class Embedded
5
- VERSION = '0.19.1'
5
+ VERSION = '0.19.2'
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: 0.19.1
4
+ version: 0.19.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
@@ -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.1
167
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.19.1
166
+ documentation_uri: https://www.rubydoc.info/gems/sass-embedded/0.19.2
167
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.19.2
168
168
  funding_uri: https://github.com/sponsors/ntkme
169
169
  post_install_message:
170
170
  rdoc_options: []