{"id":21883145,"url":"https://github.com/eendroroy/rspikes","last_synced_at":"2026-05-16T21:05:52.860Z","repository":{"id":71992088,"uuid":"78314538","full_name":"eendroroy/rspikes","owner":"eendroroy","description":"A tool to display sparkline ▁▂▃▇▃▇","archived":false,"fork":false,"pushed_at":"2017-06-03T17:50:57.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T19:21:53.635Z","etag":null,"topics":["sparkline"],"latest_commit_sha":null,"homepage":"","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/eendroroy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2017-01-08T01:29:07.000Z","updated_at":"2017-02-17T22:07:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ad76b3a-44a4-44b9-8d42-4091d4343deb","html_url":"https://github.com/eendroroy/rspikes","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eendroroy%2Frspikes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eendroroy%2Frspikes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eendroroy%2Frspikes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eendroroy%2Frspikes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eendroroy","download_url":"https://codeload.github.com/eendroroy/rspikes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244890100,"owners_count":20527035,"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":["sparkline"],"created_at":"2024-11-28T09:39:28.295Z","updated_at":"2026-05-16T21:05:47.821Z","avatar_url":"https://github.com/eendroroy.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rspikes \n\n[![Join the chat at https://gitter.im/eendroroy/rspikes](https://badges.gitter.im/eendroroy/rspikes.svg)](https://gitter.im/eendroroy/rspikes?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Gem Version](https://badge.fury.io/rb/rspikes.svg)](https://rubygems.org/gems/rspikes) \n[![Downloads](https://img.shields.io/gem/dt/rspikes.svg)](https://rubygems.org/gems/rspikes)\n[![Build Status](https://travis-ci.org/eendroroy/rspikes.svg?branch=master)](https://travis-ci.org/eendroroy/rspikes)\n[![Code Climate](https://codeclimate.com/github/eendroroy/rspikes/badges/gpa.svg)](https://codeclimate.com/github/eendroroy/rspikes)\n[![codecov](https://codecov.io/gh/eendroroy/rspikes/branch/master/graph/badge.svg)](https://codecov.io/gh/eendroroy/rspikes)\n\n\nA tool to display bar-chart anywhere.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rspikes'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rspikes\n\n## Usage\n\nin irb\n\n    irb(main):001:0\u003e require 'rspikes'\n    irb(main):002:0\u003e Rspikes.spike([1,2,3,4,5,6])\n    irb(main):003:0\u003e Rspikes.spike([1,2,3,4,5,6], rows=2)\n    \nin commandline\n\n    $ spike 1 2 3 4 5 6\n    $ spike -l 3  1 2 3 4 5 6\n    \nread from stdin\n\n    $ spike\n    \u003e 2 4 3 7 2 9\n    \u003e # press Ctrl-D\n    ▂▄▃▆▂█\n\n#### use with git\ncommit count per day:\n    \n    $ git log | grep Date | awk '{print \" : \"$4\" \"$3\" \"$6}' | uniq -c | awk '{print $1}' | spike\n    \n    ▁▄▅▁▁▂▁▁▂▄▄▇▃█▁▁▁▁▁▁▁\n\ncommit count per author\n    \n    $ git log | grep Author | awk '{print $NF}' | sort | uniq -c | awk '{print $1}' | spike -l4\n    \n    █\n    █\n    █  ▁\n    █▅▁█▅▂▆▄█\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. \nThen, run `rake spec` to run the tests. \nYou 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`. \nTo release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`,\nwhich will create a git tag for the version, push git commits and tags, \nand push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at [rspikes repository](https://github.com/eendroroy/rspikes). \nThis project is intended to be a safe, welcoming space for collaboration,\nand contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Feendroroy%2Frspikes.svg?type=large)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Feendroroy%2Frspikes?ref=badge_large)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feendroroy%2Frspikes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feendroroy%2Frspikes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feendroroy%2Frspikes/lists"}