{"id":20205947,"url":"https://github.com/sticksnleaves/vcardio","last_synced_at":"2025-04-10T12:14:35.321Z","repository":{"id":28120140,"uuid":"31619115","full_name":"sticksnleaves/vcardio","owner":"sticksnleaves","description":"vCard builder and parser for Ruby","archived":false,"fork":false,"pushed_at":"2015-04-21T15:08:17.000Z","size":232,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T01:49:53.444Z","etag":null,"topics":["parse","ruby","vcard"],"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/sticksnleaves.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-03T20:16:21.000Z","updated_at":"2024-03-21T14:02:20.000Z","dependencies_parsed_at":"2022-08-02T11:00:10.698Z","dependency_job_id":null,"html_url":"https://github.com/sticksnleaves/vcardio","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sticksnleaves%2Fvcardio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sticksnleaves%2Fvcardio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sticksnleaves%2Fvcardio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sticksnleaves%2Fvcardio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sticksnleaves","download_url":"https://codeload.github.com/sticksnleaves/vcardio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217082,"owners_count":21066633,"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":["parse","ruby","vcard"],"created_at":"2024-11-14T05:20:16.256Z","updated_at":"2025-04-10T12:14:35.303Z","avatar_url":"https://github.com/sticksnleaves.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VCardio\n\nBuild and parse v3 and v4 vCards\n\n[![Build Status](https://travis-ci.org/sticksnleaves/vcardio.svg?branch=master)](https://travis-ci.org/sticksnleaves/vcardio)\n[![Code Climate](https://codeclimate.com/github/sticksnleaves/vcardio/badges/gpa.svg)](https://codeclimate.com/github/sticksnleaves/vcardio)\n[![Coverage Status](https://coveralls.io/repos/sticksnleaves/vcardio/badge.svg?branch=master)](https://coveralls.io/r/sticksnleaves/vcardio?branch=master)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'vcardio'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install vcardio\n\n## Usage\n\n### Create a vCard\n\nVCardio comes packed with a powerful and easy to use DSL:\n\n```ruby\nvcard = VCardio::VCard.new('3.0') do\n  fn %w(Smith Anthony)\n  org 'Sticksnleaves'\n  tel '(555) 555-5555', type: 'HOME'\n  tel '(555) 555-5556', type: 'WORK'\n  item1.gender 'M'\nend\n```\n\nTo convert your vCard to a string just call `to_s`:\n\n```ruby\nvcard.to_s # =\u003e VCARD:BEGIN\n           #    VERSION:3.0\n           #    FN:Smith;Anthony\n           #    ORG:Sticksnleaves\n           #    TEL;TYPE=HOME:(555) 555-5555\n           #    TEL;TYPE=WORK:(555) 555-5556\n           #    item1.GENDER:M\n           #    VCARD:END\n```\n\nOr write the vCard to a file:\n\n```ruby\nvcard.to_file('/path/to/file.vcf')\n```\n\n### Parsing vCards\n\nIf you already have a vCard and want to manipulate it in Ruby just call\n`VCardio::VCard#parse`.\n\n```ruby\nfile  = File.open('path/to/file.vcf')\nvcard = VCardio::VCard.parse(file)\n\nvcard.fn[0].value                # =\u003e ['Smith', 'Anthony']\nvcard.org[0].value               # =\u003e 'Sticksnleaves'\nvcard.tel[0].value               # =\u003e '(555) 555-5555'\nvcard.tel[1].parameters[0].value # =\u003e 'HOME'\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/[my-github-username]/vcardio/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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsticksnleaves%2Fvcardio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsticksnleaves%2Fvcardio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsticksnleaves%2Fvcardio/lists"}