Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Gems not getting any files (oops)

  • Loading branch information...
commit 1b3ee7b3aa4a9223cdac873c6c86f596d98b4af7 1 parent da688ab
Winton Welsh authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 gem_template.gemspec
9 gem_template.gemspec
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.