Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vasilakisfil/success_recorder
A gem that helps you to track success/failure ratios. Uses Redis.
https://github.com/vasilakisfil/success_recorder
Last synced: 6 days ago
JSON representation
A gem that helps you to track success/failure ratios. Uses Redis.
- Host: GitHub
- URL: https://github.com/vasilakisfil/success_recorder
- Owner: vasilakisfil
- License: mit
- Created: 2016-04-15T17:08:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-04T15:21:50.000Z (over 8 years ago)
- Last Synced: 2024-12-17T05:56:08.089Z (7 days ago)
- Language: Ruby
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# SuccessRecorder
A gem that helps you to track success/failure ratios. Uses Redis.## Installation
Add this line to your application's Gemfile:
```ruby
gem 'success_recorder'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install success_recorder
## Usage
```ruby
SuccessRecorder.success('key')
SuccessRecorder.failure('key')
SuccessRecorder.report('key')SuccessRecorder.success(['key1', 'key2', 3]) #the key in redis is 'key1:key2:3'
SuccessRecorder.failure(['key1', 'key2', 3])
SuccessRecorder.report(['key1', 'key2', 3])
```## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
To 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).
## Contributing
1. Fork it ( https://github.com/vasilakisfil/success_recorder/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request