This guide will demonstrate how to mirror an SVN into a Git repo. You're the target audience if you're an SVN user, just getting started with Git and need to coax your project team over to Git.
The branching scenario has been simplified for clarity.
| # if your db is currently up to date, just run make setup to touch all the files. otherwise start the db from scratch | |
| MIGRATIONS = $(shell ls db/migrate) | |
| RUN_FILES = $(addprefix db/run/,$(MIGRATIONS)) | |
| all: db/run release | |
| release: | |
| $(MAKE) migrate | |
| $(MAKE) db/run/tests_updated | |
| db/run: |
| # Colout Dwarf Fortress theme for Solarized terminals | |
| # First install colout, go to https://github.com/nojhan/colout | |
| # | |
| # mkdir ~/.colout | |
| # cp colout_df.py ~/.colout/ | |
| # tail -0f df/gamelog.txt | colout -T ~/.colout -t df | |
| # | |
| # I just started this for my own sake, please do add your own colors, regexes and stuff. | |
| # By Stefan Midjich |
| # Stick this in lib/tasks/assets.rake or similar | |
| # | |
| # A bug was introduced in rails in 7f1a666d causing the whole application cache | |
| # to be cleared everytime a precompile is run, but it is not neccesary and just | |
| # slows down precompiling. | |
| # | |
| # Secondary consequences are the clearing of the whole cache, which if using | |
| # the default file cache could cause an application level performance hit. | |
| # | |
| # This is already fixed in sprockets-rails for rails 4, but we patch here for |
| defaults: | |
| :port: 6379 | |
| :host: localhost | |
| development: | |
| :db: 2 | |
| :namespace: development | |
| # force use of Redis::Distributed | |
| :host: | |
| - localhost |
| # Need a method that works regardless of whether active_support/core_ext is loaded or not | |
| def today | |
| (Time.respond_to?(:zone) && Time.zone) ? | |
| Time.zone.today : | |
| Date.today | |
| end | |
| describe 'timezone support' do | |
| before :all do |