{"id":19880266,"url":"https://github.com/joeljuca/changify","last_synced_at":"2025-03-01T02:44:39.777Z","repository":{"id":202669136,"uuid":"707882768","full_name":"joeljuca/changify","owner":"joeljuca","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-20T22:13:18.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T22:50:02.530Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/joeljuca/changify","language":"Ruby","has_issues":false,"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/joeljuca.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-20T22:10:49.000Z","updated_at":"2023-10-20T22:14:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"89e270b5-3b42-4233-8e2d-08ff301a465b","html_url":"https://github.com/joeljuca/changify","commit_stats":null,"previous_names":["joeljuca/changify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeljuca%2Fchangify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeljuca%2Fchangify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeljuca%2Fchangify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeljuca%2Fchangify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeljuca","download_url":"https://codeload.github.com/joeljuca/changify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241309102,"owners_count":19941725,"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-11-12T17:10:53.013Z","updated_at":"2025-03-01T02:44:39.755Z","avatar_url":"https://github.com/joeljuca.png","language":"Ruby","readme":"# Changify\n\n[![Licensed under MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE.txt)\n[![quality](https://github.com/joeljuca/changify/actions/workflows/main.yml/badge.svg)](https://github.com/joeljuca/changify/actions/workflows/main.yml)\n[![Follow Joel Jucá on X (formerly Twitter)](https://img.shields.io/twitter/follow/holyshtjoe)](https://twitter.com/holyshtjoe)\n\n## Setup\n\nInstall dependencies with [Bundler](https://bundler.io):\n\n```\n$ bundle install\n```\n\n## About\n\nMy solution for the [BuildBook coding challenge](https://gist.github.com/vitchell/a081703591116bab7e859cc000c98495).\n\nI wrote a Ruby module with the core functionality of this test.\n\nThe CLI itself is actually implemented in the `examples/spotify` dir.\n\n## `spotify.rb`\n\nThis is the actual CLI, located in the `examples/spotify` dir. To see it in action, do the following\n\n```sh\n$ cd examples/spotify\n```\n\nSee the example in action with sample data:\n\n```sh\n$ ruby ./spotify.rb ./deezer.json ./changes.jsonl\n```\n\nBy default, it prints the resulting JSON to STDOUT. It allow pipelining the results with tools like [jq](https://jqlang.github.io/jq/):\n\n```sh\n$ ruby ./spotify.rb ./deezer.json ./changes.jsonl | jq .\n```\n\nYou can also write the resulting JSON to a destination file:\n\n```sh\n$ ruby ./spotify.rb ./deezer.json ./changes.jsonl output.json\n```\n\nTo eliminate the `ruby` part of this command, adjust its file permissions:\n\n```sh\n# set Unix permissions\n$ chmod u+x spotify.rb\n\n# now you can execute it without the `ruby` prefix\n$ ./spotify.rb ./deezer.json ./changes.jsonl output.json\n```\n\n## Code of Conduct\n\nEveryone interacting in the Changify project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](CODE_OF_CONDUCT.md).\n\n## License\n\n[MIT](LICENSE.txt)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeljuca%2Fchangify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeljuca%2Fchangify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeljuca%2Fchangify/lists"}