Permalink
Browse files

Gems not getting any files (oops)

  • Loading branch information...
1 parent da688ab commit 1b3ee7b3aa4a9223cdac873c6c86f596d98b4af7 @winton committed Jan 10, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 gem_template.gemspec
@@ -1,5 +1,6 @@
# -*- encoding: utf-8 -*-
-lib = File.expand_path('../lib/', __FILE__)
+root = File.dirname(__FILE__)
+lib = "#{root}/lib"
$:.unshift lib unless $:.include?(lib)
require 'gem_template/gems'
@@ -24,8 +25,8 @@ Gem::Specification.new do |s|
s.add_development_dependency g.to_s, GemTemplate::Gems.versions[g]
end
- s.executables = `git ls-files -- {bin}/*`.split("\n").collect { |f| File.basename(f) }
- s.files = `git ls-files`.split("\n")
+ s.executables = `cd #{root} && git ls-files -- {bin}/*`.split("\n").collect { |f| File.basename(f) }
+ s.files = `cd #{root} && git ls-files`.split("\n")
s.require_paths = %w(lib)
- s.test_files = `git ls-files -- {features,test,spec}/*`.split("\n")
+ s.test_files = `cd #{root} && git ls-files -- {features,test,spec}/*`.split("\n")
end

0 comments on commit 1b3ee7b

Please sign in to comment.