{"id":46015650,"url":"https://github.com/phateio/coreprotect-ruby","last_synced_at":"2026-03-01T01:07:36.517Z","repository":{"id":94095550,"uuid":"121885416","full_name":"phateio/coreprotect-ruby","owner":"phateio","description":"An utility for purging old data of CoreProtect in production","archived":false,"fork":false,"pushed_at":"2026-01-15T08:12:34.000Z","size":52,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-15T14:54:09.283Z","etag":null,"topics":["activerecord","coreprotect","minecraft","mysql","ruby"],"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/phateio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-02-17T19:27:20.000Z","updated_at":"2026-01-15T08:12:38.000Z","dependencies_parsed_at":"2025-07-26T17:12:29.905Z","dependency_job_id":"3ab6843e-36dc-4268-a464-b89be265ddef","html_url":"https://github.com/phateio/coreprotect-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phateio/coreprotect-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phateio%2Fcoreprotect-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phateio%2Fcoreprotect-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phateio%2Fcoreprotect-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phateio%2Fcoreprotect-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phateio","download_url":"https://codeload.github.com/phateio/coreprotect-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phateio%2Fcoreprotect-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29957128,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T22:53:01.873Z","status":"ssl_error","status_checked_at":"2026-02-28T22:52:50.699Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["activerecord","coreprotect","minecraft","mysql","ruby"],"created_at":"2026-03-01T01:07:35.026Z","updated_at":"2026-03-01T01:07:36.494Z","avatar_url":"https://github.com/phateio.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coreprotect-ruby\nAn utility for purging old data of CoreProtect in production\n\n**WARNING: This repo is still in development. Use at your own risk.**\n\n## Requirements\n* Ruby \u003e= 3.1.0 (tested with Ruby 3.1.2 on Debian 12)\n\n## Recommendations\n* `rbenv --version` # rbenv 1.3.0+\n* `ruby --version` # ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux-gnu]\n* `mysql --version` # mysql Ver 15.1 Distrib 10.11.14-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper\n\n## Installation\n\n1. Install Ruby if you haven't yet:\n\n       $ rbenv install --skip-existing\n\n2. Install bundler if you haven't yet:\n\n       $ gem install bundler\n\n3. Install gems:\n\n       $ bundle install --path vendor/bundle --binstubs bin\n\n4. Create your own environment variables configuration:\n\n       $ cp .env.template .env\n\n5. Edit database configurations:\n\n       $ vi .env\n\n## Usage\n\nUse `bin/thor help co:purge` command for help:\n\n```\nUsage:\n  thor co:purge\n\nOptions:\n  -a, [--action=ACTION]    # Specific actions (separated by commas)\n      [--end=N]            # Stop at specific timestamp\n      [--start=N]          # Started at specific timestamp\n      [--step=N]           # Iterate with specific number of rows\n                           # Default: 1000\n  -u, [--user=USER]        # Specific users (separated by commas)\n  -w, [--world=WORLD]      # Specific worlds (separated by commas)\n  -y, [--yes], [--no-yes]  # Delete the records without prompt\n\nPurge blocks from the database\n```\n\n## Examples\n\n- Delete blocks older than 30 days ago (default):\n\n       $ bin/thor co:purge\n\n- Delete blocks older than 1546300800 (Tue, 01 Jan 2019 00:00:00 UTC +00:00):\n\n       $ bin/thor co:purge --end=1546300800\n\n- Delete blocks of fire, water and lava spreading:\n\n       $ bin/thor co:purge --user=#fire,#water,#lava --action=+block\n\n- Delete blocks of a specific world:\n\n       $ bin/thor co:purge --world=world_2018\n\n- Delete blocks without prompt:\n\n       $ bin/thor co:purge --yes\n\n## Contributing\nBug reports and pull requests are welcome.\n\n## License\ncoreprotect-ruby is released under the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphateio%2Fcoreprotect-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphateio%2Fcoreprotect-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphateio%2Fcoreprotect-ruby/lists"}