0.0
No commit activity in last 3 years
No release in over 3 years
Sinatra version 1.4.5 only: Fix bug #951 (Note that this is fixed on newer versions)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

= 1.4.5
 Project Readme

Build Status

Fix for Sinatra 1.4.5's issue #951

NOTE THAT THIS IS UNNECESSARY FOR 1.4.6+, BECAUSE THE BUG IS FIXED IN THOSE RELEASES!!

How to know if you hit this

You will know if you hit this, because you'll get an error message like

NoMethodError: undefined method `join' for #<String:0x007f62c3e6fb90>

Or maybe one like this:

Unexpected error while processing request: undefined method `join' for #<String:0x007fa3d244d1f8>

If you want to understand it better, the issue is here, and I traced its history and explained what happened and why here.

If you want to understand why this fixes the issue, then you'll need to learn the Ruby Object Model. This is a class that I teach, come and learn with us at the Turing School of Software and Design!

Installing

If you're using Bundler, then add this to your Gemfile:

gem 'sinatra-fix_951', require: 'sinatra/fix_951'

If you aren't using Bundler, then install it from the command-line:

$ gem install sinatra-fix_951

And then require it wherever you're currently requiring Sinatra:

require 'sinatra/fix_951'

LICENSE

MIT, to mirror Sinatra's license.