Skip to content

Instantly share code, notes, and snippets.

@chrisarcand
Last active August 29, 2015 13:56
Show Gist options
  • Save chrisarcand/8978372 to your computer and use it in GitHub Desktop.
Save chrisarcand/8978372 to your computer and use it in GitHub Desktop.
Using Git in Your Gemspec
# 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
spec.authors = ["ChrisArcand"]
spec.email = ["[email protected]"]
spec.summary = %q{TODO: Write a short summary. Required.}
spec.description = %q{TODO: Write a longer description. Optional.}
spec.homepage = ""
spec.license = "MIT"
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"]
spec.add_development_dependency "bundler", "~> 1.5"
spec.add_development_dependency "rake"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment