{"id":19510431,"url":"https://github.com/sintef-9012/rodash","last_synced_at":"2025-07-30T23:34:31.094Z","repository":{"id":56892546,"uuid":"52365603","full_name":"SINTEF-9012/Rodash","owner":"SINTEF-9012","description":"_.set, _.get, and _.unset for Ruby","archived":false,"fork":false,"pushed_at":"2024-01-24T11:24:28.000Z","size":21,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-07-22T12:18:31.416Z","etag":null,"topics":["gem","lodash","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/rodash","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/SINTEF-9012.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-23T14:40:46.000Z","updated_at":"2024-11-06T13:13:13.000Z","dependencies_parsed_at":"2024-11-10T23:15:59.026Z","dependency_job_id":"218cc949-a643-4a00-bd5e-6932f1329cc9","html_url":"https://github.com/SINTEF-9012/Rodash","commit_stats":{"total_commits":12,"total_committers":4,"mean_commits":3.0,"dds":0.5,"last_synced_commit":"3c86c04469022a91fbd748204364aa5d443b7309"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/SINTEF-9012/Rodash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SINTEF-9012%2FRodash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SINTEF-9012%2FRodash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SINTEF-9012%2FRodash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SINTEF-9012%2FRodash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SINTEF-9012","download_url":"https://codeload.github.com/SINTEF-9012/Rodash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SINTEF-9012%2FRodash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267960831,"owners_count":24172507,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["gem","lodash","ruby"],"created_at":"2024-11-10T23:15:53.379Z","updated_at":"2025-07-30T23:34:31.062Z","avatar_url":"https://github.com/SINTEF-9012.png","language":"Ruby","readme":"# Rodash\n[_.set](https://lodash.com/docs#set), [_.get](https://lodash.com/docs#get), and [_.unset](https://lodash.com/docs#unset) for Ruby\n\nThe two methods set and get are based on [Lodash](https://lodash.com/) and ported to Ruby, along with their unit tests.\n\n## Install\n\n`gem install rodash`\n\n### Rodash.set example\n\n```ruby\nobject = { 'a' =\u003e [{ 'b' =\u003e { 'c' =\u003e 3 } }] }\n\nRodash.set(object, 'a[0].b.c', 4)\nobject['a'][0]['b']['c']\n =\u003e 4\n\nRodash.set(object, 'x[0].y.z', 5)\nobject['x'][0]['y']['z'])\n =\u003e 5\n```\n\n### Rodash.get example\n\n```ruby\nobject = { 'a' =\u003e [{ 'b' =\u003e { 'c' =\u003e 3 } }] }\n\nRodash.get(object, 'a[0].b.c')\n =\u003e 3\n\nRodash.get(object, ['a', '0', 'b', 'c'])\n =\u003e 3\n\nRodash.get(object, 'a.b.c', 'default')\n =\u003e 'default'\n```\n\n### Rodash.unset example\n\n```ruby\nobject = { 'a' =\u003e [{ 'b' =\u003e { 'c' =\u003e 7 } }] }\nRodash.unset(object, 'a[0].b.c')\n =\u003e true\n\nobject\n =\u003e { 'a' =\u003e [{ 'b' =\u003e {} }] }\n\nRodash.unset(object, 'a[0].b.c')\n =\u003e true\n\nobject\n  =\u003e { 'a' =\u003e [{ 'b' =\u003e {} }] }\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsintef-9012%2Frodash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsintef-9012%2Frodash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsintef-9012%2Frodash/lists"}