sass-embedded 1.0.18 → 1.0.19

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: b701a29895bdd5f8ff05a4a23d972b1db3a64c20e29a75e02f6e3d52e7db762a
4
- data.tar.gz: 900620c0e33b9ae961f231cb249b00a74d0306e74dfa06f35996571319e47328
3
+ metadata.gz: b5254ca2c7b3c19b2ea114590c6e7ce58afb95943a7a3e9c43124cfd42e1db68
4
+ data.tar.gz: 9469c9e41981803da8a50764a0db94b51035898a6d7892328ec96faafd1cfb10
5
5
  SHA512:
6
- metadata.gz: 8a5984ffbe81012da00d2b25101d4b8a850057684f880fb25a4c76041a2d93a79b8888919d61487fb74b4b4480e6be9b39f7ee2554408e62ad3fa6adb27a3341
7
- data.tar.gz: 6450eafe143ecb655308d8c3c859c2a90c013bd753495fd6b12db87bea4ccb9bd89c616957ed08e47ef3a04daf90437a41b1836cef01f609750b9663044a96a1
6
+ metadata.gz: 530179e9bc1aa1e513b26fc56aeeb889236c689113ba1e7ca6d5b7a3e29b43e8078356ff1279bab315435553cb387fe4a988d4766f3c73270c0864d0b9053864
7
+ data.tar.gz: 8f0605fcee9c7630be7e6babdd707edae0b9e310ac616eb4ebb8988a5bceb249da92034296ca62752b9adb4724152455513b280961ba7291a5ac5cbad8c034a5
@@ -69,17 +69,17 @@ module Sass
69
69
  end
70
70
 
71
71
  def receive_message(outbound_message)
72
- message = outbound_message.send(outbound_message.message)
72
+ message = outbound_message.public_send(outbound_message.message)
73
73
 
74
74
  case outbound_message.message
75
75
  when :error
76
76
  half_close
77
- @observers[message.id]&.send(outbound_message.message, message)
77
+ @observers[message.id]&.public_send(outbound_message.message, message)
78
78
  when :compile_response, :version_response
79
- @observers[message.id].send(outbound_message.message, message)
79
+ @observers[message.id].public_send(outbound_message.message, message)
80
80
  when :log_event, :canonicalize_request, :import_request, :file_import_request, :function_call_request
81
81
  Thread.new(@observers[message.compilation_id]) do |observer|
82
- observer.send(outbound_message.message, message)
82
+ observer.public_send(outbound_message.message, message)
83
83
  end
84
84
  else
85
85
  raise ArgumentError, "Unknown OutboundMessage.message #{message}"
@@ -85,7 +85,9 @@ module Sass
85
85
  importer = @importers_by_id[file_import_request.importer_id]
86
86
  file_url = importer.find_file_url(file_import_request.url, from_import: file_import_request.from_import)&.to_s
87
87
 
88
- raise "file_url must be a file: URL, was \"#{file_url}\"" if !file_url.nil? && !file_url.start_with?('file:')
88
+ if !file_url.nil? && !file_url.start_with?('file:')
89
+ raise "file_url must be a file: URL, was #{file_url.inspect}"
90
+ end
89
91
 
90
92
  EmbeddedProtocol::InboundMessage::FileImportResponse.new(
91
93
  id: file_import_request.id,
@@ -114,7 +114,7 @@ module Sass
114
114
  end
115
115
 
116
116
  def from_proto(proto)
117
- obj = proto.send(proto.value)
117
+ obj = proto.public_send(proto.value)
118
118
  case proto.value
119
119
  when :string
120
120
  Sass::Value::String.new(
@@ -9,7 +9,7 @@ module Sass
9
9
  module_function
10
10
 
11
11
  def from_proto_compile_response(compile_response)
12
- result = compile_response.send(compile_response.result)
12
+ result = compile_response.public_send(compile_response.result)
13
13
  case compile_response.result
14
14
  when :failure
15
15
  raise CompileError.new(
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  class Embedded
5
- VERSION = '1.0.18'
5
+ VERSION = '1.0.19'
6
6
  end
7
7
  end
@@ -118,7 +118,7 @@ module Sass
118
118
  # @return [Number]
119
119
  # @raise [ScriptError]
120
120
  def assert_unit(unit, name = nil)
121
- raise error "Expected #{self} to have no unit \"#{unit}\"", name unless unit?(unit)
121
+ raise error "Expected #{self} to have unit #{unit.inspect}", name unless unit?(unit)
122
122
 
123
123
  self
124
124
  end
@@ -244,7 +244,7 @@ module Sass
244
244
  other: nil,
245
245
  other_name: nil)
246
246
  if other && (other.numerator_units != new_denominator_units && other.denominator_units != new_denominator_units)
247
- raise error "Expect #{other} to have units #{unit_string(new_numerator_units, new_denominator_units)}"
247
+ raise error "Expect #{other} to have units #{unit_string(new_numerator_units, new_denominator_units).inspect}"
248
248
  end
249
249
 
250
250
  return value if numerator_units == new_numerator_units && denominator_units == new_denominator_units
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.18
4
+ version: 1.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-11 00:00:00.000000000 Z
11
+ date: 2022-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -160,8 +160,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
160
160
  licenses:
161
161
  - MIT
162
162
  metadata:
163
- documentation_uri: https://www.rubydoc.info/gems/sass-embedded/1.0.18
164
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.0.18
163
+ documentation_uri: https://www.rubydoc.info/gems/sass-embedded/1.0.19
164
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.0.19
165
165
  funding_uri: https://github.com/sponsors/ntkme
166
166
  post_install_message:
167
167
  rdoc_options: []