riak-sessions contains Riak-backed session stores for Rack and Rails
riak-sessions requires Rack (any version > 1.0), and Rails 3.0 if
you want the Rails-specific session store. Naturally, it also depends
riak-client gem to connect to Riak.
Development dependencies are handled with bundler. Install bundler
gem install bundler) and run this command in each sub-project to
$ bundle install
Run the RSpec suite using
$ bundle exec rake spec
Fork the project on Github. If you have already forked, use
git pull --rebaseto reapply your changes on top of the mainline. Example:
$ git checkout master $ git pull --rebase seancribbs master
Create a topic branch. If you've already created a topic branch, rebase it on top of changes from the mainline "master" branch. Examples:
$ git checkout -b topic
$ git rebase master
- Write an RSpec example or set of examples that demonstrate the necessity and validity of your changes. Patches without specs will most often be ignored. Just do it, you'll thank me later. Documentation patches need no specs, of course.
- Make your feature addition or bug fix. Make your specs and stories pass (green).
- Run the suite using multiruby or rvm to ensure cross-version compatibility.
- Cleanup any trailing whitespace in your code (try @whitespace-mode@ in Emacs, or "Remove Trailing Spaces in Document" in the "Text" bundle in Textmate). You can use the
clean_whitespaceRake task if you like.
- Commit, do not mess with Rakefile. If related to an existing issue in the tracker, include "Closes #X" in the commit message (where X is the issue number).
- Send me a pull request.
Copyright ©2010-2012 Sean Cribbs and Basho Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.