{"id":16753466,"url":"https://github.com/thbar/data-patcher","last_synced_at":"2025-03-16T05:40:59.673Z","repository":{"id":519032,"uuid":"147226","full_name":"thbar/data-patcher","owner":"thbar","description":"Little gem to produce database patchs","archived":false,"fork":false,"pushed_at":"2009-07-15T21:00:47.000Z","size":88,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T18:11:32.519Z","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/thbar.png","metadata":{"files":{"readme":"README.textile","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-03-10T09:23:53.000Z","updated_at":"2023-07-01T21:26:57.000Z","dependencies_parsed_at":"2022-07-07T18:21:10.609Z","dependency_job_id":null,"html_url":"https://github.com/thbar/data-patcher","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/thbar%2Fdata-patcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thbar%2Fdata-patcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thbar%2Fdata-patcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thbar%2Fdata-patcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thbar","download_url":"https://codeload.github.com/thbar/data-patcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830922,"owners_count":20354850,"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-13T02:50:10.565Z","updated_at":"2025-03-16T05:40:59.633Z","avatar_url":"https://github.com/thbar.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"h2. WHAT\n\nGiven a bunch of ruby Hash, an ActiveRecord model class and a unique key, DataPatcher creates a Hash of the differences between the bunch of Hash and the table.\n\nHave a look at the (very simple) spec/data_patcher.rb to get a better understanding of what's possible.\n\nh2. REAL-LIFE USE\n\nThis is useful if you are aggregating various data sources and what to have a good level of control on what is added or modified. I do that on \"Learnivore.com\":http://www.learnivore.com and for some of my clients data processing.\n\nWhen doing this, I tend to parse all the sources again, compare the result to already registered data, and see what are the differences and if they should be applied.\n\nh2. TEST\n\nEdit spec/database.yml and run rake spec.\n\nTest data is recreated automatically when running rake spec.\n\nh2. IDEAS\n\n* find another name - I don't like DataPatcher\n* find a better Hash patch format\n** move the key outside the diff Hash ?\n* support removed records ? (I don't need that for the moment)\n* add some way to apply the patch directly inside DataPatcher ?\n\nh2. COPYRIGHT\n\nCopyright (c) 2008 Thibaut Barrère. See LICENSE for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthbar%2Fdata-patcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthbar%2Fdata-patcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthbar%2Fdata-patcher/lists"}