{"id":15529499,"url":"https://github.com/zonuexe/ruby-hashize","last_synced_at":"2025-07-13T01:36:40.204Z","repository":{"id":11499725,"uuid":"13976753","full_name":"zonuexe/ruby-hashize","owner":"zonuexe","description":"Refinements classes of ruby's standard library as Hash","archived":false,"fork":false,"pushed_at":"2013-10-30T03:55:51.000Z","size":112,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T17:57:55.992Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rubygems.org/gems/hashize","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zonuexe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-30T03:55:11.000Z","updated_at":"2013-10-30T05:17:43.000Z","dependencies_parsed_at":"2022-09-13T18:13:31.490Z","dependency_job_id":null,"html_url":"https://github.com/zonuexe/ruby-hashize","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/zonuexe%2Fruby-hashize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonuexe%2Fruby-hashize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonuexe%2Fruby-hashize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonuexe%2Fruby-hashize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zonuexe","download_url":"https://codeload.github.com/zonuexe/ruby-hashize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248610385,"owners_count":21132920,"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-02T11:18:37.861Z","updated_at":"2025-04-12T17:58:00.513Z","avatar_url":"https://github.com/zonuexe.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Hashize\n=======\n\nRefinements classes of ruby's standard library as Hash\n\nInstallation\n------------\n\nAdd this line to your application's Gemfile:\n\n    gem 'hashize'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install hashize\n\nSupports Classes\n----------------\n\n### Standard Class\n\n * `Struct`\n\n### Standard Library\n\n * `URI::Generic` (`uri`)\n\nUsage\n-----\n\nIn your code:\n\n```ruby\nrequire 'hashize'\nusing Hashize::URI::Generic\nusing Hashize::Struct\n\nuri = URI::parse('http://dt.zonu.me/').to_hash\n#=\u003e {:scheme =\u003e \"http\",\n# :userinfo =\u003e nil,\n# :host =\u003e \"dt.zonu.me\",\n# :port =\u003e 80,\n# :path =\u003e \"/\",\n# :query =\u003e nil,\n# :fragment =\u003e nil}\n\nMyStruct = Struct.new(:foo, :bar, :buz)\nmy = MyStruct.new('FOO', 'BAR', 'BUZ')\nmy.to_Hash\n#=\u003e {:foo =\u003e \"FOO\",\n# :bar =\u003e \"BAR\",\n# :buz =\u003e \"BUZ\"}\n```\n\nContributing\n------------\n\n 1. Fork it\n 2. Create your feature branch (`git checkout -b my-new-feature`)\n 3. Commit your changes (`git commit -am 'Add some feature'`)\n 4. Push to the branch (`git push origin my-new-feature`)\n 5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzonuexe%2Fruby-hashize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzonuexe%2Fruby-hashize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzonuexe%2Fruby-hashize/lists"}