sass-embedded 1.54.9-x86-mingw32 → 1.55.0-x86-mingw32

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: bb00803a3a59524635bbc5a844ac691883e38d2bbed757f3f67058f49f9ce5f0
4
- data.tar.gz: 56f329bfbf9722aa8745f4f8a5ff5ffd26ed1b98422240bbba12acb3c1196b01
3
+ metadata.gz: ca4136592033fcebb7504ff74ac3e715249a2b357868cf4cef663a6aa4887704
4
+ data.tar.gz: 783875e3d45768226fbc93951fb6c7865cdb249e7bd4faaf7ccf4a807bf71cd8
5
5
  SHA512:
6
- metadata.gz: e6bb03c6b8ecc3d6b3861e8fb0f49a82e8783741c3df090817280e0d4fd73da3559ebaf121db95b57ff0cf8bc4a17d86ed1d082a86b33d03e273b64ba82577fc
7
- data.tar.gz: 5f94ab425d86f88f3334fc99be1c5b3ff0a434c9684839f376460df95a89e3c92baaaab7144f5dc56ee316829180150276131cb795c6dbc8ed7f9266c5866678
6
+ metadata.gz: 23a60f6dcfa04f34acd6fcdd2592ca74b83fee197ec88962bdacd6cc60cfaa5f0f8f6252729e7483a1d637840aefe5e47fda068e17dd90b1e1577187fdae216c
7
+ data.tar.gz: a81eb6370d626a42b9f32bff9fe1f99d17e58f4833f7d99ce26660da3030c4bbb82266c0d6525a1c381e5cce40d2f0615897ca70e99ec9b5b89b762b701f879c
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![build](https://github.com/ntkme/sass-embedded-host-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/ntkme/sass-embedded-host-ruby/actions/workflows/build.yml)
4
4
  [![gem](https://badge.fury.io/rb/sass-embedded.svg)](https://rubygems.org/gems/sass-embedded)
5
5
 
6
- This is a Ruby library that implements the host side of the [Embedded Sass protocol](https://github.com/sass/sass-embedded-protocol).
6
+ This is a Ruby library that implements the host side of the [Embedded Sass protocol](https://github.com/sass/embedded-protocol).
7
7
 
8
8
  It exposes a Ruby API for Sass that's backed by a native [Dart Sass](https://sass-lang.com/dart-sass) executable.
9
9
 
@@ -182,7 +182,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
182
182
 
183
183
  --------------------------------------------------------------------------------
184
184
 
185
- async, cli_util, collection, mime and typed_data license:
185
+ async, cli_util, collection, mime, stream_channel and typed_data license:
186
186
 
187
187
  Copyright 2015, the Dart project authors.
188
188
 
@@ -581,214 +581,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
581
581
 
582
582
  --------------------------------------------------------------------------------
583
583
 
584
- coverage and quiver license:
585
-
586
-
587
- Apache License
588
- Version 2.0, January 2004
589
- http://www.apache.org/licenses/
590
-
591
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
592
-
593
- 1. Definitions.
594
-
595
- "License" shall mean the terms and conditions for use, reproduction,
596
- and distribution as defined by Sections 1 through 9 of this document.
597
-
598
- "Licensor" shall mean the copyright owner or entity authorized by
599
- the copyright owner that is granting the License.
600
-
601
- "Legal Entity" shall mean the union of the acting entity and all
602
- other entities that control, are controlled by, or are under common
603
- control with that entity. For the purposes of this definition,
604
- "control" means (i) the power, direct or indirect, to cause the
605
- direction or management of such entity, whether by contract or
606
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
607
- outstanding shares, or (iii) beneficial ownership of such entity.
608
-
609
- "You" (or "Your") shall mean an individual or Legal Entity
610
- exercising permissions granted by this License.
611
-
612
- "Source" form shall mean the preferred form for making modifications,
613
- including but not limited to software source code, documentation
614
- source, and configuration files.
615
-
616
- "Object" form shall mean any form resulting from mechanical
617
- transformation or translation of a Source form, including but
618
- not limited to compiled object code, generated documentation,
619
- and conversions to other media types.
620
-
621
- "Work" shall mean the work of authorship, whether in Source or
622
- Object form, made available under the License, as indicated by a
623
- copyright notice that is included in or attached to the work
624
- (an example is provided in the Appendix below).
625
-
626
- "Derivative Works" shall mean any work, whether in Source or Object
627
- form, that is based on (or derived from) the Work and for which the
628
- editorial revisions, annotations, elaborations, or other modifications
629
- represent, as a whole, an original work of authorship. For the purposes
630
- of this License, Derivative Works shall not include works that remain
631
- separable from, or merely link (or bind by name) to the interfaces of,
632
- the Work and Derivative Works thereof.
633
-
634
- "Contribution" shall mean any work of authorship, including
635
- the original version of the Work and any modifications or additions
636
- to that Work or Derivative Works thereof, that is intentionally
637
- submitted to Licensor for inclusion in the Work by the copyright owner
638
- or by an individual or Legal Entity authorized to submit on behalf of
639
- the copyright owner. For the purposes of this definition, "submitted"
640
- means any form of electronic, verbal, or written communication sent
641
- to the Licensor or its representatives, including but not limited to
642
- communication on electronic mailing lists, source code control systems,
643
- and issue tracking systems that are managed by, or on behalf of, the
644
- Licensor for the purpose of discussing and improving the Work, but
645
- excluding communication that is conspicuously marked or otherwise
646
- designated in writing by the copyright owner as "Not a Contribution."
647
-
648
- "Contributor" shall mean Licensor and any individual or Legal Entity
649
- on behalf of whom a Contribution has been received by Licensor and
650
- subsequently incorporated within the Work.
651
-
652
- 2. Grant of Copyright License. Subject to the terms and conditions of
653
- this License, each Contributor hereby grants to You a perpetual,
654
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
655
- copyright license to reproduce, prepare Derivative Works of,
656
- publicly display, publicly perform, sublicense, and distribute the
657
- Work and such Derivative Works in Source or Object form.
658
-
659
- 3. Grant of Patent License. Subject to the terms and conditions of
660
- this License, each Contributor hereby grants to You a perpetual,
661
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
662
- (except as stated in this section) patent license to make, have made,
663
- use, offer to sell, sell, import, and otherwise transfer the Work,
664
- where such license applies only to those patent claims licensable
665
- by such Contributor that are necessarily infringed by their
666
- Contribution(s) alone or by combination of their Contribution(s)
667
- with the Work to which such Contribution(s) was submitted. If You
668
- institute patent litigation against any entity (including a
669
- cross-claim or counterclaim in a lawsuit) alleging that the Work
670
- or a Contribution incorporated within the Work constitutes direct
671
- or contributory patent infringement, then any patent licenses
672
- granted to You under this License for that Work shall terminate
673
- as of the date such litigation is filed.
674
-
675
- 4. Redistribution. You may reproduce and distribute copies of the
676
- Work or Derivative Works thereof in any medium, with or without
677
- modifications, and in Source or Object form, provided that You
678
- meet the following conditions:
679
-
680
- (a) You must give any other recipients of the Work or
681
- Derivative Works a copy of this License; and
682
-
683
- (b) You must cause any modified files to carry prominent notices
684
- stating that You changed the files; and
685
-
686
- (c) You must retain, in the Source form of any Derivative Works
687
- that You distribute, all copyright, patent, trademark, and
688
- attribution notices from the Source form of the Work,
689
- excluding those notices that do not pertain to any part of
690
- the Derivative Works; and
691
-
692
- (d) If the Work includes a "NOTICE" text file as part of its
693
- distribution, then any Derivative Works that You distribute must
694
- include a readable copy of the attribution notices contained
695
- within such NOTICE file, excluding those notices that do not
696
- pertain to any part of the Derivative Works, in at least one
697
- of the following places: within a NOTICE text file distributed
698
- as part of the Derivative Works; within the Source form or
699
- documentation, if provided along with the Derivative Works; or,
700
- within a display generated by the Derivative Works, if and
701
- wherever such third-party notices normally appear. The contents
702
- of the NOTICE file are for informational purposes only and
703
- do not modify the License. You may add Your own attribution
704
- notices within Derivative Works that You distribute, alongside
705
- or as an addendum to the NOTICE text from the Work, provided
706
- that such additional attribution notices cannot be construed
707
- as modifying the License.
708
-
709
- You may add Your own copyright statement to Your modifications and
710
- may provide additional or different license terms and conditions
711
- for use, reproduction, or distribution of Your modifications, or
712
- for any such Derivative Works as a whole, provided Your use,
713
- reproduction, and distribution of the Work otherwise complies with
714
- the conditions stated in this License.
715
-
716
- 5. Submission of Contributions. Unless You explicitly state otherwise,
717
- any Contribution intentionally submitted for inclusion in the Work
718
- by You to the Licensor shall be under the terms and conditions of
719
- this License, without any additional terms or conditions.
720
- Notwithstanding the above, nothing herein shall supersede or modify
721
- the terms of any separate license agreement you may have executed
722
- with Licensor regarding such Contributions.
723
-
724
- 6. Trademarks. This License does not grant permission to use the trade
725
- names, trademarks, service marks, or product names of the Licensor,
726
- except as required for reasonable and customary use in describing the
727
- origin of the Work and reproducing the content of the NOTICE file.
728
-
729
- 7. Disclaimer of Warranty. Unless required by applicable law or
730
- agreed to in writing, Licensor provides the Work (and each
731
- Contributor provides its Contributions) on an "AS IS" BASIS,
732
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
733
- implied, including, without limitation, any warranties or conditions
734
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
735
- PARTICULAR PURPOSE. You are solely responsible for determining the
736
- appropriateness of using or redistributing the Work and assume any
737
- risks associated with Your exercise of permissions under this License.
738
-
739
- 8. Limitation of Liability. In no event and under no legal theory,
740
- whether in tort (including negligence), contract, or otherwise,
741
- unless required by applicable law (such as deliberate and grossly
742
- negligent acts) or agreed to in writing, shall any Contributor be
743
- liable to You for damages, including any direct, indirect, special,
744
- incidental, or consequential damages of any character arising as a
745
- result of this License or out of the use or inability to use the
746
- Work (including but not limited to damages for loss of goodwill,
747
- work stoppage, computer failure or malfunction, or any and all
748
- other commercial damages or losses), even if such Contributor
749
- has been advised of the possibility of such damages.
750
-
751
- 9. Accepting Warranty or Additional Liability. While redistributing
752
- the Work or Derivative Works thereof, You may choose to offer,
753
- and charge a fee for, acceptance of support, warranty, indemnity,
754
- or other liability obligations and/or rights consistent with this
755
- License. However, in accepting such obligations, You may act only
756
- on Your own behalf and on Your sole responsibility, not on behalf
757
- of any other Contributor, and only if You agree to indemnify,
758
- defend, and hold each Contributor harmless for any liability
759
- incurred by, or claims asserted against, such Contributor by reason
760
- of your accepting any such warranty or additional liability.
761
-
762
- END OF TERMS AND CONDITIONS
763
-
764
- APPENDIX: How to apply the Apache License to your work.
765
-
766
- To apply the Apache License to your work, attach the following
767
- boilerplate notice, with the fields enclosed by brackets "[]"
768
- replaced with your own identifying information. (Don't include
769
- the brackets!) The text should be enclosed in the appropriate
770
- comment syntax for the file format. We also recommend that a
771
- file or class name and description of purpose be included on the
772
- same "printed page" as the copyright notice for easier
773
- identification within third-party archives.
774
-
775
- Copyright [yyyy] [name of copyright owner]
776
-
777
- Licensed under the Apache License, Version 2.0 (the "License");
778
- you may not use this file except in compliance with the License.
779
- You may obtain a copy of the License at
780
-
781
- http://www.apache.org/licenses/LICENSE-2.0
782
-
783
- Unless required by applicable law or agreed to in writing, software
784
- distributed under the License is distributed on an "AS IS" BASIS,
785
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
786
- See the License for the specific language governing permissions and
787
- limitations under the License.
788
-
789
- --------------------------------------------------------------------------------
790
-
791
- dart_style, glob, http, http_parser, matcher, path, pool, pub_semver,
584
+ coverage, dart_style, glob, http, http_parser, matcher, path, pool, pub_semver,
792
585
  source_span, string_scanner, test and watcher license:
793
586
 
794
587
  Copyright 2014, the Dart project authors.
@@ -1293,6 +1086,213 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1293
1086
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1294
1087
 
1295
1088
 
1089
+ --------------------------------------------------------------------------------
1090
+
1091
+ quiver license:
1092
+
1093
+
1094
+ Apache License
1095
+ Version 2.0, January 2004
1096
+ http://www.apache.org/licenses/
1097
+
1098
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1099
+
1100
+ 1. Definitions.
1101
+
1102
+ "License" shall mean the terms and conditions for use, reproduction,
1103
+ and distribution as defined by Sections 1 through 9 of this document.
1104
+
1105
+ "Licensor" shall mean the copyright owner or entity authorized by
1106
+ the copyright owner that is granting the License.
1107
+
1108
+ "Legal Entity" shall mean the union of the acting entity and all
1109
+ other entities that control, are controlled by, or are under common
1110
+ control with that entity. For the purposes of this definition,
1111
+ "control" means (i) the power, direct or indirect, to cause the
1112
+ direction or management of such entity, whether by contract or
1113
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
1114
+ outstanding shares, or (iii) beneficial ownership of such entity.
1115
+
1116
+ "You" (or "Your") shall mean an individual or Legal Entity
1117
+ exercising permissions granted by this License.
1118
+
1119
+ "Source" form shall mean the preferred form for making modifications,
1120
+ including but not limited to software source code, documentation
1121
+ source, and configuration files.
1122
+
1123
+ "Object" form shall mean any form resulting from mechanical
1124
+ transformation or translation of a Source form, including but
1125
+ not limited to compiled object code, generated documentation,
1126
+ and conversions to other media types.
1127
+
1128
+ "Work" shall mean the work of authorship, whether in Source or
1129
+ Object form, made available under the License, as indicated by a
1130
+ copyright notice that is included in or attached to the work
1131
+ (an example is provided in the Appendix below).
1132
+
1133
+ "Derivative Works" shall mean any work, whether in Source or Object
1134
+ form, that is based on (or derived from) the Work and for which the
1135
+ editorial revisions, annotations, elaborations, or other modifications
1136
+ represent, as a whole, an original work of authorship. For the purposes
1137
+ of this License, Derivative Works shall not include works that remain
1138
+ separable from, or merely link (or bind by name) to the interfaces of,
1139
+ the Work and Derivative Works thereof.
1140
+
1141
+ "Contribution" shall mean any work of authorship, including
1142
+ the original version of the Work and any modifications or additions
1143
+ to that Work or Derivative Works thereof, that is intentionally
1144
+ submitted to Licensor for inclusion in the Work by the copyright owner
1145
+ or by an individual or Legal Entity authorized to submit on behalf of
1146
+ the copyright owner. For the purposes of this definition, "submitted"
1147
+ means any form of electronic, verbal, or written communication sent
1148
+ to the Licensor or its representatives, including but not limited to
1149
+ communication on electronic mailing lists, source code control systems,
1150
+ and issue tracking systems that are managed by, or on behalf of, the
1151
+ Licensor for the purpose of discussing and improving the Work, but
1152
+ excluding communication that is conspicuously marked or otherwise
1153
+ designated in writing by the copyright owner as "Not a Contribution."
1154
+
1155
+ "Contributor" shall mean Licensor and any individual or Legal Entity
1156
+ on behalf of whom a Contribution has been received by Licensor and
1157
+ subsequently incorporated within the Work.
1158
+
1159
+ 2. Grant of Copyright License. Subject to the terms and conditions of
1160
+ this License, each Contributor hereby grants to You a perpetual,
1161
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1162
+ copyright license to reproduce, prepare Derivative Works of,
1163
+ publicly display, publicly perform, sublicense, and distribute the
1164
+ Work and such Derivative Works in Source or Object form.
1165
+
1166
+ 3. Grant of Patent License. Subject to the terms and conditions of
1167
+ this License, each Contributor hereby grants to You a perpetual,
1168
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1169
+ (except as stated in this section) patent license to make, have made,
1170
+ use, offer to sell, sell, import, and otherwise transfer the Work,
1171
+ where such license applies only to those patent claims licensable
1172
+ by such Contributor that are necessarily infringed by their
1173
+ Contribution(s) alone or by combination of their Contribution(s)
1174
+ with the Work to which such Contribution(s) was submitted. If You
1175
+ institute patent litigation against any entity (including a
1176
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
1177
+ or a Contribution incorporated within the Work constitutes direct
1178
+ or contributory patent infringement, then any patent licenses
1179
+ granted to You under this License for that Work shall terminate
1180
+ as of the date such litigation is filed.
1181
+
1182
+ 4. Redistribution. You may reproduce and distribute copies of the
1183
+ Work or Derivative Works thereof in any medium, with or without
1184
+ modifications, and in Source or Object form, provided that You
1185
+ meet the following conditions:
1186
+
1187
+ (a) You must give any other recipients of the Work or
1188
+ Derivative Works a copy of this License; and
1189
+
1190
+ (b) You must cause any modified files to carry prominent notices
1191
+ stating that You changed the files; and
1192
+
1193
+ (c) You must retain, in the Source form of any Derivative Works
1194
+ that You distribute, all copyright, patent, trademark, and
1195
+ attribution notices from the Source form of the Work,
1196
+ excluding those notices that do not pertain to any part of
1197
+ the Derivative Works; and
1198
+
1199
+ (d) If the Work includes a "NOTICE" text file as part of its
1200
+ distribution, then any Derivative Works that You distribute must
1201
+ include a readable copy of the attribution notices contained
1202
+ within such NOTICE file, excluding those notices that do not
1203
+ pertain to any part of the Derivative Works, in at least one
1204
+ of the following places: within a NOTICE text file distributed
1205
+ as part of the Derivative Works; within the Source form or
1206
+ documentation, if provided along with the Derivative Works; or,
1207
+ within a display generated by the Derivative Works, if and
1208
+ wherever such third-party notices normally appear. The contents
1209
+ of the NOTICE file are for informational purposes only and
1210
+ do not modify the License. You may add Your own attribution
1211
+ notices within Derivative Works that You distribute, alongside
1212
+ or as an addendum to the NOTICE text from the Work, provided
1213
+ that such additional attribution notices cannot be construed
1214
+ as modifying the License.
1215
+
1216
+ You may add Your own copyright statement to Your modifications and
1217
+ may provide additional or different license terms and conditions
1218
+ for use, reproduction, or distribution of Your modifications, or
1219
+ for any such Derivative Works as a whole, provided Your use,
1220
+ reproduction, and distribution of the Work otherwise complies with
1221
+ the conditions stated in this License.
1222
+
1223
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
1224
+ any Contribution intentionally submitted for inclusion in the Work
1225
+ by You to the Licensor shall be under the terms and conditions of
1226
+ this License, without any additional terms or conditions.
1227
+ Notwithstanding the above, nothing herein shall supersede or modify
1228
+ the terms of any separate license agreement you may have executed
1229
+ with Licensor regarding such Contributions.
1230
+
1231
+ 6. Trademarks. This License does not grant permission to use the trade
1232
+ names, trademarks, service marks, or product names of the Licensor,
1233
+ except as required for reasonable and customary use in describing the
1234
+ origin of the Work and reproducing the content of the NOTICE file.
1235
+
1236
+ 7. Disclaimer of Warranty. Unless required by applicable law or
1237
+ agreed to in writing, Licensor provides the Work (and each
1238
+ Contributor provides its Contributions) on an "AS IS" BASIS,
1239
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
1240
+ implied, including, without limitation, any warranties or conditions
1241
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
1242
+ PARTICULAR PURPOSE. You are solely responsible for determining the
1243
+ appropriateness of using or redistributing the Work and assume any
1244
+ risks associated with Your exercise of permissions under this License.
1245
+
1246
+ 8. Limitation of Liability. In no event and under no legal theory,
1247
+ whether in tort (including negligence), contract, or otherwise,
1248
+ unless required by applicable law (such as deliberate and grossly
1249
+ negligent acts) or agreed to in writing, shall any Contributor be
1250
+ liable to You for damages, including any direct, indirect, special,
1251
+ incidental, or consequential damages of any character arising as a
1252
+ result of this License or out of the use or inability to use the
1253
+ Work (including but not limited to damages for loss of goodwill,
1254
+ work stoppage, computer failure or malfunction, or any and all
1255
+ other commercial damages or losses), even if such Contributor
1256
+ has been advised of the possibility of such damages.
1257
+
1258
+ 9. Accepting Warranty or Additional Liability. While redistributing
1259
+ the Work or Derivative Works thereof, You may choose to offer,
1260
+ and charge a fee for, acceptance of support, warranty, indemnity,
1261
+ or other liability obligations and/or rights consistent with this
1262
+ License. However, in accepting such obligations, You may act only
1263
+ on Your own behalf and on Your sole responsibility, not on behalf
1264
+ of any other Contributor, and only if You agree to indemnify,
1265
+ defend, and hold each Contributor harmless for any liability
1266
+ incurred by, or claims asserted against, such Contributor by reason
1267
+ of your accepting any such warranty or additional liability.
1268
+
1269
+ END OF TERMS AND CONDITIONS
1270
+
1271
+ APPENDIX: How to apply the Apache License to your work.
1272
+
1273
+ To apply the Apache License to your work, attach the following
1274
+ boilerplate notice, with the fields enclosed by brackets "[]"
1275
+ replaced with your own identifying information. (Don't include
1276
+ the brackets!) The text should be enclosed in the appropriate
1277
+ comment syntax for the file format. We also recommend that a
1278
+ file or class name and description of purpose be included on the
1279
+ same "printed page" as the copyright notice for easier
1280
+ identification within third-party archives.
1281
+
1282
+ Copyright [yyyy] [name of copyright owner]
1283
+
1284
+ Licensed under the Apache License, Version 2.0 (the "License");
1285
+ you may not use this file except in compliance with the License.
1286
+ You may obtain a copy of the License at
1287
+
1288
+ http://www.apache.org/licenses/LICENSE-2.0
1289
+
1290
+ Unless required by applicable law or agreed to in writing, software
1291
+ distributed under the License is distributed on an "AS IS" BASIS,
1292
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1293
+ See the License for the specific language governing permissions and
1294
+ limitations under the License.
1295
+
1296
1296
  --------------------------------------------------------------------------------
1297
1297
 
1298
1298
  sass and sass_api license:
@@ -1321,7 +1321,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1321
1321
 
1322
1322
  --------------------------------------------------------------------------------
1323
1323
 
1324
- source_map_stack_trace and stream_channel license:
1324
+ source_map_stack_trace license:
1325
1325
 
1326
1326
  Copyright 2015, the Dart project authors. All rights reserved.
1327
1327
  Redistribution and use in source and binary forms, with or without
Binary file
@@ -26,7 +26,7 @@ module Sass
26
26
  end
27
27
 
28
28
  def register(importer)
29
- importer = Structifier.to_struct(importer)
29
+ importer = Structifier.to_struct(importer, :canonicalize, :load, :find_file_url)
30
30
 
31
31
  is_importer = importer.respond_to?(:canonicalize) && importer.respond_to?(:load)
32
32
  is_file_importer = importer.respond_to?(:find_file_url)
@@ -65,7 +65,7 @@ module Sass
65
65
 
66
66
  def import(import_request)
67
67
  importer = @importers_by_id[import_request.importer_id]
68
- importer_result = Structifier.to_struct importer.load(import_request.url)
68
+ importer_result = Structifier.to_struct importer.load(import_request.url), :contents, :syntax, :source_map_url
69
69
 
70
70
  EmbeddedProtocol::InboundMessage::ImportResponse.new(
71
71
  id: import_request.id,
@@ -10,7 +10,7 @@ module Sass
10
10
  attr_reader :logger
11
11
 
12
12
  def initialize(logger)
13
- @logger = Structifier.to_struct(logger)
13
+ @logger = Structifier.to_struct(logger, :debug, :warn)
14
14
  end
15
15
 
16
16
  def log(event)
@@ -132,7 +132,7 @@ module Sass
132
132
  yield
133
133
  @async.await
134
134
  ensure
135
- @connection.disconnect
135
+ @connection&.disconnect
136
136
  end
137
137
  end
138
138
 
@@ -8,13 +8,16 @@ module Sass
8
8
  module Structifier
9
9
  module_function
10
10
 
11
- def to_struct(obj)
11
+ def to_struct(obj, *symbols)
12
12
  return obj unless obj.is_a? Hash
13
13
 
14
14
  struct = Object.new
15
- obj.each do |key, value|
15
+ symbols.each do |key|
16
+ next unless obj.key?(key)
17
+
18
+ value = obj[key]
16
19
  if value.respond_to? :call
17
- struct.define_singleton_method key.to_sym do |*args, **kwargs|
20
+ struct.define_singleton_method key do |*args, **kwargs|
18
21
  if kwargs.empty?
19
22
  value.call(*args)
20
23
  else
@@ -22,7 +25,7 @@ module Sass
22
25
  end
23
26
  end
24
27
  else
25
- struct.define_singleton_method key.to_sym do
28
+ struct.define_singleton_method key do
26
29
  value
27
30
  end
28
31
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  class Embedded
5
- VERSION = '1.54.9'
5
+ VERSION = '1.55.0'
6
6
  end
7
7
  end
@@ -2,5 +2,9 @@
2
2
 
3
3
  module Sass
4
4
  # An exception thrown by Sass Script.
5
- class ScriptError < StandardError; end
5
+ class ScriptError < StandardError
6
+ def initialize(message, name = nil)
7
+ super(name.nil? ? message : "$#{name}: #{message}")
8
+ end
9
+ end
6
10
  end
@@ -44,7 +44,7 @@ module Sass
44
44
  hwb_to_rgb
45
45
  @whiteness = @blackness = nil
46
46
  else
47
- raise error 'Invalid Color'
47
+ raise Sass::ScriptError, 'Invalid Color'
48
48
  end
49
49
  end
50
50
 
@@ -63,8 +63,7 @@ module Sass
63
63
  result = between(number, min, max)
64
64
  return result unless result.nil?
65
65
 
66
- message = "#{number} must be between #{min} and #{max}."
67
- raise Sass::ScriptError, name.nil? ? message : "$#{name}: #{message}"
66
+ raise Sass::ScriptError.new("#{number} must be between #{min} and #{max}.", name)
68
67
  end
69
68
 
70
69
  def hash(number)
@@ -13,7 +13,7 @@ module Sass
13
13
  # @param bracketed [::Boolean]
14
14
  def initialize(contents = [], separator: ',', bracketed: false)
15
15
  if separator.nil? && contents.length > 1
16
- raise error 'A list with more than one element must have an explicit separator'
16
+ raise Sass::ScriptError, 'A list with more than one element must have an explicit separator'
17
17
  end
18
18
 
19
19
  @contents = contents.freeze
@@ -24,12 +24,16 @@ module Sass
24
24
  denominator_units = []
25
25
  when ::Hash
26
26
  numerator_units = unit.fetch(:numerator_units, [])
27
- raise error "invalid numerator_units #{numerator_units.inspect}" unless numerator_units.is_a? Array
27
+ unless numerator_units.is_a? Array
28
+ raise Sass::ScriptError, "invalid numerator_units #{numerator_units.inspect}"
29
+ end
28
30
 
29
31
  denominator_units = unit.fetch(:denominator_units, [])
30
- raise error "invalid denominator_units #{denominator_units.inspect}" unless denominator_units.is_a? Array
32
+ unless denominator_units.is_a? Array
33
+ raise Sass::ScriptError, "invalid denominator_units #{denominator_units.inspect}"
34
+ end
31
35
  else
32
- raise error "invalid unit #{unit.inspect}"
36
+ raise Sass::ScriptError, "invalid unit #{unit.inspect}"
33
37
  end
34
38
 
35
39
  unless denominator_units.empty? && numerator_units.empty?
@@ -105,7 +109,7 @@ module Sass
105
109
  # @return [Number]
106
110
  # @raise [ScriptError]
107
111
  def assert_unitless(name = nil)
108
- raise error "Expected #{self} to have no units", name unless unitless?
112
+ raise Sass::ScriptError.new("Expected #{self} to have no units", name) unless unitless?
109
113
 
110
114
  self
111
115
  end
@@ -125,7 +129,7 @@ module Sass
125
129
  # @return [Number]
126
130
  # @raise [ScriptError]
127
131
  def assert_unit(unit, name = nil)
128
- raise error "Expected #{self} to have unit #{unit.inspect}", name unless unit?(unit)
132
+ raise Sass::ScriptError.new("Expected #{self} to have unit #{unit.inspect}", name) unless unit?(unit)
129
133
 
130
134
  self
131
135
  end
@@ -138,7 +142,7 @@ module Sass
138
142
  # @return [Integer]
139
143
  # @raise [ScriptError]
140
144
  def assert_integer(name = nil)
141
- raise error "#{self} is not an integer", name unless integer?
145
+ raise Sass::ScriptError.new("#{self} is not an integer", name) unless integer?
142
146
 
143
147
  to_i
144
148
  end
@@ -271,7 +275,8 @@ module Sass
271
275
  other: nil,
272
276
  other_name: nil)
273
277
  if other && (other.numerator_units != new_denominator_units && other.denominator_units != new_denominator_units)
274
- raise error "Expect #{other} to have units #{unit_string(new_numerator_units, new_denominator_units).inspect}"
278
+ raise Sass::ScriptError, "Expect #{other} to have units #{unit_string(new_numerator_units,
279
+ new_denominator_units).inspect}"
275
280
  end
276
281
 
277
282
  return value if numerator_units == new_numerator_units && denominator_units == new_denominator_units
@@ -288,19 +293,21 @@ module Sass
288
293
  message << " $#{other_name}:" unless other_name.nil?
289
294
  message << " #{other} have incompatible units"
290
295
  message << " (one has units and the other doesn't)" if unitless? || other_unitless
291
- return error message, name
296
+ return Sass::ScriptError.new(message, name)
292
297
  end
293
298
 
294
- return error "Expected #{self} to have no units", name unless other_unitless
299
+ return Sass::ScriptError.new("Expected #{self} to have no units", name) unless other_unitless
295
300
 
296
301
  if new_numerator_units.length == 1 && new_denominator_units.empty?
297
302
  type = Unit::TYPES_BY_UNIT[new_numerator_units.first]
298
- return error "Expected #{self} to have a #{type} unit (#{Unit::UNITS_BY_TYPE[type].join(', ')})", name
303
+ return Sass::ScriptError.new(
304
+ "Expected #{self} to have a #{type} unit (#{Unit::UNITS_BY_TYPE[type].join(', ')})", name
305
+ )
299
306
  end
300
307
 
301
308
  unit_length = new_numerator_units.length + new_denominator_units.length
302
309
  units = unit_string(new_numerator_units, new_denominator_units)
303
- error "Expected #{self} to have unit#{unit_length > 1 ? 's' : ''} #{units}", name
310
+ Sass::ScriptError.new("Expected #{self} to have unit#{unit_length > 1 ? 's' : ''} #{units}", name)
304
311
  }
305
312
 
306
313
  result = value
@@ -42,10 +42,10 @@ module Sass
42
42
  # @return [Integer]
43
43
  def sass_index_to_string_index(sass_index, name = nil)
44
44
  index = sass_index.assert_number(name).assert_integer(name)
45
- raise error('String index may not be 0', name) if index.zero?
45
+ raise Sass::ScriptError.new('String index may not be 0', name) if index.zero?
46
46
 
47
47
  if index.abs > text.length
48
- raise error("Invalid index #{sass_index} for a string with #{text.length} characters", name)
48
+ raise Sass::ScriptError.new("Invalid index #{sass_index} for a string with #{text.length} characters", name)
49
49
  end
50
50
 
51
51
  index.negative? ? text.length + index : index - 1
data/lib/sass/value.rb CHANGED
@@ -57,52 +57,52 @@ module Sass
57
57
  # @return [Boolean]
58
58
  # @raise [ScriptError]
59
59
  def assert_boolean(name = nil)
60
- raise error("#{self} is not a boolean", name)
60
+ raise Sass::ScriptError.new("#{self} is not a boolean", name)
61
61
  end
62
62
 
63
63
  # @raise [ScriptError]
64
64
  def assert_calculation(name = nil)
65
- raise error("#{self} is not a calculation", name)
65
+ raise Sass::ScriptError.new("#{self} is not a calculation", name)
66
66
  end
67
67
 
68
68
  # @return [Color]
69
69
  # @raise [ScriptError]
70
70
  def assert_color(name = nil)
71
- raise error("#{self} is not a color", name)
71
+ raise Sass::ScriptError.new("#{self} is not a color", name)
72
72
  end
73
73
 
74
74
  # @return [Function]
75
75
  # @raise [ScriptError]
76
76
  def assert_function(name = nil)
77
- raise error("#{self} is not a function", name)
77
+ raise Sass::ScriptError.new("#{self} is not a function", name)
78
78
  end
79
79
 
80
80
  # @return [Map]
81
81
  # @raise [ScriptError]
82
82
  def assert_map(name = nil)
83
- raise error("#{self} is not a map", name)
83
+ raise Sass::ScriptError.new("#{self} is not a map", name)
84
84
  end
85
85
 
86
86
  # @return [Number]
87
87
  # @raise [ScriptError]
88
88
  def assert_number(name = nil)
89
- raise error("#{self} is not a number", name)
89
+ raise Sass::ScriptError.new("#{self} is not a number", name)
90
90
  end
91
91
 
92
92
  # @return [String]
93
93
  # @raise [ScriptError]
94
94
  def assert_string(name = nil)
95
- raise error("#{self} is not a string", name)
95
+ raise Sass::ScriptError.new("#{self} is not a string", name)
96
96
  end
97
97
 
98
98
  # @param sass_index [Number]
99
99
  # @return [Integer]
100
100
  def sass_index_to_array_index(sass_index, name = nil)
101
101
  index = sass_index.assert_number(name).assert_integer(name)
102
- raise error('List index may not be 0', name) if index.zero?
102
+ raise Sass::ScriptError.new('List index may not be 0', name) if index.zero?
103
103
 
104
104
  if index.abs > to_a_length
105
- raise error("Invalid index #{sass_index} for a list with #{to_a_length} elements", name)
105
+ raise Sass::ScriptError.new("Invalid index #{sass_index} for a list with #{to_a_length} elements", name)
106
106
  end
107
107
 
108
108
  index.negative? ? to_a_length + index : index - 1
@@ -113,10 +113,6 @@ module Sass
113
113
  def to_a_length
114
114
  1
115
115
  end
116
-
117
- def error(message, name = nil)
118
- Sass::ScriptError.new name.nil? ? message : "$#{name}: #{message}"
119
- end
120
116
  end
121
117
  end
122
118
 
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.54.9
4
+ version: 1.55.0
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-08 00:00:00.000000000 Z
11
+ date: 2022-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.14.0
75
+ version: 1.15.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.14.0
82
+ version: 1.15.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop-rake
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 2.12.1
103
+ version: 2.13.1
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 2.12.1
110
+ version: 2.13.1
111
111
  description: A Ruby library that will communicate with Embedded Dart Sass using the
112
112
  Embedded Sass protocol.
113
113
  email:
@@ -161,8 +161,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
161
161
  licenses:
162
162
  - MIT
163
163
  metadata:
164
- documentation_uri: https://rubydoc.info/gems/sass-embedded/1.54.9
165
- source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.54.9
164
+ documentation_uri: https://rubydoc.info/gems/sass-embedded/1.55.0
165
+ source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.55.0
166
166
  funding_uri: https://github.com/sponsors/ntkme
167
167
  post_install_message:
168
168
  rdoc_options: []