{"id":20866530,"url":"https://github.com/ericboehs/heroku-buildpack-ruby-yarn-cache","last_synced_at":"2025-10-10T04:05:03.639Z","repository":{"id":66520230,"uuid":"177914301","full_name":"ericboehs/heroku-buildpack-ruby-yarn-cache","owner":"ericboehs","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-20T13:51:21.000Z","size":6159,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-12T15:30:25.356Z","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/ericboehs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"support/s3/hmac","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-27T03:51:16.000Z","updated_at":"2019-03-27T05:19:44.000Z","dependencies_parsed_at":"2023-02-25T14:45:47.031Z","dependency_job_id":null,"html_url":"https://github.com/ericboehs/heroku-buildpack-ruby-yarn-cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ericboehs/heroku-buildpack-ruby-yarn-cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericboehs%2Fheroku-buildpack-ruby-yarn-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericboehs%2Fheroku-buildpack-ruby-yarn-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericboehs%2Fheroku-buildpack-ruby-yarn-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericboehs%2Fheroku-buildpack-ruby-yarn-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericboehs","download_url":"https://codeload.github.com/ericboehs/heroku-buildpack-ruby-yarn-cache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericboehs%2Fheroku-buildpack-ruby-yarn-cache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002678,"owners_count":26083440,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-18T05:58:25.484Z","updated_at":"2025-10-10T04:05:03.598Z","avatar_url":"https://github.com/ericboehs.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Heroku Buildpack for Ruby\n![ruby](https://cloud.githubusercontent.com/assets/51578/13712725/3c6b3368-e793-11e5-83c1-728440111358.png)\n\nThis is a [Heroku Buildpack](http://devcenter.heroku.com/articles/buildpacks) for Ruby, Rack, and Rails apps. It uses [Bundler](https://bundler.io) for dependency management.\n\nThis buildpack requires 64-bit Linux.\n\n## Usage\n\n### Ruby\n\nExample Usage:\n\n    $ ls\n    Gemfile Gemfile.lock\n\n    $ heroku create --buildpack https://github.com/heroku/heroku-buildpack-ruby.git\n\n    $ git push heroku master\n    ...\n    -----\u003e Heroku receiving push\n    -----\u003e Fetching custom buildpack\n    -----\u003e Ruby app detected\n    -----\u003e Installing dependencies using Bundler version 1.1.rc\n           Running: bundle install --without development:test --path vendor/bundle --deployment\n           Fetching gem metadata from http://rubygems.org/..\n           Installing rack (1.3.5)\n           Using bundler (1.1.rc)\n           Your bundle is complete! It was installed into ./vendor/bundle\n           Cleaning up the bundler cache.\n    -----\u003e Discovering process types\n           Procfile declares types -\u003e (none)\n           Default types for Ruby  -\u003e console, rake\n\nThe buildpack will detect your app as Ruby if it has a `Gemfile` and `Gemfile.lock` files in the root directory. It will then proceed to run `bundle install` after setting up the appropriate environment for [ruby](http://ruby-lang.org) and [Bundler](https://bundler.io).\n\n#### Bundler\n\nFor non-windows `Gemfile.lock` files, the `--deployment` flag will be used. In the case of windows, the Gemfile.lock will be deleted and Bundler will do a full resolve so native gems are handled properly. The `vendor/bundle` directory is cached between builds to allow for faster `bundle install` times. `bundle clean` is used to ensure no stale gems are stored between builds.\n\n### Rails 2\n\nExample Usage:\n\n    $ ls\n    app  config  db  doc  Gemfile  Gemfile.lock  lib  log  public  Rakefile  README  script  test  tmp  vendor\n\n    $ ls config/environment.rb\n    config/environment.rb\n\n    $ heroku create --buildpack https://github.com/heroku/heroku-buildpack-ruby.git\n\n    $ git push heroku master\n    ...\n    -----\u003e Heroku receiving push\n    -----\u003e Ruby/Rails app detected\n    -----\u003e Installing dependencies using Bundler version 1.1.rc\n    ...\n    -----\u003e Writing config/database.yml to read from DATABASE_URL\n    -----\u003e Rails plugin injection\n           Injecting rails_log_stdout\n    -----\u003e Discovering process types\n           Procfile declares types      -\u003e (none)\n           Default types for Ruby/Rails -\u003e console, rake, web, worker\n\nThe buildpack will detect your app as a Rails 2 app if it has a `environment.rb` file in the `config`  directory.\n\n#### Rails Log STDOUT\nA [rails_log_stdout](http://github.com/ddollar/rails_log_stdout) is installed by default so Rails' logger will log to STDOUT and picked up by Heroku's [logplex](http://github.com/heroku/logplex).\n\n#### Auto Injecting Plugins\n\nAny vendored plugin can be stopped from being installed by creating the directory it's installed to in the slug. For instance, to prevent rails_log_stdout plugin from being injected, add `vendor/plugins/rails_log_stdout/.gitkeep` to your git repo.\n\n### Rails 3\n\nExample Usage:\n\n    $ ls\n    app  config  config.ru  db  doc  Gemfile  Gemfile.lock  lib  log  Procfile  public  Rakefile  README  script  tmp  vendor\n\n    $ ls config/application.rb\n    config/application.rb\n\n    $ heroku create --buildpack https://github.com/heroku/heroku-buildpack-ruby.git\n\n    $ git push heroku master\n    -----\u003e Heroku receiving push\n    -----\u003e Ruby/Rails app detected\n    -----\u003e Installing dependencies using Bundler version 1.1.rc\n           Running: bundle install --without development:test --path vendor/bundle --deployment\n           ...\n    -----\u003e Writing config/database.yml to read from DATABASE_URL\n    -----\u003e Preparing app for Rails asset pipeline\n           Running: rake assets:precompile\n    -----\u003e Rails plugin injection\n           Injecting rails_log_stdout\n           Injecting rails3_serve_static_assets\n    -----\u003e Discovering process types\n           Procfile declares types      -\u003e web\n           Default types for Ruby/Rails -\u003e console, rake, worker\n\nThe buildpack will detect your apps as a Rails 3 app if it has an `application.rb` file in the `config` directory.\n\n#### Assets\n\nTo enable static assets being served on the dyno, [rails3_serve_static_assets](http://github.com/pedro/rails3_serve_static_assets) is installed by default. If the [execjs gem](http://github.com/sstephenson/execjs) is detected then [node.js](http://github.com/joyent/node) will be vendored. The `assets:precompile` rake task will get run if no `public/manifest.yml` is detected.  See [this article](http://devcenter.heroku.com/articles/rails31_heroku_cedar) on how rails 3.1 works on cedar.\n\n## Documentation\n\nFor more information about using Ruby and buildpacks on Heroku, see these Dev Center articles:\n\n- [Heroku Ruby Support](https://devcenter.heroku.com/articles/ruby-support)\n- [Getting Started with Ruby on Heroku](https://devcenter.heroku.com/articles/getting-started-with-ruby)\n- [Getting Started with Rails 4 on Heroku](https://devcenter.heroku.com/articles/getting-started-with-rails4)\n- [Buildpacks](https://devcenter.heroku.com/articles/buildpacks)\n- [Buildpack API](https://devcenter.heroku.com/articles/buildpack-api)\n\n## Hacking\n\nTo use this buildpack, fork it on Github.  Push up changes to your fork, then create a test app with `--buildpack \u003cyour-github-url\u003e` and push to it.\n\nTo change the vendored binaries for Bundler, [Node.js](http://github.com/joyent/node), and rails plugins, use the rake tasks provided by the `Rakefile`. You'll need an S3-enabled AWS account and a bucket to store your binaries in as well as the [vulcan](http://github.com/heroku/vulcan) gem to build the binaries on heroku.\n\nFor example, you can change the vendored version of Bundler to 1.1.rc.\n\nFirst you'll need to build a Heroku-compatible version of Node.js:\n\n    $ export AWS_ID=xxx AWS_SECRET=yyy S3_BUCKET=zzz\n    $ s3 create $S3_BUCKET\n    $ rake gem:install[bundler,1.1.rc]\n\nOpen `lib/language_pack/ruby.rb` in your editor, and change the following line:\n\n    BUNDLER_VERSION = \"1.11.2\"\n\nOpen `lib/language_pack/base.rb` in your editor, and change the following line:\n\n    VENDOR_URL = \"https://s3.amazonaws.com/zzz\"\n\nCommit and push the changes to your buildpack to your Github fork, then push your sample app to Heroku to test.  You should see:\n\n    -----\u003e Installing dependencies using Bundler version 1.1.rc\n\nNOTE: You'll need to vendor the plugins, node, Bundler, and libyaml by running the rake tasks for the buildpack to work properly.\n\n### Testing\n\nThe tests on this buildpack are written in Rspec to allow the use of\n`focused: true`. Parallelization of testing is provided by\nhttps://github.com/grosser/parallel_tests this lib spins up an arbitrary\nnumber of processes and running a different test file in each process,\nit does not parallelize tests within a test file. To run the tests: clone the repo, then `bundle install` then clone the test fixtures by running:\n\n```sh\n$ bundle exec hatchet install\n```\n\nthen go to [hatchet](https://github.com/heroku/hatchet) repo and follow the\ninstructions to set it up.\n\nNow run the tests:\n\n```sh\n$ bundle exec parallel_rspec -n 6 spec/\n```\n\nIf you don't want to run them in parallel you can still:\n\n```sh\n$ bundle exec rake spec\n```\n\nNow go take a nap or do something for a really long time.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericboehs%2Fheroku-buildpack-ruby-yarn-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericboehs%2Fheroku-buildpack-ruby-yarn-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericboehs%2Fheroku-buildpack-ruby-yarn-cache/lists"}