sass-embedded 1.74.1-x86_64-cygwin

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +20 -0
  3. data/README.md +48 -0
  4. data/exe/sass +21 -0
  5. data/ext/sass/cli.rb +12 -0
  6. data/ext/sass/dart-sass/sass.bat +7 -0
  7. data/ext/sass/dart-sass/src/LICENSE +1687 -0
  8. data/ext/sass/dart-sass/src/dart.exe +0 -0
  9. data/ext/sass/dart-sass/src/sass.snapshot +0 -0
  10. data/ext/sass/embedded_sass_pb.rb +63 -0
  11. data/lib/sass/calculation_value/calculation_operation.rb +49 -0
  12. data/lib/sass/calculation_value.rb +22 -0
  13. data/lib/sass/canonicalize_context.rb +21 -0
  14. data/lib/sass/compile_result.rb +24 -0
  15. data/lib/sass/compiler/channel.rb +68 -0
  16. data/lib/sass/compiler/connection.rb +92 -0
  17. data/lib/sass/compiler/dispatcher.rb +115 -0
  18. data/lib/sass/compiler/host/function_registry.rb +87 -0
  19. data/lib/sass/compiler/host/importer_registry.rb +137 -0
  20. data/lib/sass/compiler/host/logger_registry.rb +55 -0
  21. data/lib/sass/compiler/host/protofier.rb +390 -0
  22. data/lib/sass/compiler/host/structifier.rb +37 -0
  23. data/lib/sass/compiler/host.rb +226 -0
  24. data/lib/sass/compiler/varint.rb +39 -0
  25. data/lib/sass/compiler.rb +212 -0
  26. data/lib/sass/elf.rb +276 -0
  27. data/lib/sass/embedded/version.rb +7 -0
  28. data/lib/sass/embedded.rb +107 -0
  29. data/lib/sass/embedded_protocol.rb +10 -0
  30. data/lib/sass/exception.rb +69 -0
  31. data/lib/sass/fork_tracker.rb +51 -0
  32. data/lib/sass/logger/silent.rb +28 -0
  33. data/lib/sass/logger/source_location.rb +22 -0
  34. data/lib/sass/logger/source_span.rb +28 -0
  35. data/lib/sass/node_package_importer.rb +17 -0
  36. data/lib/sass/serializer.rb +36 -0
  37. data/lib/sass/value/argument_list.rb +37 -0
  38. data/lib/sass/value/boolean.rb +52 -0
  39. data/lib/sass/value/calculation.rb +90 -0
  40. data/lib/sass/value/color.rb +253 -0
  41. data/lib/sass/value/function.rb +51 -0
  42. data/lib/sass/value/fuzzy_math.rb +80 -0
  43. data/lib/sass/value/list.rb +79 -0
  44. data/lib/sass/value/map.rb +71 -0
  45. data/lib/sass/value/mixin.rb +36 -0
  46. data/lib/sass/value/null.rb +48 -0
  47. data/lib/sass/value/number/unit.rb +186 -0
  48. data/lib/sass/value/number.rb +366 -0
  49. data/lib/sass/value/string.rb +61 -0
  50. data/lib/sass/value.rb +136 -0
  51. data/lib/sass-embedded.rb +4 -0
  52. metadata +120 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 967c985ded6e74a495146f33f713e682dda834a975ade6b7c36a93543b34555d
4
+ data.tar.gz: ae0403eb947a8247d802c2bca7c17b5b8c4a7a0dff74c9552c1864654ac57c99
5
+ SHA512:
6
+ metadata.gz: 60aa874828efb957fdaee8e48c3f3a6f1f1e53a9ccd499747f3a1009b9348089ab19385e69fe70c97bb5fda3e5a2d09b0bcfd92f8d9d89eee3016e20a741bfa6
7
+ data.tar.gz: e2d146cfadaf0cff871401c4e810819e6f2d4b4a1d16848ec6a55770ba871a83720863b3901c29d0bb7e49da16087bfe630eb8b80dbaea7b9e3a29686a3a4a14
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2022, なつき
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # Embedded Sass Host for Ruby
2
+
3
+ [![build](https://github.com/sass-contrib/sass-embedded-host-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/sass-contrib/sass-embedded-host-ruby/actions/workflows/build.yml)
4
+ [![gem](https://badge.fury.io/rb/sass-embedded.svg)](https://rubygems.org/gems/sass-embedded)
5
+
6
+ This is a Ruby library that implements the host side of the [Embedded Sass protocol](https://github.com/sass/sass/blob/HEAD/spec/embedded-protocol.md).
7
+
8
+ It exposes a Ruby API for Sass that's backed by a native [Dart Sass](https://sass-lang.com/dart-sass) executable.
9
+
10
+ ## Install
11
+
12
+ ``` sh
13
+ gem install sass-embedded
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ The Ruby API provides two entrypoints for compiling Sass to CSS.
19
+
20
+ - `Sass.compile` takes a path to a Sass file and return the result of compiling that file to CSS.
21
+
22
+ ``` ruby
23
+ require 'sass-embedded'
24
+
25
+ result = Sass.compile('style.scss')
26
+ puts result.css
27
+
28
+ compressed = Sass.compile('style.scss', style: :compressed)
29
+ puts compressed.css
30
+ ```
31
+
32
+ - `Sass.compile_string` takes a string that represents the contents of a Sass file and return the result of compiling that file to CSS.
33
+
34
+ ``` ruby
35
+ require 'sass-embedded'
36
+
37
+ result = Sass.compile_string('h1 { font-size: 40px; }')
38
+ puts result.css
39
+
40
+ compressed = Sass.compile_string('h1 { font-size: 40px; }', style: :compressed)
41
+ puts compressed.css
42
+ ```
43
+
44
+ See [rubydoc.info/gems/sass-embedded/Sass](https://rubydoc.info/gems/sass-embedded/Sass) for full API documentation.
45
+
46
+ ---
47
+
48
+ Disclaimer: this is not an official Google product.
data/exe/sass ADDED
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require_relative '../ext/sass/cli'
5
+
6
+ module Sass
7
+ # The `sass` command line interface
8
+ class CLI
9
+ begin
10
+ Kernel.exec(*COMMAND, *ARGV)
11
+ rescue Errno::ENOENT
12
+ require_relative '../lib/sass/elf'
13
+
14
+ raise if ELF::INTERPRETER.nil?
15
+
16
+ Kernel.exec(ELF::INTERPRETER, *COMMAND, *ARGV)
17
+ end
18
+ end
19
+
20
+ private_constant :CLI
21
+ end
data/ext/sass/cli.rb ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sass
4
+ class CLI
5
+ COMMAND = [
6
+ File.absolute_path('dart-sass/src/dart.exe', __dir__).freeze,
7
+ File.absolute_path('dart-sass/src/sass.snapshot', __dir__).freeze
8
+ ].freeze
9
+ end
10
+
11
+ private_constant :CLI
12
+ end
@@ -0,0 +1,7 @@
1
+ @echo off
2
+ REM This script drives the standalone dart-sass package, which bundles together a
3
+ REM Dart executable and a snapshot of dart-sass.
4
+
5
+ set SCRIPTPATH=%~dp0
6
+ set arguments=%*
7
+ "%SCRIPTPATH%\src\dart.exe" "%SCRIPTPATH%\src\sass.snapshot" %arguments%