{"id":19787215,"url":"https://github.com/logandk/sprockets-compressor","last_synced_at":"2025-04-30T23:33:12.901Z","repository":{"id":542254,"uuid":"172176","full_name":"logandk/sprockets-compressor","owner":"logandk","description":"Minified Sprockets Javascript output","archived":false,"fork":false,"pushed_at":"2009-11-01T21:45:12.000Z","size":880,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-03T03:16:58.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/logandk.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-04-09T19:16:42.000Z","updated_at":"2023-03-10T23:02:58.000Z","dependencies_parsed_at":"2022-07-16T14:00:39.564Z","dependency_job_id":null,"html_url":"https://github.com/logandk/sprockets-compressor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logandk%2Fsprockets-compressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logandk%2Fsprockets-compressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logandk%2Fsprockets-compressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logandk%2Fsprockets-compressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logandk","download_url":"https://codeload.github.com/logandk/sprockets-compressor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224227195,"owners_count":17276756,"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":[],"created_at":"2024-11-12T06:21:48.994Z","updated_at":"2024-11-12T06:21:49.664Z","avatar_url":"https://github.com/logandk.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"sprockets-compressor - Minified Sprockets output\n=================================================\n\nThis is a Ruby on Rails plugin, which passes Sprockets output through YUI Javascript compressor.\n\n\n\nInstallation\n============\n\nAs a Rails Plugin\n-----------------\n\nUse this to install as a plugin in a Ruby on Rails app:\n\n\t$ script/plugin install git://github.com/logandk/sprockets-compressor.git\n\n\nAs a Rails Plugin (using git submodules)\n----------------------------------------\n\nUse this if you prefer the idea of being able to easily switch between using edge or a tagged version:\n\n\t$ git submodule add git://github.com/logandk/sprockets-compressor.git vendor/plugins/sprockets-compressor\n\n\n\nUsage\n=====\n\nTo enable compression, set `Sprockets.compression = true`. If you want to enable compression for a specific environment, say `production`, put this in `config/environments/production.rb`:\n\n\tconfig.after_initialize do\n\t  Sprockets.compression = true\n\tend\n\nThis plugin simply overrides the `save_to` method of the `Sprockets::Concatenation` class, to pass the output through *YUI Compressor*. When you have enabled compression\nSprockets will automatically create compressed javascript output when the `save_to` method is called.\n\n\tsecretary = Sprockets::Secretary.new({ ... })\n\tsecretary.concatenation.save_to(\"file.js\")\n\nIn the above example, `file.js` would be a compressed javascript file.\n\n\n\nCredits\n=======\n[YUI Compressor](http://developer.yahoo.com/yui/compressor/) is developed by Yahoo. [Sprockets](http://github.com/sstephenson/sprockets/tree/master) is developed by Sam Stephenson.\n\nCopyright (c) 2009 Logan Raarup, released under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogandk%2Fsprockets-compressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogandk%2Fsprockets-compressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogandk%2Fsprockets-compressor/lists"}