davelyon/table_diff — Issue #1: Files not included in installed gem
Author: mattscilipoti
Created: 2012-02-21 20:48:27+00:00
State: open

Problem:
Only lib/table_diff.rb is included when you install the gem. lib/table_diff/version et al are not.

Cause:
The files in lib/table_diff are not in the gem manifest.

Possible solutions, ordered by (my understanding of) community preference:
* add them manually,
* utilize git: `s.files = `git ls-files`.split("\n")`
* utilize Dir: `s.files = %w[readme.md] + Dir["{lib,test}/**/*.rb"]`

The manual version ensures that only the correct files are included, but is harder to maintain.
The git version updates automatically, ignores files that are ignored by git, but may include files you don't want (unlikely - IMHO)
The last is quite greedy and can easily include unwanted files.