{"id":16696897,"url":"https://github.com/seratch/hash-ninja","last_synced_at":"2026-04-27T15:33:07.018Z","repository":{"id":2678196,"uuid":"3670331","full_name":"seratch/hash-ninja","owner":"seratch","description":"Hash operations toolkit for Ruby Ninja","archived":false,"fork":false,"pushed_at":"2012-04-07T02:44:46.000Z","size":100,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T11:18:42.581Z","etag":null,"topics":[],"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/seratch.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":"2012-03-09T12:13:00.000Z","updated_at":"2019-08-13T14:58:31.000Z","dependencies_parsed_at":"2022-08-20T10:10:06.150Z","dependency_job_id":null,"html_url":"https://github.com/seratch/hash-ninja","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/seratch%2Fhash-ninja","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seratch%2Fhash-ninja/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seratch%2Fhash-ninja/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seratch%2Fhash-ninja/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seratch","download_url":"https://codeload.github.com/seratch/hash-ninja/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243515567,"owners_count":20303258,"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-12T17:45:11.678Z","updated_at":"2025-12-29T15:12:34.212Z","avatar_url":"https://github.com/seratch.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hash-Ninja\n\nHash-Ninja is a Hash operations toolkit for Ruby Ninja.\n\nhttps://rubygems.org/gems/hash-ninja\n\n\n## Supported Ruby versions\n\nHash-Ninja runs on Ruby 1.9.2, 1.9.3.\n\n\n## Gemfile\n\n```\nsource \"http://rubygems.org/\"\n\ngem 'hash-ninja'\n```\n\n\n## Usage\n\n```ruby\nrequire 'active_support'\nrequire 'hash_ninja'\n\nname = {'fullName' =\u003e {'firstName' =\u003e 'Linus', 'lastName' =\u003e 'Torvalds'}}\nname['fullName']['firstName'].should eq('Linus')\nname['fullName']['lastName'].should eq('Torvalds')\n\nname.activate!\n# =\u003e {\"fullName\"=\u003e{\"firstName\"=\u003e\"Linus\", \"lastName\"=\u003e\"Torvalds\"}}\n\nname.recursively_underscore_keys!\n# =\u003e {\"full_name\"=\u003e{\"first_name\"=\u003e\"Linus\", \"last_name\"=\u003e\"Torvalds\"}}\nname['full_name']['first_name'].should eq('Linus')\nname['full_name']['last_name'].should eq('Torvalds')\n\nname.recursively_symbolize_keys!\n# =\u003e {:full_name=\u003e{:first_name=\u003e\"Linus\", :last_name=\u003e\"Torvalds\"}}\nname[:full_name][:first_name].should eq('Linus')\nname[:full_name][:last_name].should eq('Torvalds')\n\nname_attr = name.to_attr_reader\n# =\u003e #\u003cHashNinja::HashAttrReader:0x007fa05387b748 @hash={:full_name=\u003e{:first_name=\u003e\"Linus\", :last_name=\u003e\"Torvalds\"}}\u003e\nname_attr.full_name.first_name.should eq('Linus')\nname_attr.full_name.last_name.should eq('Torvalds')\n```\n\nSee specs in detail.\n\nhttps://github.com/seratch/hash-ninja/blob/master/spec/hash_ninja/usage_spec.rb\n\n\n## Build Status\n\n[![Build Status](https://secure.travis-ci.org/seratch/hash-ninja.png)](http://travis-ci.org/seratch/hash-ninja)\n\n\n## License\n\nMIT License\n\nhttps://github.com/seratch/hash-ninja/blob/master/LICENSE.txt\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseratch%2Fhash-ninja","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseratch%2Fhash-ninja","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseratch%2Fhash-ninja/lists"}