RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  

synvert = syntax + convert

synvert is a very interesting project we are working on now, it can parse your ruby source code, find out old deprecated ruby code and then automatically replace them with new better syntax ruby code according to predefined rules.

We already define 4 snippets (predefined rules),

1. use FactoryGirl short syntax, e.g. replace FactoryGirl.create(:post) with create(:post)
2. convert dynamic finders, e.g. replace User.find_all_by_login_and_active('name', true) with User.where(login: 'name', active: true)
3. use strong_parameters, remove attr_accessible in models and add def xxx_params; end in controllers
4. automatically upgrade rails 3.2 to rails 4.0

synvert is still in alpha stage, any suggestions or pull requests are welcome.


At this moment, while, duffel Moncler down jackets Outlet baggage currently have taken away a creator travelling bag community and much companies, just like Private coach purses and handbags, currently have construct their editions with duffel baggage. Duffel baggage will be seen as a long, cylindrical Moncler down jackets Outlet contour by using not one but two extensive fecal material clothing and also cord during its top rated this is often tied to nearby a travelling bag. Several individualities mean several demands plus backyard garden creator baggage. Don’t Moncler down jackets Outlet just simply race out of and purchase all those Marc
Moncler down jackets Outlet Jacobs purses and handbags you’ve ended up salvaging right up to get.goging - November 04, 2014 07:58

Post a Comment

Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!