Logo: Relish

  1. Sign in

Project: Cio 0.0.0



Setup common ruby

From scratch, i.e. without rbenv or rbenv_build:

  1. Fork it.
  2. Clone your cio repo.
  3. Install rbenv and rbenv_build
cd ~
git clone git://github.com/sstephenson/rbenv.git .rbenv
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
  1. Install required Ruby version
cd cio
rbenv install `cat .rbenv-version`
rbenv rehash

To Remove installed Ruby Version and installed gems

rm -rf ~/.rbenv/versions/`cat .rbenv-version`
cd cio
rm -rf vendor
ls | grep -v bin/cio | xargs rm

Setup development gems

  1. Install and configure Bundler
gem install bundler
bundle config path vendor
bundle config bin .bundle/bin
bundle config shebang ruby-local-exec
bundle config disable_shared_gems 1
  1. Install required gems
bundle install

You should be able to run the tests now:

bundle exec rake

Cio uses RSpec 2 for unit tests.
The specs are written in a very "focused" style, each spec is concerned only with
exercising the object under test, using mocks as necessary.
You can run the specs using rake spec.

Cucumber is used for end-to-end full stack integration tests
that also function as Cio's documentation.

Making a pull request

  1. Create you changes using a gitflow feature workflow
  2. Create a GitHub Pull Request from the remote feature branch


  1. Create your feature branch (git checkout -b my-new-feature)
  2. Commit your changes (git commit -am 'Add some feature')
  3. Push to the branch (git push origin my-new-feature)
  4. Create new Pull Request

Problems running bundle install?

If you get an error while running bundle install, it may be one of the
"extras" gems which are not required for development.
Try installing it without these gems.

bundle install --without extras

If you are getting an error installing rb-fsevent gem, you may want to
temporarily change the Gemfile to use the pre-release version of the gem.

gem 'rb-fsevent', '0.9.0.pre4'

Last published about 7 years ago by taqtiqa-mark.