I need to patch Rack with the following patch: http://github.com/rack/rack/commit/dae12e088592ee69545b5f2f81b87f4959859164
What’s the best practice for doing this? Should I gem unpack, apply the patch, then repack the gem and ship it with capistrano to make sure my version of the gem gets to the destination server?
can I just pop rack into vendor/plugins/ and rely on it being loaded first prior to the system wide gem?
I want to take the path of least resistance and easily be able to deploy this to many environments.
You can install gems from a repository using
bundlerif you’re using that by adding an option to your Gemfile:gem ‘rack’, :git => ‘git://github.com/my-account/rack.git’
This makes patching and deploying patched gems a lot easier. Fork it to your account, patch it, and use that base instead.
Rack isn’t a plugin, it’s a gem, so it probably won’t work properly if installed in
vendor/plugins.