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

Refactor make code more idiomatic #18

Commits on Jul 27, 2016

  1. Add copyright notice

    Since the contribution is substantial, and following the usage
    instructions described in https://www.gnu.org/licenses/gpl-howto.html
    gonzalo-bulnes committed Jul 27, 2016
    Configuration menu
    Copy the full SHA
    e8a2369 View commit details
    Browse the repository at this point in the history
  2. Refactor simplify file lists in gemspec

    These lists of files are not modified often, and the Git versions
    are cryptic enough to allow useless files to be added to the gem.
    gonzalo-bulnes committed Jul 27, 2016
    Configuration menu
    Copy the full SHA
    8b97eee View commit details
    Browse the repository at this point in the history
  3. Refactor remove unused file requirements

    The entry points for the gem are:
    - the executable, which depends on the FileLoader and Server
    - the include in the hooks files, which I suggest taking care of later
    
    I think that the executable should probably not know about the internal
    organization of the gem, but it's mostly matter of appreciation (YMMV).
    gonzalo-bulnes committed Jul 27, 2016
    Configuration menu
    Copy the full SHA
    81ad17e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    027cf3a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bb937ae View commit details
    Browse the repository at this point in the history
  6. Refactor make method accessibilty explicit

    The FileLoader.unique_paths is not part of its API and should not
    be used by other classes/modules.
    gonzalo-bulnes committed Jul 27, 2016
    Configuration menu
    Copy the full SHA
    46c92d5 View commit details
    Browse the repository at this point in the history
  7. Minor refactor remove assertion on class

    Asserting on the objects class is not used much in Ruby, and
    in this case it was used in case 'hooks' were nil.
    Instead, 'hooks' could default to an empty array (which conveys
    more meaning that nil) and it would always responds to "#each".
    
    The solution only builds on top of the existing duplication,
    but that's a different problem.
    gonzalo-bulnes committed Jul 27, 2016
    Configuration menu
    Copy the full SHA
    606239b View commit details
    Browse the repository at this point in the history
  8. Refactor rename variables for clarity

    Minor use parens around arguments in method definitions and
    non-trivial method calls.
    gonzalo-bulnes committed Jul 27, 2016
    Configuration menu
    Copy the full SHA
    7668853 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f83259c View commit details
    Browse the repository at this point in the history
  10. Refactor move instance variables intialization

    Minor refactor use Array#inject to group statements
    Minor use parens in multi-arguments method calls
    gonzalo-bulnes committed Jul 27, 2016
    Configuration menu
    Copy the full SHA
    9ab28ad View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3e19d75 View commit details
    Browse the repository at this point in the history