From 5d2d8f8bb0e078451313f04759abb0c3c5196eb3 Mon Sep 17 00:00:00 2001 From: Aaron Alexander Date: Tue, 27 Jan 2015 18:21:54 -0500 Subject: [PATCH 1/2] Change the files in the Gemspec to exclude some files (like .gitignore) --- mmonit.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmonit.gemspec b/mmonit.gemspec index 7626487..eee632f 100644 --- a/mmonit.gemspec +++ b/mmonit.gemspec @@ -9,7 +9,7 @@ Gem::Specification.new do |gem| gem.summary = 'Ruby interface to M/Monit' gem.description = gem.summary gem.name = 'mmonit' - gem.files = `git ls-files`.split("\n") + gem.files = Dir.glob("{bin,lib}/**/*") + %w(README.md) gem.require_paths = ['lib'] gem.version = MMonit::VERSION end From b47ceddf6ec6932d56a8833f3811b2eb3227b2a7 Mon Sep 17 00:00:00 2001 From: Aaron Alexander Date: Tue, 27 Jan 2015 18:22:26 -0500 Subject: [PATCH 2/2] Ignore the built .gem file --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index c00df13..a06fae0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.deb +mmonit-*.gem \ No newline at end of file