{"id":17252166,"url":"https://github.com/eagletmt/s3_assets_uploader","last_synced_at":"2025-10-30T21:22:39.991Z","repository":{"id":31273652,"uuid":"34835507","full_name":"eagletmt/s3_assets_uploader","owner":"eagletmt","description":"Upload Rails assets to S3","archived":false,"fork":false,"pushed_at":"2021-04-05T09:06:59.000Z","size":24,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T16:29:55.140Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/eagletmt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-30T05:11:55.000Z","updated_at":"2022-11-09T21:06:50.000Z","dependencies_parsed_at":"2022-09-09T07:40:15.159Z","dependency_job_id":null,"html_url":"https://github.com/eagletmt/s3_assets_uploader","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagletmt%2Fs3_assets_uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagletmt%2Fs3_assets_uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagletmt%2Fs3_assets_uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagletmt%2Fs3_assets_uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eagletmt","download_url":"https://codeload.github.com/eagletmt/s3_assets_uploader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248828488,"owners_count":21168053,"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-10-15T06:53:13.819Z","updated_at":"2025-10-30T21:22:39.896Z","avatar_url":"https://github.com/eagletmt.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# S3AssetsUploader\n[![Gem Version](https://badge.fury.io/rb/s3_assets_uploader.svg)](http://badge.fury.io/rb/s3_assets_uploader)\n[![Build Status](https://travis-ci.org/eagletmt/s3_assets_uploader.svg?branch=master)](https://travis-ci.org/eagletmt/s3_assets_uploader)\n\nUpload Rails assets to S3.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 's3_assets_uploader'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install s3_assets_uploader\n\n## Usage\n\nIn Rakefile:\n\n```ruby\nrequire 's3_assets_uploader/rake_task'\nnamespace :assets do\n  S3AssetsUploader::RakeTask.new(:upload) do |config|\n    config.s3_client = Aws::S3::Client.new(region: 'ap-northeast-1')\n    config.bucket = 'some-bucket'\n  end\nend\n```\n\n### Configurations\n- `config.s3_client`\n    - Aws::S3::Client instance to upload files\n    - Default: `Aws::S3::Client.new`\n- `config.bucket`\n    - S3 bucket name\n    - **Required**\n- `config.assets_path`\n    - Local path to assets directory\n    - Default: `\"public/assets\"`\n- `config.assets_prefix`\n    - Remote assets path prefix\n    - If set, public/assets/foo.png will be uploaded to `\"#{assets_prefix}/assets/foo.png\"`\n    - Default: `nil`\n- `config.additional_paths`\n    - Additional directories to upload\n    - Default: `[]`\n- `config.cache_control`\n    - cache_control option for S3\n    - Default: `\"max-age=2592000, public\"`\n- `config.content_type`\n    - Set custom handler to determine content-type of the object\n    - When the handler returns nil, the content-type is guessed from its extension\n    - Default: `nil`\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\n1. Fork it ( https://github.com/eagletmt/s3_assets_uploader/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feagletmt%2Fs3_assets_uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feagletmt%2Fs3_assets_uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feagletmt%2Fs3_assets_uploader/lists"}