{"id":18892409,"url":"https://github.com/marcelobarreto/via_cep","last_synced_at":"2025-05-16T17:08:57.647Z","repository":{"id":5438535,"uuid":"53167753","full_name":"marcelobarreto/via_cep","owner":"marcelobarreto","description":"Brazilian zipcode information","archived":false,"fork":false,"pushed_at":"2024-10-28T18:52:53.000Z","size":97,"stargazers_count":78,"open_issues_count":2,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-12T16:52:40.630Z","etag":null,"topics":["brazil","cep","rubygems","zipcode"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/via_cep","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/marcelobarreto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":"FUNDING.yml","license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"marcelobarreto"}},"created_at":"2016-03-04T21:51:11.000Z","updated_at":"2025-01-19T01:07:28.000Z","dependencies_parsed_at":"2024-11-08T08:02:19.074Z","dependency_job_id":"f9e84cde-66bc-45e5-bb75-05a30f9bb66d","html_url":"https://github.com/marcelobarreto/via_cep","commit_stats":{"total_commits":76,"total_committers":7,"mean_commits":"10.857142857142858","dds":"0.26315789473684215","last_synced_commit":"cbce73b83023049d16932cf4742173f2276257ba"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelobarreto%2Fvia_cep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelobarreto%2Fvia_cep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelobarreto%2Fvia_cep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelobarreto%2Fvia_cep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcelobarreto","download_url":"https://codeload.github.com/marcelobarreto/via_cep/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254573589,"owners_count":22093731,"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":["brazil","cep","rubygems","zipcode"],"created_at":"2024-11-08T08:02:07.734Z","updated_at":"2025-05-16T17:08:57.631Z","avatar_url":"https://github.com/marcelobarreto.png","language":"Ruby","funding_links":["https://patreon.com/marcelobarreto"],"categories":[],"sub_categories":[],"readme":"# ViaCep\n\n## Status\n\n[![Build Status](https://api.travis-ci.org/marcelobarreto/via_cep.svg?branch=master)](https://travis-ci.org/marcelobarreto/via_cep)\n[![Code Climate](https://codeclimate.com/github/marcelobarreto/via_cep.svg)](https://codeclimate.com/github/marcelobareto/via_cep)\n[![Code Climate](https://codeclimate.com/github/marcelobarreto/via_cep/coverage.svg)](https://codeclimate.com/github/marcelobarreto/via_cep)\n[![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop/rubocop)\n[![RubyGems](http://img.shields.io/gem/dt/via_cep.svg?style=flat)](http://rubygems.org/gems/via_cep)\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'via_cep'\n```\n\nAnd then execute:\n\n```$ bundle```\n\nOr install it yourself as:\n\n```$ gem install via_cep```\n\n## Usage\n\nOn terminal you can use via_cep like this:\n\n```ruby\nrequire 'via_cep'\n\naddress = ViaCep::Address.new('01001-000')\naddress = ViaCep::Address.new(01001000)\n\naddress.street # Returns \"Praça da Sé\"\n```\n\nYou can use from terminal either\n\n```bash\n$ zipcode 01001-000 01406000\n```\nIt will return 2 address with its information\n\n```bash\n\n01001-000:\n  Praça da Sé\n  Sé\n  São Paulo\n  SP\n\n01406000:\n  Avenida Nove de Julho\n  Jardim Paulista\n  São Paulo\n  SP\n```\n\nAnd also search for a zipcode by an address\n\n```ruby\nsearch = ViaCep::SearchByAddress.new(state: 'SP', city: 'São Paulo', street: 'Praça da Sé')\n\nsearch.zipcode # =\u003e \"01001-000\"\n```\n\n### Available methods\n\nzipcode, street, complement, neighborhood, city, state, ibge, gia.\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/console` 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/marcelobarreto/via_cep. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](CODE_OF_CONDUCT.md) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelobarreto%2Fvia_cep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcelobarreto%2Fvia_cep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelobarreto%2Fvia_cep/lists"}