{"id":26667101,"url":"https://github.com/code-lever/ipify-gem","last_synced_at":"2025-04-11T23:50:32.400Z","repository":{"id":56877951,"uuid":"41923877","full_name":"code-lever/ipify-gem","owner":"code-lever","description":"Ruby gem for ipify.org external IP address service","archived":false,"fork":false,"pushed_at":"2018-07-24T14:41:12.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-24T14:20:20.119Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/code-lever.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-09-04T15:39:52.000Z","updated_at":"2019-11-30T14:02:06.000Z","dependencies_parsed_at":"2022-08-20T11:21:45.729Z","dependency_job_id":null,"html_url":"https://github.com/code-lever/ipify-gem","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lever%2Fipify-gem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lever%2Fipify-gem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lever%2Fipify-gem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lever%2Fipify-gem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-lever","download_url":"https://codeload.github.com/code-lever/ipify-gem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497890,"owners_count":21113984,"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":"2025-03-25T19:36:15.558Z","updated_at":"2025-04-11T23:50:32.381Z","avatar_url":"https://github.com/code-lever.png","language":"Ruby","readme":"# Ipify [![Build Status](https://travis-ci.org/code-lever/ipify-gem.png)](https://travis-ci.org/code-lever/ipify-gem) [![Code Climate](https://codeclimate.com/github/code-lever/ipify-gem.png)](https://codeclimate.com/github/code-lever/ipify-gem) [![Gem Version](https://badge.fury.io/rb/ipify.svg)](http://badge.fury.io/rb/ipify)\n\nAn unofficial [ipify](http://ipify.org) Ruby gem.  Get your external IP address.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'ipify'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install ipify\n\n## Usage\n\nPretty simple, you can either ignore exceptions or deal with them:\n\n```\nrequire 'ipify'\n\n# deal w/errors!\nbegin\n  ip = Ipify.ip!\n  # =\u003e '1.2.3.4'\nrescue Ipify::ConnectionError\n  # failed to connect to the service\nrescue Ipify::ServiceError\n  # ipify.org is having issues!\nrescue\n  # something else...\nend\n\n# ignore errors!\nip = Ipify.ip\n# =\u003e '1.2.3.4'\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, 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` to 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\n1. Fork it ( https://github.com/code-lever/ipify-gem/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-lever%2Fipify-gem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-lever%2Fipify-gem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-lever%2Fipify-gem/lists"}