Skip to content

Commit

Permalink
Don't package up specs and feature tests
Browse files Browse the repository at this point in the history
Tests aren't useful for end users of the gem, and excluding them from
the gem them reduces the size of the download.

Since rubygems/bundler#3207 this has been the default for gems created
using `bundler gem`, and I've taken the code for excluding them from
there.
  • Loading branch information
Iain Beeston authored and joshuaclayton committed Feb 5, 2016
1 parent 935f014 commit be67cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion factory_girl.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Gem::Specification.new do |s|
using factories - less error-prone, more explicit, and
all-around easier to work with than fixtures.}

s.files = `git ls-files`.split("\n")
s.files = `git ls-files`.split("\n").reject { |f| f.match(%r{^(spec|features)/}) }

s.require_path = 'lib'
s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
Expand Down

0 comments on commit be67cbd

Please sign in to comment.