{"id":16102377,"url":"https://github.com/sshaw/property_hash","last_synced_at":"2026-04-12T22:08:43.163Z","repository":{"id":65128632,"uuid":"575733999","full_name":"sshaw/property_hash","owner":"sshaw","description":"Access a nested Ruby Hash using Java-style properties as keys","archived":false,"fork":false,"pushed_at":"2022-12-27T04:19:26.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T18:53:22.141Z","etag":null,"topics":["hash","java","java-properties","property-files","property-wrapper","ruby"],"latest_commit_sha":null,"homepage":"","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/sshaw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-08T07:13:26.000Z","updated_at":"2022-12-27T04:23:11.000Z","dependencies_parsed_at":"2022-12-31T00:05:32.351Z","dependency_job_id":null,"html_url":"https://github.com/sshaw/property_hash","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaw%2Fproperty_hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaw%2Fproperty_hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaw%2Fproperty_hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaw%2Fproperty_hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sshaw","download_url":"https://codeload.github.com/sshaw/property_hash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419871,"owners_count":20936013,"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":["hash","java","java-properties","property-files","property-wrapper","ruby"],"created_at":"2024-10-09T18:53:41.397Z","updated_at":"2025-10-26T01:40:47.010Z","avatar_url":"https://github.com/sshaw.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PropertyHash\n\n![PropertyHash CI Status](https://github.com/sshaw/property_hash/workflows/CI/badge.svg \"PropertyHash CI Status\")\n\nAccess a nested Ruby Hash using Java-style properties as keys.\n\n## Usage\n\n```rb\nrequire \"property_hash\"\nrequire \"pp\"\n\nh = {\n  :a =\u003e {\n    :b =\u003e 1,\n    :c =\u003e { :d =\u003e \"DEEEE\" },\n    :x =\u003e 888,\n    :y =\u003e [9999]\n  },\n  :b =\u003e {\n    :zeee =\u003e 888\n  }\n}\n\nph = PropertyHash.new(h)\n\np ph[\"a.c.d\"]  # DEEEE\np ph[\"b.zeee\"] # 888\n\nph[\"a.c.x\"] = \"X\"\n\npp ph.keys    # [\"a.b\", \"a.c.d\", \"a.x\", \"a.y\", \"b.zeee\", \"a.c.x\"]\npp ph.values  # [1, \"DEEEE\", 888, [9999], 888, \"X\"]\n\nph.each { |k, v| p k }\npp ph.to_h  # h but with :a =\u003e { :c =\u003e { :x =\u003e \"X\" } }\n```\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"property_hash\"\n```\n\nAnd then execute:\n\n    bundle\n\nOr install it yourself as:\n\n    gem install property_hash\n\n## See Also\n\n- [JavaProperties](https://github.com/jnbt/java-properties)\n- [Localio](https://github.com/mrmans0n/localio)\n\n## License\n\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%2Fsshaw%2Fproperty_hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsshaw%2Fproperty_hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshaw%2Fproperty_hash/lists"}