sassc-embedded 1.80.3 → 1.80.4

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: aabfdfe0d75fc8819353db51045dcbda01b95bb39355aadcf161dc8f126873e9
4
- data.tar.gz: c5d1afb014833593a3ed73467f746f257fc7c1e87b2d01eae35503ebcfeb2ab6
3
+ metadata.gz: 5f741c19a9ca2fcad66b3676ff3a896416156d71dbe63bd0b3dd79d3cae95958
4
+ data.tar.gz: c99c349e440e3dc31a11b2bdff13d3b625b6427d63f2c5d6723d7f4070a69e48
5
5
  SHA512:
6
- metadata.gz: f82517d2f6303cc6c502377c47be29831424ac22ef8d6ad37ecb3f86477d3e456ba8c53481aacbd2f3ff5e3e53e8ba7b20a3948e99b639f6719ce348ecfdc9bc
7
- data.tar.gz: c1ce5a02d6de472499faecd0b45d367c79e57e8f0f639e234147ad1da0b35e2faec4b42ff13b5acfff5702031e2d54857b166fe711a9c036c9d14666b815a724
6
+ metadata.gz: 4c91a95b1b283ad54e7d5bbf31b11b669567665a3be86c03584a9da88ce3e2001dbd128dc877418e6ff1c27eb5f4eb48a0e6be05e3c0f04cc1eabea434e6312c
7
+ data.tar.gz: 77b06e407927c31ac8a35b80b33a96dd2c6469ede73ddb928893cc2671738813a73a3b14817ecc0207db8a7390b1e9ea7253f4787d03b18010ef6810d767005f
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.80.3'
5
+ VERSION = '1.80.4'
6
6
  end
7
7
  end
@@ -87,7 +87,7 @@ module SassC
87
87
  end
88
88
  end
89
89
 
90
- JSON.generate(data)
90
+ JSON.fast_generate(data).encode!(@template.encoding)
91
91
  end
92
92
 
93
93
  private
@@ -106,7 +106,7 @@ module SassC
106
106
  remove_method(:output_style) if private_method_defined?(:output_style, false)
107
107
 
108
108
  def output_style
109
- @output_style ||= case @options.fetch(:style, :sass_style_nested).to_sym
109
+ @output_style ||= case @options.fetch(:style, :nested).to_sym
110
110
  when :nested, :expanded, :compact, :sass_style_nested, :sass_style_expanded, :sass_style_compact
111
111
  :expanded
112
112
  when :compressed, :sass_style_compressed
@@ -117,8 +117,8 @@ module SassC
117
117
  end
118
118
 
119
119
  def syntax
120
- syntax = @options.fetch(:syntax, :scss)
121
- syntax = :indented if syntax.to_sym == :sass
120
+ syntax = @options.fetch(:syntax, :scss).to_sym
121
+ syntax = :indented if syntax == :sass
122
122
  syntax
123
123
  end
124
124
 
@@ -167,6 +167,12 @@ module SassC
167
167
  Script::ValueConversion.from_native(native_value, @options)
168
168
  end
169
169
  end
170
+
171
+ remove_method(:to_native_value) if private_method_defined?(:to_native_value, false)
172
+
173
+ def to_native_value(sass_value)
174
+ Script::ValueConversion.to_native(sass_value)
175
+ end
170
176
  end
171
177
 
172
178
  module NoopImporter
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sassc-embedded
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.80.3
4
+ version: 1.80.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
@@ -78,7 +78,7 @@ licenses:
78
78
  metadata:
79
79
  bug_tracker_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/issues
80
80
  documentation_uri: https://rubydoc.info/gems/sassc
81
- source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.80.3
81
+ source_code_uri: https://github.com/sass-contrib/sassc-embedded-shim-ruby/tree/v1.80.4
82
82
  funding_uri: https://github.com/sponsors/ntkme
83
83
  rubygems_mfa_required: 'true'
84
84
  rdoc_options: []