Skip to content

Commit

Permalink
Add all 3 .gitignore files to the gemspec.
Browse files Browse the repository at this point in the history
If someone does "rake gems:unpack" to copy typhoeus into their Rails app
and then "rake gems:build" to compile it, the generated files (.o, .bundle, etc.)
should not be checked in to source control. If they are in source control
and you deploy to a server with a different architecture, the server
will have incorrectly built native files.

Adding the (already existing) .gitignore files to the gemspec prevents
this problem.

Also added *.gem to .gitignore so the local .gem file, if any, doesn't get added
to source control.
  • Loading branch information
Brian Morearty committed Jan 13, 2010
1 parent c3a0588 commit 2b6d581
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
.*.sw?
*.gem
5 changes: 4 additions & 1 deletion typhoeus.gemspec
Expand Up @@ -2,13 +2,15 @@

Gem::Specification.new do |s|
s.name = %q{typhoeus}
s.version = "0.1.14"
s.version = "0.1.15"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Paul Dix"]
s.date = %q{2009-07-03}
s.email = %q{paul@pauldix.net}
s.files = [
".gitignore",
"ext/typhoeus/.gitignore",
"ext/typhoeus/extconf.rb",
"ext/typhoeus/typhoeus_easy.h",
"ext/typhoeus/typhoeus_easy.c",
Expand All @@ -18,6 +20,7 @@ Gem::Specification.new do |s|
"ext/typhoeus/native.h",
"ext/typhoeus/native.c",
"lib/typhoeus.rb",
"lib/typhoeus/.gitignore",
"lib/typhoeus/easy.rb",
"lib/typhoeus/multi.rb",
"lib/typhoeus/remote.rb",
Expand Down

0 comments on commit 2b6d581

Please sign in to comment.