{"id":21820616,"url":"https://github.com/sue445/pixela","last_synced_at":"2025-04-10T02:25:49.291Z","repository":{"id":45098313,"uuid":"153073794","full_name":"sue445/pixela","owner":"sue445","description":"Pixela API client for Ruby","archived":false,"fork":false,"pushed_at":"2025-02-25T14:05:28.000Z","size":268,"stargazers_count":24,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T00:06:35.500Z","etag":null,"topics":["api-client","gem","pixela"],"latest_commit_sha":null,"homepage":"https://sue445.github.io/pixela/","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/sue445.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2018-10-15T07:52:25.000Z","updated_at":"2025-02-25T14:05:29.000Z","dependencies_parsed_at":"2023-12-11T13:48:18.498Z","dependency_job_id":"9efd7be4-648e-4ebd-8c85-30764c7d3a94","html_url":"https://github.com/sue445/pixela","commit_stats":{"total_commits":212,"total_committers":3,"mean_commits":70.66666666666667,"dds":0.06603773584905659,"last_synced_commit":"794715979a895b7b3aa028739406edce7737119e"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sue445%2Fpixela","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sue445%2Fpixela/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sue445%2Fpixela/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sue445%2Fpixela/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sue445","download_url":"https://codeload.github.com/sue445/pixela/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248143656,"owners_count":21054815,"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":["api-client","gem","pixela"],"created_at":"2024-11-27T16:38:00.672Z","updated_at":"2025-04-10T02:25:49.252Z","avatar_url":"https://github.com/sue445.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pixela\n\n[Pixela](https://pixe.la/) API client for Ruby\n\n[![Gem Version](https://badge.fury.io/rb/pixela.svg)](https://badge.fury.io/rb/pixela)\n[![CI activity of pixela-gem](https://pixe.la/v1/users/sue445/graphs/pixela-gem-ci?mode=badge)](https://pixe.la/v1/users/sue445/graphs/pixela-gem-ci.html)\n[![test](https://github.com/sue445/pixela/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/pixela/actions/workflows/test.yml)\n[![Maintainability](https://api.codeclimate.com/v1/badges/4c6316222717ee809b57/maintainability)](https://codeclimate.com/github/sue445/pixela/maintainability)\n[![Coverage Status](https://coveralls.io/repos/github/sue445/pixela/badge.svg)](https://coveralls.io/github/sue445/pixela)\n\n[![CI activity of pixela-gem](https://pixe.la/v1/users/sue445/graphs/pixela-gem-ci)](https://pixe.la/v1/users/sue445/graphs/pixela-gem-ci.html)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'pixela'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install pixela\n\n## Usage\n\n```ruby\nrequire \"pixela\"\n\nclient = Pixela::Client.new(username: \"YOUR_NAME\", token: \"YOUR_TOKEN\")\n\n# register\nclient.create_user(agree_terms_of_service: true, not_minor: true)\n\n# create graph\nclient.create_graph(graph_id: \"test-graph\", name: \"graph-name\", unit: \"commit\", type: \"int\", color: \"shibafu\")\n\n# register value\nrequire \"date\" \nclient.create_pixel(graph_id: \"test-graph\", date: Date.today, quantity: 5) \n```\n\nor\n\n```ruby\n# create graph\nclient.graph(\"test-graph\").create(name: \"graph-name\", unit: \"commit\", type: \"int\", color: \"shibafu\")\n\n# register value\nclient.graph(\"test-graph\").pixel(Date.today).create(quantity: 5)\n```\n\n\nAll methods are followings\n\nhttps://sue445.github.io/pixela/Pixela/Client\n\n## Configuration\n```ruby\nPixela.config.debug_logger = Logger.new(STDOUT)\n```\n\n* `debug_logger`: Enable debug logging if `Logger` is set\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` 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 tags, 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/sue445/pixela.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsue445%2Fpixela","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsue445%2Fpixela","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsue445%2Fpixela/lists"}