{"id":15399268,"url":"https://github.com/raviqqe/block-is-hash","last_synced_at":"2025-10-26T07:39:23.115Z","repository":{"id":62554377,"uuid":"71675247","full_name":"raviqqe/block-is-hash","owner":"raviqqe","description":"Block is Hash (See also https://github.com/raviqqe/block-is-array)","archived":false,"fork":false,"pushed_at":"2016-10-28T14:22:35.000Z","size":26,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T12:55:21.925Z","etag":null,"topics":["metaprogramming","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raviqqe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-23T01:34:35.000Z","updated_at":"2024-05-14T22:48:34.000Z","dependencies_parsed_at":"2022-11-03T05:00:33.361Z","dependency_job_id":null,"html_url":"https://github.com/raviqqe/block-is-hash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raviqqe/block-is-hash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviqqe%2Fblock-is-hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviqqe%2Fblock-is-hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviqqe%2Fblock-is-hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviqqe%2Fblock-is-hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raviqqe","download_url":"https://codeload.github.com/raviqqe/block-is-hash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviqqe%2Fblock-is-hash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281074241,"owners_count":26439421,"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-10-26T02:00:06.575Z","response_time":61,"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":["metaprogramming","ruby"],"created_at":"2024-10-01T15:47:54.316Z","updated_at":"2025-10-26T07:39:23.099Z","avatar_url":"https://github.com/raviqqe.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# block-is-hash\n\n[![Build Status](https://travis-ci.org/raviqqe/block-is-hash.svg?branch=master)](https://travis-ci.org/raviqqe/block-is-hash)\n[![License](https://img.shields.io/badge/license-unlicense-lightgray.svg)](https://unlicense.org)\n\nBlock is Hash\n\n## Installation\n\n```\n$ gem install block-is-hash\n```\n\n## Usage\n\nCode:\n\n```ruby\nrequire 'block-is-hash'\n\nhash = block_is_hash %i(server) do # `server` directive can be repeated.\n  user :www\n\n  http do\n    server do\n      listen 80\n      server_name 'foo.com'\n    end\n\n    server do\n      listen 443, :ssl\n      server_name 'bar.com'\n    end\n  end\nend\n\np hash\n```\n\nOutput:\n\n```ruby\n{:user=\u003e:www, :http=\u003e{:server=\u003e[{:listen=\u003e80, :server_name=\u003e\"foo.com\"}, {:listen=\u003e[443, :ssl], :server_name=\u003e\"bar.com\"}]}}\n```\n\nFor more examples, see [examples](examples) directory.\n\n## License\n\n[The Unlicense](https://unlicense.org)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraviqqe%2Fblock-is-hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraviqqe%2Fblock-is-hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraviqqe%2Fblock-is-hash/lists"}