Add gemfile configuration for rails libs 3.0 and 3.1
Fix lower rails lib version boundaries.