Project

syntax_fix

0.01
No commit activity in last 3 years
No release in over 3 years
Replace Ruby 1.8 syntax with the Ruby 1.9 syntax all over the project
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0
 Project Readme

Description

syntax_fix gem goes through all files and directories and change the old Ruby 1.8 syntax to a new one.

Features

What we've got so far:

  • change hash style from ':key => "value"' to 'key: "value"'

Install

gem install syntax_fix

OR

Put this line in your Gemfile: gem 'syntax_fix'

Then bundle: $ bundle

Usage

syntax_fix command will check and rewrite all files with the new syntax (including nested files and directories)

-h or --help - output all the possible arguments that you can pass from a command line

-v or --verbose - be verbose about the actions

-p [PATH] or --path [PATH] - specify the relative path to start actions from