forgitter.gemspec in forgitter-0.0.4 vs forgitter.gemspec in forgitter-0.0.5

- old
+ new

@@ -16,10 +16,20 @@ spec.files = `git ls-files -z`.split("\x0") spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ['lib'] + gem_dir = File.expand_path(File.dirname(__FILE__)) + '/' + `git submodule --quiet foreach pwd`.split($\).each do |submodule_path| + Dir.chdir(submodule_path) do + submodule_relative_path = submodule_path.sub gem_dir, '' + # issue git ls-files in submodule's directory and + # prepend the submodule path to create absolute file paths + `git ls-files`.split($\).each do |filename| + spec.files << "#{submodule_relative_path}/#{filename}" + end + end + end + spec.add_development_dependency 'bundler', '~> 1.5' spec.add_development_dependency 'rake' - - spec.add_dependency 'octokit' end