Rails Plugin Annotate Models For Spec And Spec Fixtures
I have been using “Annotate Models” rails plugin written by Dave Thomas since I found it around one and half year ago. It really helps while writing fixtures. But if you use RSpec you might miss schema info at the top of your rspec fixture file as I do. So, today I modify the plugin file so that it prepends schema info to spec file and fixture file. Below are the links of patch file:
svn patch to add schema info to spec file and spec fixture file
git patch to add schema info to spec file and spec fixture file
Git – Fast Version Control System
Git is getting popular in Rails community these days, as there were being many changes in rails to support Git.
Git is a open sourse fast version controller system. It was originally designed by Linus Torvalds to handle large projects. It was inspired by Monotone & BitKeeper. It is a distributed version controlling system. It gives you ability to commit, traverse into history while being offline. Actually every working copy of Git is a full-fledged repository. It has no central server like SVN. One can share his working-copy/repository by using various protocols like ssh, http, ftp etc. One thing I like about Git over SVN is that the size of Git’s repository, which is smaller compared to SVN.
I gave an introductory presentation in VinSol. I am sharing it with you, this is not very explanatory as I focused on speech more. Please share your views.VinSol
Installing SVN with ra_dav support for http and https protocols
I was not able to setup the SVN on the suse linux as easy as on Ubuntu. In Ubuntu I think its simply by apt-get install subversion, but here even after compiling the source I was not able to enable the support of ra_dav module for http and https protocol. Later on after all the research I finally did by properly installing neon with required configuration options needed by SVN for ra_dav and thought to consolidate them all as a blog post. So here it is…
Pre-requisites
- tzdata
- expat
- apr
- apr-util
- neon
First, install all the tzdata and expat with legacy commands 1) ./configure 2) make and 3) make install. without any specific conguration.
Install the apr(Apache Portable Runtime) like above as well.
Now install the apr-util by specifying your apr
The apr usually resides at /usr/local/apr if its not there in your machine, first find the directory using
find / -type d -name apr
then mention the apr in the apr-util configuration.
Now, its better and more configurable to install neon as a separate library and then to configure subversion accordingly.
Configure and install neon from the neon source
after installing neon check the configuration of neon from the executable file neon-config(which usually goes in /usr/local/bin/neon-config) by issuing the command neon-config. This will show the configuration options for neon. The configuration for –prefix shows the default(/usr/local) include path of installed neon library. For configuring the subversion we need to use this default include path or the path(–prefix) if you have mentioned while installing neon.
Now configure and install the subversion as
Now check the ra_dav support by issuing
svn –version
it will show the supported modules.

