This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Part of Vagrant's gemspec | |
# The following block of code determines the files that should be included | |
# in the gem. It does this by reading all the files in the directory where | |
# this gemspec is, and parsing out the ignored files from the gitignore. | |
# Note that the entire gitignore(5) syntax is not supported, specifically | |
# the "!" syntax, but it should mostly work correctly. | |
root_path = File.dirname(__FILE__) | |
all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") } | |
all_files.reject! { |file| [".", ".."].include?(File.basename(file)) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Part of Bundler's gemspec | |
spec.files = `git ls-files -z`.split("\x0") | |
spec.files += Dir.glob('lib/bundler/man/**/*') # man/ is ignored by git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A generated gemspec file using Bundler | |
# coding: utf-8 | |
lib = File.expand_path('../lib', __FILE__) | |
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | |
require 'test/version' | |
Gem::Specification.new do |spec| | |
spec.name = "test" | |
spec.version = Test::VERSION |
NewerOlder