Michael Hixson 483b305c1e Fix padrino build by updating its json dependency (#3154) 7 years ago
..
grape ede4454643 All Ruby frameworks use Puma 3.9.x (#2849) 8 years ago
h2o_mruby 71750106fd Add an implementation using H2O and mruby (#2799) 8 years ago
hanami d343809b68 Prevent hanami-unicorn from logging each request (#3076) 8 years ago
ngx_mruby cd1f7550a1 Fix the ngx_mruby db test so that it prints the world instead of "null" (#3057) 8 years ago
padrino 483b305c1e Fix padrino build by updating its json dependency (#3154) 7 years ago
rack ede4454643 All Ruby frameworks use Puma 3.9.x (#2849) 8 years ago
rack-sequel 5cfe61a57c Ruby runtime and framework updates (#3058) 8 years ago
rails ede4454643 All Ruby frameworks use Puma 3.9.x (#2849) 8 years ago
roda-sequel 5cfe61a57c Ruby runtime and framework updates (#3058) 8 years ago
sinatra 5cfe61a57c Ruby runtime and framework updates (#3058) 8 years ago
sinatra-sequel 5cfe61a57c Ruby runtime and framework updates (#3058) 8 years ago
README.md f461d36f11 Fix typo 10 years ago

README.md

Ruby Frameworks

The information below contains information specific to Ruby. For further guidance, review the documentation.

Infrastructure Software Versions

  • RVM 2.2.1 (Unless tests are run in Travis-CI)

Adding a New Ruby Framework

Installation

TFB uses rvm wherever possible to help ruby-based or jruby-based frameworks setup their environment.

When verifying the tests in Travis-CI we rely on Travis-CI's RVM installation (and $HOME isn't /home/travis while running Travis-CI), so we have certain specific caveats to keep Travis-CI happy.

Install RVM

Most install.sh files will at least have this:

#!/bin/bash

fw_depends rvm # This installs RVM

if [ "$TRAVIS" = "true" ]
then
  rvmsudo rvm install ruby-2.0.0-p0
else
  rvm install ruby-2.0.0-p0
fi

Set Up with RVM

At the top of your framework's setup.sh, put this (if you're using RVM):

#!/bin/bash

# Assume single-user installation
if [ "$TRAVIS" = "true" ]
then
  source /home/travis/.rvm/scripts/rvm
else
  source $HOME/.rvm/scripts/rvm
fi

Because TFB uses Python's subprocess module, which runs all shell processes in a non-login mode, you must source the rvm script before using rvm anywhere.

For compatibility with how the framework rounds are executed, you must use a single-user installation if you wish to run ruby-based TFB tests.

Get Help

Ruby Experts

No experts listed, yet. If you're an expert, add yourself!

Ruby Community