Skip to content
Browse files

No longer ignoring gemspec

  • Loading branch information...
1 parent eb5c8d1 commit 4009d8dc10541ae8bba5b262a13ce38c92c8b55f @winton committed
Showing with 30 additions and 1 deletion.
  1. +0 −1 .gitignore
  2. +30 −0 gem_template.gemspec
View
1 .gitignore
@@ -1,6 +1,5 @@
.DS_Store
*.gem
-*.gemspec
coverage
pkg
tmp
View
30 gem_template.gemspec
@@ -0,0 +1,30 @@
+# -*- encoding: utf-8 -*-
+lib = File.expand_path('../lib/', __FILE__)
+$:.unshift lib unless $:.include?(lib)
+
+require 'gem_template/version'
+require 'rubygems'
+require 'bundler'
+
+Gem::Specification.new do |s|
+ s.name = "gem_template"
+ s.version = GemTemplate::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Winton Welsh"]
+ s.email = ["mail@wintoni.us"]
+ s.homepage = "http://github.com/winton/gem_template"
+ s.summary = ""
+ s.description = ""
+
+ Bundler.definition.dependencies.each do |dep|
+ if dep.groups.include?(:gemspec)
+ s.add_dependency dep.name, dep.requirement
+ elsif dep.groups.include?(:gemspec_dev)
+ s.add_development_dependency dep.name, dep.requirement
+ end
+ end
+
+ s.files = Dir.glob("{bin,lib}/**/*") + %w(LICENSE README.md)
+ s.executables = Dir.glob("{bin}/*").collect { |f| File.basename(f) }
+ s.require_path = 'lib'
+end

0 comments on commit 4009d8d

Please sign in to comment.
Something went wrong with that request. Please try again.