{"id":15041579,"url":"https://github.com/sass-contrib/sassc-embedded-shim-ruby","last_synced_at":"2025-04-06T00:09:28.001Z","repository":{"id":37854085,"uuid":"472135360","full_name":"sass-contrib/sassc-embedded-shim-ruby","owner":"sass-contrib","description":":gem: A Ruby shim for SassC that will communicate with Embedded Dart Sass using the Embedded Sass protocol","archived":false,"fork":false,"pushed_at":"2025-03-26T14:50:42.000Z","size":307,"stargazers_count":20,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T23:09:38.344Z","etag":null,"topics":["dart-sass","rails","ruby","sass","sass-embedded","sassc","sassc-rails","scss","sprockets","sprockets-rails"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/sassc-embedded","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sass-contrib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-21T00:13:28.000Z","updated_at":"2025-03-26T14:50:45.000Z","dependencies_parsed_at":"2023-09-22T21:17:42.006Z","dependency_job_id":"f99752cc-74d4-4765-bc01-56664ed02322","html_url":"https://github.com/sass-contrib/sassc-embedded-shim-ruby","commit_stats":{"total_commits":351,"total_committers":2,"mean_commits":175.5,"dds":0.2535612535612536,"last_synced_commit":"0701d56a9624425e6df49ccde2fd291bd7820a16"},"previous_names":["sass-contrib/sassc-embedded-shim-ruby","ntkme/sassc-embedded-shim-ruby"],"tags_count":68,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sass-contrib%2Fsassc-embedded-shim-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sass-contrib%2Fsassc-embedded-shim-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sass-contrib%2Fsassc-embedded-shim-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sass-contrib%2Fsassc-embedded-shim-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sass-contrib","download_url":"https://codeload.github.com/sass-contrib/sassc-embedded-shim-ruby/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415967,"owners_count":20935387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart-sass","rails","ruby","sass","sass-embedded","sassc","sassc-rails","scss","sprockets","sprockets-rails"],"created_at":"2024-09-24T20:46:14.836Z","updated_at":"2025-04-06T00:09:27.977Z","avatar_url":"https://github.com/sass-contrib.png","language":"Ruby","readme":"# Embedded Sass Shim for SassC Ruby\n\n[![build](https://github.com/sass-contrib/sassc-embedded-shim-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/sass-contrib/sassc-embedded-shim-ruby/actions/workflows/build.yml)\n[![gem](https://badge.fury.io/rb/sassc-embedded.svg)](https://rubygems.org/gems/sassc-embedded)\n\nUse `sass-embedded` with SassC Ruby!\n\nThis library shims [`sassc`](https://github.com/sass/sassc-ruby) with the [`sass-embedded`](https://github.com/sass-contrib/sass-embedded-host-ruby) implementation.\n\n## Which Sass implementation should I use for my Ruby project?\n\n- [`sass-embedded`](https://github.com/sass-contrib/sass-embedded-host-ruby) is recommended for all projects. It is compatible with:\n  - [`dartsass-rails \u003e=0.5.0`](https://github.com/rails/dartsass-rails)\n  - [`haml \u003e=6.0.9`](https://github.com/haml/haml)\n  - [`silm \u003e=5.2.0`](https://github.com/slim-template/slim)\n  - [`sinatra \u003e=3.1.0`](https://github.com/sinatra/sinatra)\n  - [`tilt \u003e=2.0.11`](https://github.com/jeremyevans/tilt)\n- [`sassc-embedded`](https://github.com/sass-contrib/sassc-embedded-shim-ruby) is recommended for existing projects still using `sassc` or `sprockets`. It is compatible with:\n  - [`dartsass-sprockets`](https://github.com/tablecheck/dartsass-sprockets)\n  - [`sassc`](https://github.com/sass/sassc-ruby)\n  - [`sassc-rails`](https://github.com/sass/sassc-rails)\n  - [`sprockets`](https://github.com/rails/sprockets)\n  - [`sprockets-rails`](https://github.com/rails/sprockets-rails)\n- [`sassc`](https://github.com/sass/sassc-ruby) [has reached end-of-life](https://github.com/sass/sassc-ruby/blob/HEAD/README.md#sassc-has-reached-end-of-life).\n- [`sass`](https://github.com/sass/ruby-sass) [has reached end-of-life](https://sass-lang.com/blog/ruby-sass-is-unsupported/).\n\n## Install\n\nAdd this line to your application's Gemfile:\n\n``` ruby\ngem 'sassc-embedded'\n```\n\nAnd then execute:\n\n``` sh\nbundle\n```\n\nOr install it yourself as:\n\n``` sh\ngem install sassc-embedded\n```\n\n## Usage\n\nThis shim utilizes `sass-embedded` to allow you to compile SCSS or SASS syntax to CSS. To compile, use a `SassC::Engine`, e.g.:\n\n``` ruby\nrequire 'sassc-embedded'\n\nSassC::Engine.new(sass, style: :compressed).render\n```\n\nMost of the original `sassc` options are supported with no behavior difference unless noted otherwise:\n\n- `:filename`\n- `:quiet`\n- ~~`:precision`~~ - ignored\n- ~~`:line_comments`~~ - ignored\n- `:syntax`\n- `:source_map_embed`\n- `:source_map_contents`\n- `:omit_source_map_url`\n- `:source_map_file`\n- `:importer`\n- `:functions`\n- `:style` - ~~`:nested`~~ and ~~`:compact`~~ behave as `:expanded`\n- `:load_paths`\n\nSee [`sassc-ruby` source code](https://github.com/sass/sassc-ruby/blob/master/lib/sassc/engine.rb) and [`libsass` documentation](https://github.com/sass/libsass/blob/master/docs/api-context.md) for details.\n\nAdditional `sass-embedded` options are supported:\n\n- `:charset`\n- `:importers`\n- `:alert_ascii`\n- `:alert_color`\n- `:fatal_deprecations`\n- `:future_deprecations`\n- `:logger`\n- `:quiet_deps`\n- `:silence_deprecations`\n- `:verbose`\n\nSee [`sass-embedded` documentation](https://rubydoc.info/gems/sass-embedded/Sass#compile_string-class_method) for details.\n\n## Troubleshooting\n\n### The original `sassc` gem is still being used instead of `sassc-embedded`\n\nWhen launching an application via `bundle exec`, it puts `sassc-embedded` at higher priority than `sassc` in `$LOAD_PATH`. You can verify the order of `$LOAD_PATH` with the following command:\n\n``` ruby\nbundle exec ruby -e 'puts $LOAD_PATH'\n```\n\nIf you see `sassc` has higher priority than `sassc-embedded`, try remove `sassc`:\n\n```\nbundle remove sassc\n```\n\nIf your application has a transitive dependency on `sassc` that cannot be removed, you can use one of the following workarounds.\n\n#### Workaround One\n\nAdd this line to your application's Gemfile:\n\n``` ruby\ngem 'sassc', github: 'sass/sassc-ruby', ref: 'refs/pull/233/head'\n```\n\nAnd then execute:\n\n``` sh\nbundle\n```\n\nThe fork of `sassc` at https://github.com/sass/sassc-ruby/pull/233 will load the shim whenever `require 'sassc'` is invoked, meaning no other code changes needed in your application.\n\n#### Workaround Two\n\nAdd this line to your application's code:\n\n``` ruby\nrequire 'sassc-embedded'\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsass-contrib%2Fsassc-embedded-shim-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsass-contrib%2Fsassc-embedded-shim-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsass-contrib%2Fsassc-embedded-shim-ruby/lists"}