23 Mar '14, 4pm

synvert = syntax + convert

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.

Full article: http://www.rubyflow.com/items/10747-synvert-syntax-convert

Tweets

CoffeeScript – Syntax Matters #Javascript

CoffeeScript – Syntax Matters #Javascript

railsjedi.com 22 Mar '14, 1pm

New Blog up and running! Money for Microapps CoffeeScript – Syntax Matters Building a Scrabble MMO in 48 hours Introductio...

synvert is referred in this ruby weekly issue

rubyweekly.com 27 Mar '14, 8pm

Learn how New Relic Browser provides valuable insights into the actual experience your real-users are having on your site....