Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add factory_bot_remover #12

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Commits on Apr 24, 2019

  1. Add factory_bot_remover

    This script is really a one time script for searching for files that use
    `FactoryBot.build` or `FactoryBot.create`, and replace them with the
    straight `ActiveRecord` equivalents.
    NickLaMuro committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    8f41e1b View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2019

  1. [factory_bot_remover] Convert to class

    Refactoring of this script into a runnable class, but also so it can be
    used in larger scripts.
    NickLaMuro committed Apr 25, 2019
    Configuration menu
    Copy the full SHA
    db8a8a2 View commit details
    Browse the repository at this point in the history
  2. [factory_bot_remover] Pure ruby

    Replaces external grep calls with custom some File/IO code.
    
    Written in a way where each file being searched is only requires 1 open
    operation, and only has to load in as much content as is necessary to do
    the replace (thanks to `.rewind` and `truncate`).
    NickLaMuro committed Apr 25, 2019
    Configuration menu
    Copy the full SHA
    99e200f View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2019

  1. [factory_bot_remover] Add replace_all script

    Determines all original factories that need to be replaced, and replaces
    them across all repos, creating a commit for each factory change.
    NickLaMuro committed Apr 26, 2019
    Configuration menu
    Copy the full SHA
    c6c6e91 View commit details
    Browse the repository at this point in the history
  2. [WIP][factory_bot_remover] Support multilines

    Allows finding and replacing of FactoryBot calls that are defined
    acrossed multiple lines.
    NickLaMuro committed Apr 26, 2019
    Configuration menu
    Copy the full SHA
    8c8f558 View commit details
    Browse the repository at this point in the history