{"id":20955910,"url":"https://github.com/bf-rb/mobit","last_synced_at":"2026-04-27T10:32:22.754Z","repository":{"id":28402775,"uuid":"31917135","full_name":"bf-rb/mobit","owner":"bf-rb","description":"Ruby on Rails first gem","archived":false,"fork":false,"pushed_at":"2015-03-29T16:55:32.000Z","size":432,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-02-10T02:47:42.571Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/mobit","language":"Ruby","has_issues":false,"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/bf-rb.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-03-09T19:06:24.000Z","updated_at":"2018-04-20T21:08:51.000Z","dependencies_parsed_at":"2022-08-20T13:10:56.216Z","dependency_job_id":null,"html_url":"https://github.com/bf-rb/mobit","commit_stats":null,"previous_names":["rubybeast/mobit"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bf-rb/mobit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bf-rb%2Fmobit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bf-rb%2Fmobit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bf-rb%2Fmobit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bf-rb%2Fmobit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bf-rb","download_url":"https://codeload.github.com/bf-rb/mobit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bf-rb%2Fmobit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32333196,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":[],"created_at":"2024-11-19T01:22:25.220Z","updated_at":"2026-04-27T10:32:22.721Z","avatar_url":"https://github.com/bf-rb.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mobit [![Gem Version](https://badge.fury.io/rb/mobit.svg)](http://badge.fury.io/rb/mobit)\n\n```html\n\u003cdiv\u003e\n  \u003cselect name=\"phone_country_code\"\u003e\n    \u003coption value=\"93\" data-trunk-code=\"0\"\u003eAfghanistan (+93)\u003c/option\u003e\n    \u003coption value=\"355\" data-trunk-code=\"0\"\u003eAlbania (+355)\u003c/option\u003e\n    \u003coption value=\"213\" data-trunk-code=\"0\"\u003eAlgeria (+213)\u003c/option\u003e\n      ...\n    \u003coption value=\"263\" data-trunk-code=\"0\"\u003eZimbabwe (+263)\u003c/option\u003e\n  \u003c/select\u003e\n  \u003cinput type=\"phone\" name=\"phone\" required=\"required\"\u003e\n\u003c/div\u003e\n```\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'mobit'\n```\n\nor\n\n```ruby\ngem 'mobit', :git =\u003e 'git://github.com/rubybeast/mobit.git'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install mobit\n\n## Usage\n\nSimple Helper 'rails_phone_tag'\n\n```erb\n\u003c%= rails_phone_tag :phone, '', required: true %\u003e\n```\n\nForm For 'form.rails_phone_field'\n\n```erb\n\u003c%= form_for @example do |f|%\u003e\n  \u003c%= f.rails_phone_field :phone, required: true %\u003e\n  \u003c%= f.submit %\u003e\n\u003c% end %\u003e\n```\n\nSimple_Form_For 'form.rails_phone'\n\n```erb\n\u003c%= simple_form_for @example do |f|%\u003e\n  \u003c%= f.input :phone, as: :country_phone, required: true %\u003e\n  \u003c%= f.submit %\u003e\n\u003c% end %\u003e\n```\n\n\nFormtastic  'form.country_phone'\n\n```erb\n\u003c%= semantic_form_for @example do |form| %\u003e\n  \u003c%= form.country_phone :phone, required: true %\u003e\n  \u003c%= form.submit %\u003e\n\u003c% end %\u003e\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/mobit/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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbf-rb%2Fmobit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbf-rb%2Fmobit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbf-rb%2Fmobit/lists"}