From 5719c924b9f73b73d2a0678d9ed784ceff42866f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81mi=20Pre=CC=81vost?= Date: Mon, 10 Oct 2011 08:33:31 -0400 Subject: [PATCH] Use a more futureproof gemspec file --- teamocil.gemspec | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/teamocil.gemspec b/teamocil.gemspec index f6b53d3..70f1188 100644 --- a/teamocil.gemspec +++ b/teamocil.gemspec @@ -3,6 +3,7 @@ $:.push File.expand_path("../lib", __FILE__) require "teamocil" spec = Gem::Specification.new do |s| + # Metadata s.name = "teamocil" s.version = Teamocil::VERSION s.platform = Gem::Platform::RUBY @@ -11,13 +12,17 @@ spec = Gem::Specification.new do |s| s.homepage = "http://github.com/remiprev/teamocil" s.summary = "Easy window and split layouts for tmux" s.description = "Teamocil helps you set up window and splits layouts for tmux using YAML configuration files." - s.files = Dir["lib/**/*.rb", "README.md", "LICENSE", "bin/*", "spec/**/*.rb"] - s.require_path = "lib" - s.executables << "teamocil" - s.add_development_dependency("rake") - s.add_development_dependency("rspec") - s.add_development_dependency("yard") - s.add_development_dependency("maruku") + # Manifest + s.files = `git ls-files`.split("\n") + s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") + s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } + s.require_paths = ["lib"] + + # Dependencies + s.add_development_dependency "rake" + s.add_development_dependency "rspec" + s.add_development_dependency "yard" + s.add_development_dependency "maruku" end