sass-embedded 1.77.0-riscv64-linux-musl → 1.77.1-riscv64-linux-musl

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: 5c0c79d5ba71f81eab8d6bb710701a8ddd1a6615c0755899843232fd519b4893
4
- data.tar.gz: 9392e9af05b68f99830cf3e58cbf426faae241a9d47f614df6144add2d97253c
3
+ metadata.gz: 88817b258be7559e537d556e1ffcffa95077d18b9fbffc790c73a0b8c7fdcf55
4
+ data.tar.gz: c0675afd62986c0556d99e322e2bc8cab3ad0c530a0e43d70a2564f3929a02b0
5
5
  SHA512:
6
- metadata.gz: 6b02fccd3cbb93da79546257278b310c7518d1a920faef0e5228f207b7d8c00387859268d596c17bb325e1086db47dae6136b95383b26b544731e09dc176ebb7
7
- data.tar.gz: 6c013a8ccf98bb03a31c5956c57fb591f884627c35d4926b2b1ea8ae550b7e924f57982b011d2a81459a5357cb9bc98b9ad1b61c4256cdbb26d707f8e60e80f6
6
+ metadata.gz: 5088dcd2ff83ffe411164108343314f2af8ef887abc2680e4962144b4e57a7aedea5f7e517eb076904849a7425b2cd7524980d72153eb94a0e1b315ab9c8e11d
7
+ data.tar.gz: ef0a2aad9c5c6ba6dffd51c8791c8c7b806b1389abcdce16bd8d897ddc94adf2036eb09b803f74e05f729e7c90c742bc04f18502379da53be98b2119044518e8
data/ext/sass/cli.rb CHANGED
@@ -1,22 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- spec = Gem.loaded_specs['sass-embedded']
4
- platform = spec&.platform
5
- if platform.is_a?(Gem::Platform) && platform.os == 'linux' && platform.version.nil?
6
- update = if Gem.disable_system_update_message
7
- 'updating Ruby to version 3.2 or later'
8
- else
9
- "running 'gem update --system' to update RubyGems"
10
- end
11
- install = if defined?(Bundler)
12
- "running 'rm -f Gemfile.lock && bundle install'"
13
- else
14
- "running 'gem install sass-embedded'"
15
- end
16
- raise LoadError, "The gemspec for #{spec.name} at #{spec.loaded_from} was broken. " \
17
- "Try #{update}, and then try #{install} to reinstall."
18
- end
19
-
20
3
  module Sass
21
4
  module CLI
22
5
  COMMAND = [
Binary file
@@ -7,13 +7,17 @@ module Sass
7
7
  # @see https://sass-lang.com/documentation/js-api/interfaces/canonicalizecontext/
8
8
  class CanonicalizeContext
9
9
  # @return [String, nil]
10
- attr_reader :containing_url
10
+ def containing_url
11
+ @containing_url_unused = false
12
+ @containing_url
13
+ end
11
14
 
12
15
  # @return [Boolean]
13
16
  attr_reader :from_import
14
17
 
15
18
  # @!visibility private
16
19
  def initialize(canonicalize_request)
20
+ @containing_url_unused = true
17
21
  @containing_url = canonicalize_request.containing_url == '' ? nil : canonicalize_request.containing_url
18
22
  @from_import = canonicalize_request.from_import
19
23
  end
@@ -68,12 +68,14 @@ module Sass
68
68
 
69
69
  def canonicalize(canonicalize_request)
70
70
  importer = @importers_by_id[canonicalize_request.importer_id]
71
+ canonicalize_context = CanonicalizeContext.new(canonicalize_request)
71
72
  url = importer.canonicalize(canonicalize_request.url,
72
- CanonicalizeContext.new(canonicalize_request))&.to_s
73
+ canonicalize_context)&.to_s
73
74
 
74
75
  EmbeddedProtocol::InboundMessage::CanonicalizeResponse.new(
75
76
  id: canonicalize_request.id,
76
- url:
77
+ url:,
78
+ containing_url_unused: canonicalize_context.instance_eval { @containing_url_unused }
77
79
  )
78
80
  rescue StandardError => e
79
81
  EmbeddedProtocol::InboundMessage::CanonicalizeResponse.new(
@@ -103,12 +105,14 @@ module Sass
103
105
 
104
106
  def file_import(file_import_request)
105
107
  importer = @importers_by_id[file_import_request.importer_id]
108
+ canonicalize_context = CanonicalizeContext.new(file_import_request)
106
109
  file_url = importer.find_file_url(file_import_request.url,
107
- CanonicalizeContext.new(file_import_request))&.to_s
110
+ canonicalize_context)&.to_s
108
111
 
109
112
  EmbeddedProtocol::InboundMessage::FileImportResponse.new(
110
113
  id: file_import_request.id,
111
- file_url:
114
+ file_url:,
115
+ containing_url_unused: canonicalize_context.instance_eval { @containing_url_unused }
112
116
  )
113
117
  rescue StandardError => e
114
118
  EmbeddedProtocol::InboundMessage::FileImportResponse.new(
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  module Embedded
5
- VERSION = '1.77.0'
5
+ VERSION = '1.77.1'
6
6
  end
7
7
  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: 1.77.0
4
+ version: 1.77.1
5
5
  platform: riscv64-linux-musl
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-07 00:00:00.000000000 Z
11
+ date: 2024-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -94,8 +94,8 @@ licenses:
94
94
  - MIT
95
95
  metadata:
96
96
  bug_tracker_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/issues
97
- documentation_uri: https://rubydoc.info/gems/sass-embedded/1.77.0
98
- source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.77.0
97
+ documentation_uri: https://rubydoc.info/gems/sass-embedded/1.77.1
98
+ source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.77.1
99
99
  funding_uri: https://github.com/sponsors/ntkme
100
100
  rubygems_mfa_required: 'true'
101
101
  post_install_message:
@@ -106,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: 3.1.0
109
+ version: 3.2.0
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - ">="