dark-panda/ffi-geos

Group files within a lib/ffi-geos subdirectory

dazuma opened this issue · 1 comments

Currently, all the files in the gem are located at the root. This increases the chances of filename collisions with the standard library, other gems, and even the internal implementation of ruby. Especially since some of the files have highly generic names such as "tools.rb" and "utils.rb".

The common practice is to have a single file at the root, with the same name as your gem (i.e. ffi-geos.rb). Then create a subdirectory with the same name as your gem, and put all of the auxiliary files there. For example:

lib/
  ffi-geos.rb
  ffi-geos/
    buffer_params.rb
    coordinate_sequence.rb
    ...

Fixed in 7921101.