{"id":19221112,"url":"https://github.com/ledermann/dialy","last_synced_at":"2025-08-15T22:42:26.820Z","repository":{"id":1063139,"uuid":"898714","full_name":"ledermann/dialy","owner":"ledermann","description":"Formatting phone numbers in E.123","archived":false,"fork":false,"pushed_at":"2011-11-02T07:13:02.000Z","size":184,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T23:39:48.228Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/ledermann/dialy","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/ledermann.png","metadata":{"files":{"readme":"README.rdoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-09-09T14:05:48.000Z","updated_at":"2018-12-19T18:24:09.000Z","dependencies_parsed_at":"2022-08-16T11:55:23.109Z","dependency_job_id":null,"html_url":"https://github.com/ledermann/dialy","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/ledermann%2Fdialy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledermann%2Fdialy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledermann%2Fdialy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledermann%2Fdialy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ledermann","download_url":"https://codeload.github.com/ledermann/dialy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253852075,"owners_count":21973849,"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":"2024-11-09T14:40:05.375Z","updated_at":"2025-05-13T01:24:32.704Z","avatar_url":"https://github.com/ledermann.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= dialy\n\nFormatting phone numbers in the E.123 format (http://en.wikipedia.org/wiki/E.123)\n\nThis gem takes an unformatted ugly string with a phone number and builds a pretty one. This is useful for applications storing phone numbers in a normalized way.\n\nBecause the area codes in Germany, Austria and Switzerland have different lengths, an automatic detection from a given phone number is not possible. So the gem knows all area codes for this countries.\n\n\n== Examples\n\n    Dialy::Number.new('+49 (0221) 12 34 56').to_s\n    # =\u003e '+49 221 1234567'\n    \n    Dialy::Number.new('+49 (0)221 12 34 56').to_s\n    # =\u003e '+49 221 1234567'\n    \n    Dialy::Number.new('0049221123456').to_s\n    # =\u003e '+49 221 1234567'\n\n    Dialy::Config[:default_country_code] = 49\n    Dialy::Number.new('0221/123456').to_s\n    # =\u003e '+49 221 1234567'\n    \n    # Display national number without country code\n    Dialy::Number.new('0221/123456').to_s(:short)\n    # =\u003e '(0221) 1234567'\n\n\n== Install\n\nYou can install the library as a gem\n\n    gem install dialy\n\n\n== TODO\n\n* Add area codes for other countries than DE/AT/CH\n\n\n== Note on Patches/Pull Requests\n \n* Fork the project.\n* Make your feature addition or bug fix.\n* Add tests for it. This is important so I don't break it in a\n  future version unintentionally.\n* Commit, do not mess with rakefile, version, or history.\n  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)\n* Send me a pull request. Bonus points for topic branches.\n\n== Copyright\n\nCopyright (c) 2010 Georg Ledermann. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledermann%2Fdialy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fledermann%2Fdialy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledermann%2Fdialy/lists"}