{"id":16073015,"url":"https://github.com/juanitofatas/nested_level","last_synced_at":"2025-04-05T10:26:35.712Z","repository":{"id":56885327,"uuid":"173425318","full_name":"JuanitoFatas/nested_level","owner":"JuanitoFatas","description":"Find how deep is your hash or array","archived":false,"fork":false,"pushed_at":"2019-03-02T11:00:13.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T20:19:42.365Z","etag":null,"topics":["array","hash","nested","ruby"],"latest_commit_sha":null,"homepage":"https://github.com/JuanitoFatas/nested_level","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/JuanitoFatas.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-02T08:54:34.000Z","updated_at":"2019-03-02T11:00:15.000Z","dependencies_parsed_at":"2022-08-21T00:20:32.006Z","dependency_job_id":null,"html_url":"https://github.com/JuanitoFatas/nested_level","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/JuanitoFatas%2Fnested_level","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuanitoFatas%2Fnested_level/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuanitoFatas%2Fnested_level/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuanitoFatas%2Fnested_level/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JuanitoFatas","download_url":"https://codeload.github.com/JuanitoFatas/nested_level/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247321379,"owners_count":20919980,"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":["array","hash","nested","ruby"],"created_at":"2024-10-09T08:02:06.192Z","updated_at":"2025-04-05T10:26:35.669Z","avatar_url":"https://github.com/JuanitoFatas.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NestedLevel\n\nFind how deep is your Array or Hash.\n\n## Usage\n\n```ruby\nmax_nesting = NestedLevel.call(deeply_nested_hash)\nJSON.pretty_generate(deeply_nested_hash, max_nesting: max_nesting)\n\nNestedLevel.call([]) # =\u003e 1\nNestedLevel.call([ [] ]) # =\u003e 2\n\nNestedLevel.call({}) # =\u003e 1\nNestedLevel.call({ a: { b: :c } }) # =\u003e 2\n```\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'nested_level'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install nested_level\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/hack` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/JuanitoFatas/nested_level. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the NestedLevel project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/JuanitoFatas/nested_level/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuanitofatas%2Fnested_level","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuanitofatas%2Fnested_level","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuanitofatas%2Fnested_level/lists"}