{"id":27969872,"url":"https://github.com/appfolio/alexander_graham_bell","last_synced_at":"2025-05-07T21:55:03.688Z","repository":{"id":62553136,"uuid":"52831401","full_name":"appfolio/alexander_graham_bell","owner":"appfolio","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-03T18:11:21.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":132,"default_branch":"master","last_synced_at":"2025-05-07T21:54:59.940Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appfolio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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,"zenodo":null}},"created_at":"2016-02-29T23:03:29.000Z","updated_at":"2025-05-03T18:11:24.000Z","dependencies_parsed_at":"2025-05-03T19:20:59.583Z","dependency_job_id":"98f485b3-a817-4bca-8a30-9d9dcc796e28","html_url":"https://github.com/appfolio/alexander_graham_bell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfolio%2Falexander_graham_bell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfolio%2Falexander_graham_bell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfolio%2Falexander_graham_bell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfolio%2Falexander_graham_bell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appfolio","download_url":"https://codeload.github.com/appfolio/alexander_graham_bell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252961842,"owners_count":21832193,"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-05-07T21:55:02.942Z","updated_at":"2025-05-07T21:55:03.660Z","avatar_url":"https://github.com/appfolio.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://circleci.com/gh/appfolio/alexander_graham_bell.svg?style=svg)](https://circleci.com/gh/appfolio/alexander_graham_bell.svg?style=svg)\n\n# AlexanderGrahamBell\n\nPhone number parser and tel link creator.\n\n## Install\n\n```\ngem install alexander_graham_bell\n```\n\n## Requirements\n\n* Ruby 2.5.3 or higher\n\n## Examples\n\n#### Generate a tel link\n```ruby\nputs AlexanderGrahamBell.tel_link('1-800-555-1234')\n# \u003ca href=\\\"tel:18005551234\\\"\u003e1-800-555-1234\u003c/a\u003e\n```\n#### Generate a tel link with an extension\n```ruby\nputs AlexanderGrahamBell.tel_link('1-800-555-1234ext5')\n#\u003ca href=\\\"tel:18005551234;isub=5\\\"\u003e1-800-555-1234ext5\u003c/a\u003e\n```\n#### Get the href contents\n```ruby\nputs AlexanderGrahamBell.tel_href('1-800-555-1234')\n# tel:18005551234\n```\n#### For use with rails\n```ruby\n# If you're using rails and you want to html escape everything, wrap it in your own module or class.\n\nmodule MyTelLinkGenerator\n  def self.build(phone_number)\n    AlexanderGrahamBell.tel_link(phone_number).html_safe\n  end\nend\n\nMyTelLinkGenerator.build('+18052234567ext5')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappfolio%2Falexander_graham_bell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappfolio%2Falexander_graham_bell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappfolio%2Falexander_graham_bell/lists"}