{"id":26437479,"url":"https://github.com/justincampbell/go_duration_ruby","last_synced_at":"2025-11-08T07:04:40.421Z","repository":{"id":56874736,"uuid":"91843372","full_name":"justincampbell/go_duration_ruby","owner":"justincampbell","description":"GoDuration Ruby Gem - Parses and generates Go's time.Duration format","archived":false,"fork":false,"pushed_at":"2017-05-19T21:46:33.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-09T15:01:42.127Z","etag":null,"topics":["duration","golang","ruby","serialization"],"latest_commit_sha":null,"homepage":"","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/justincampbell.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}},"created_at":"2017-05-19T20:34:46.000Z","updated_at":"2018-01-06T20:48:29.000Z","dependencies_parsed_at":"2022-08-20T22:30:41.416Z","dependency_job_id":null,"html_url":"https://github.com/justincampbell/go_duration_ruby","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/justincampbell%2Fgo_duration_ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justincampbell%2Fgo_duration_ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justincampbell%2Fgo_duration_ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justincampbell%2Fgo_duration_ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justincampbell","download_url":"https://codeload.github.com/justincampbell/go_duration_ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244183834,"owners_count":20412109,"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":["duration","golang","ruby","serialization"],"created_at":"2025-03-18T08:29:54.376Z","updated_at":"2025-11-08T07:04:40.379Z","avatar_url":"https://github.com/justincampbell.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoDuration for Ruby\n[![Gem Version](https://badge.fury.io/rb/go_duration.svg)](https://badge.fury.io/rb/go_duration)\n[![Build Status](https://travis-ci.org/justincampbell/go_duration_ruby.svg?branch=master)](https://travis-ci.org/justincampbell/go_duration_ruby)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'go_duration'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install go_duration\n\n## Usage\n\n### Parsing\n\n```rb\nrequire 'go_duration'\n\nGoDuration.parse(\"2m30s\") # =\u003e 150\n```\n\n### Generating\n\n```rb\nrequire 'go_duration'\n\nGoDuration.generate(150) # =\u003e \"2m30s\"\n\nrequire 'go_duration/core_ext'\n\n150.to_go_duration # =\u003e \"2m30\"\n\nrequire 'active_support/core_ext'\n\n(2.hours + 45.minutes).to_go_duration # =\u003e \"2h45m\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustincampbell%2Fgo_duration_ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustincampbell%2Fgo_duration_ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustincampbell%2Fgo_duration_ruby/lists"}