The ripple-statistics gem provides simple statistics for Ripple documents. riak-ruby ripple
Add this line to your application's Gemfile:
gem 'ripple-statistics'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ripple-statistics
Include the gem in your Gemfile.
Ripple::Statistics
Then include the Ripple::Statistics module in your document class:
class SomeDocument
include Ripple::Document
include Ripple::Statistics
property :message, String
end
Adjust the 'test/fixtures/ripple.yml' to point to a test riak database.
bundle exec rake
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request