Skip to content

Instantly share code, notes, and snippets.

@duckinator
Last active February 28, 2016 07:52
Show Gist options
  • Select an option

  • Save duckinator/329ea833a43b969fa45f to your computer and use it in GitHub Desktop.

Select an option

Save duckinator/329ea833a43b969fa45f to your computer and use it in GitHub Desktop.
# foo.gemspec
require 'rubygems'
require 'rubygems/dependency_installer'
Gem::Specification.new do |spec|
spec.name = 'foo'
spec.version = '0.0.1'
spec.author = 'Daniel J. Berger'
spec.license = 'Artistic 2.0'
spec.email = '[email protected]'
spec.homepage = 'http://github.com/djberg96/foo'
spec.summary = 'Foo'
spec.test_file = 'test_foo.rb'
spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
installer = Gem::DependencyInstaller.new
installer.install 'win32-ipc'
spec.extra_rdoc_files = ['README']
spec.description = "Test spec for general futzing"
end
#!/bin/sh
rm -f foo-0.0.1.gem
gem build foo.gemspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment