{"id":17101169,"url":"https://github.com/doabit/activestorage_upyun","last_synced_at":"2026-03-14T06:31:05.476Z","repository":{"id":28348753,"uuid":"118203379","full_name":"doabit/activestorage_upyun","owner":"doabit","description":"Upyun service for activestorage","archived":false,"fork":false,"pushed_at":"2025-02-03T12:07:29.000Z","size":81,"stargazers_count":11,"open_issues_count":8,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T23:55:26.996Z","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/doabit.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-20T03:04:40.000Z","updated_at":"2025-02-08T06:09:07.000Z","dependencies_parsed_at":"2024-10-14T15:34:14.882Z","dependency_job_id":null,"html_url":"https://github.com/doabit/activestorage_upyun","commit_stats":{"total_commits":32,"total_committers":4,"mean_commits":8.0,"dds":0.40625,"last_synced_commit":"129bb2bed1ef0d52d39dc340899ef0868c4cbf1a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doabit%2Factivestorage_upyun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doabit%2Factivestorage_upyun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doabit%2Factivestorage_upyun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doabit%2Factivestorage_upyun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doabit","download_url":"https://codeload.github.com/doabit/activestorage_upyun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647232,"owners_count":21139083,"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-14T15:24:09.006Z","updated_at":"2026-03-14T06:31:05.176Z","avatar_url":"https://github.com/doabit.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ActivestorageUpyun\nUpyun service for activestorage.\n\n## Installation\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'activestorage_upyun', require: false\n```\n\nSet up upyun storage service in config/storage.yml:\n\n```yml\nupyun:\n  service: Upyun\n  bucket: \u003c%= ENV['UPYUN_BUCKET'] %\u003e\n  operator: \u003c%= ENV['UPYUN_OPERATOR'] %\u003e\n  password: \u003c%= ENV['UPYUN_PASSWORD'] %\u003e\n  host: \u003c%= ENV['UPYUN_HOST'] %\u003e\n  folder: \u003c%= ENV['UPYUN_FOLDER'] %\u003e\n```\n\nSet up activestorage service:\n\n```ruby\nconfig.active_storage.service = :upyun\n```\n\nUse for image url\n\n```erb\n\u003c%= image_tag @user.avatar.service_url %\u003e\n```\n\nOr add thumb version named `webpw200`\n\n```erb\n\u003c%= image_tag @user.avatar.service_url(params: {process: 'webpw200'}) %\u003e\n```\n\nthumb version use `!` as default identifier, if you want to use `_` as identifier, you can add `identifier` option\n\n```yml\nupyun:\n  service: Upyun\n  bucket: \u003c%= ENV['UPYUN_BUCKET'] %\u003e\n  operator: \u003c%= ENV['UPYUN_OPERATOR'] %\u003e\n  password: \u003c%= ENV['UPYUN_PASSWORD'] %\u003e\n  host: \u003c%= ENV['UPYUN_HOST'] %\u003e\n  folder: \u003c%= ENV['UPYUN_FOLDER'] %\u003e\n  identifier: _\n```\n\n## License\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoabit%2Factivestorage_upyun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoabit%2Factivestorage_upyun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoabit%2Factivestorage_upyun/lists"}