dark-panda / ffi-geos

ffi-geos is an implementation of the GEOS Ruby bindings in Ruby via FFI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Group files within a lib/ffi-geos subdirectory

dazuma opened this issue · 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
    ...
commented

Fixed in 7921101.