{"id":24794847,"url":"https://github.com/marcoroth/timingapp-ruby","last_synced_at":"2025-10-12T20:30:46.468Z","repository":{"id":274260063,"uuid":"922369357","full_name":"marcoroth/timingapp-ruby","owner":"marcoroth","description":"Ruby client for the database of the Timingapp.com macOS application.","archived":false,"fork":false,"pushed_at":"2025-01-26T23:43:34.000Z","size":51,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T09:12:17.002Z","etag":null,"topics":["activerecord","ruby","sqlite","sqlite3","time-tracking","timing","timingapp","tracking"],"latest_commit_sha":null,"homepage":"https://timingapp.com","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/marcoroth.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":"marcoroth"}},"created_at":"2025-01-26T02:23:39.000Z","updated_at":"2025-01-27T13:56:30.000Z","dependencies_parsed_at":"2025-01-26T05:01:41.598Z","dependency_job_id":"793fba94-df85-49d3-91e8-b3369e89cf47","html_url":"https://github.com/marcoroth/timingapp-ruby","commit_stats":null,"previous_names":["marcoroth/timingapp-ruby"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marcoroth/timingapp-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Ftimingapp-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Ftimingapp-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Ftimingapp-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Ftimingapp-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcoroth","download_url":"https://codeload.github.com/marcoroth/timingapp-ruby/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Ftimingapp-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002309,"owners_count":26083341,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":["activerecord","ruby","sqlite","sqlite3","time-tracking","timing","timingapp","tracking"],"created_at":"2025-01-29T23:18:31.792Z","updated_at":"2025-10-12T20:30:46.206Z","avatar_url":"https://github.com/marcoroth.png","language":"Ruby","funding_links":["https://github.com/sponsors/marcoroth"],"categories":[],"sub_categories":[],"readme":"# Timingapp\n\nRuby client for the database of the [Timing](https://timingapp.com) macOS application. It allows you to read the Timing SQLite database from your local disk and gives you an interface to query it's data.\n\n## Installation\n\nInstall the gem and add to the application's `Gemfile` by executing:\n\n```bash\nbundle add timingapp\n```\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n```bash\ngem install timingapp\n```\n\n## Usage\n\nTo utilize the `timingapp` gem, `require` it in your project:\n\n```ruby\nrequire \"timingapp\"\n```\n\nNext, initiate database access using:\n\n```ruby\nTimingapp.load!\n```\n\n\u003e [!NOTE]\n\u003e The `Timingapp.load!` method accepts an optional `path` parameter specifying the location of the SQLite database file.\n\u003e It defaults to `\"~/Library/Application Support/info.eurocomp.Timing2/SQLite.db\"`.\n```ruby\nTimingapp.load!(\"path/to/other/timingapp/database.db\")\n```\n\nAfter successfully loading the database, you get access to all the models exposed by the gem. Currently, these models are read-only and are all instances of `ActiveRecord::Base`. \n\n```ruby\nirb(main):001\u003e Timingapp::AppActivity.all\n# =\u003e\n[\n  #\u003cTimingapp::AppActivity:0x000000012131c960 id: 3626854634616737793, localDeviceID: 3, startDate: 1688885798.0, ...\u003e,\n  #\u003cTimingapp::AppActivity:0x000000012131c820 id: 3626854892682944513, localDeviceID: 3, startDate: 1688885918.0, ...\u003e,\n  #...\n]\n```\n\nConsequently, you can leverage the ActiveRecord DSL for querying and traversing the models.\n\n```ruby\nirb(main):002\u003e activity = Timingapp::AppActivity.find(3686251181653903872)\n=\u003e #\u003cTimingapp::AppActivity:0x000000037c09fa18 ...\u003e\n\nirb(main):003\u003e activity.project\n=\u003e #\u003cTimingapp::Project:0x000000038831d220\n      id: 3627848804833985024,\n      title: \"StimulusReflex\",\n      parentID: 3627712234116683008,\n      listPosition: 9,\n      isSample: false,\n      color: \"#2D7FFFFF\",\n      productivityScore: 1.0,\n      ...\n    \u003e\n\nirb(main):004\u003e activity.project.title\n=\u003e \"StimulusReflex\"\n\nirb(main):005\u003e activity.project.parent.title\n=\u003e \"Open Source\"\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also 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`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/marcoroth/timingapp-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/marcoroth/timingapp-ruby/blob/main/CODE_OF_CONDUCT.md).\n\n## Code of Conduct\n\nEveryone interacting in the Timingapp project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/marcoroth/timingapp-rubyblob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoroth%2Ftimingapp-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcoroth%2Ftimingapp-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoroth%2Ftimingapp-ruby/lists"}