rawclone: quickly set up your gems development machine
I start on a project which is somehow working (or even in production) and setting up gems without bundler is a pain in the ass every single time (I’ve never seen a rake gems:install run without breaking along the process several times…). Most of the time you end up running a combination of rake gems:install and manual gem installation, dealing with dependencies along the way.
So, if you’ve found yourself in the situation maybe this could help. I’ve been using this dirty script for some time now. Info from the source code:
# So you want to start developing an already “working” project. No
# bundle, config.gem’s not present or messing up dependencies. Fear
# not!
# Do a “gem list” wherever the project is already working
# (production?, some colleague machine?). Make a file with this format:
#
# chronic (0.2.3)
# colored (1.1)
# daemons (1.0.10)
# fastercsv (1.4.0)
# fastthread (1.0.7)
# feed-normalizer (1.5.1)
# feedtools (0.2.26)
# ferret (0.11.4)
# gcnovus-avatar (0.0.7)
# gem_plugin (0.2.3)
# gettext (1.93.0, 1.9.0)
#
# Run “rawclone yourgemsfile” on your machine and your ready to go.
#
# Tip 1: You could add this file to your repo for easy sharing and
# faster developing machine setup
#
# Tip 2: I would not recommend this without a proper rvm installation.
#
# Tip 3: Seriously install, configure and learn to use rvm.
#
# Tip 4: Eat more vegetables and be happy.
You can see/get/fork it here