Sha256: 16487f1c3f2383dd621e8ebd00a3bbc41fb687cd531445794f7a8434b69d18a8
Contents?: true
Size: 747 Bytes
Versions: 1
Compression:
Stored size: 747 Bytes
Contents
module GemRelease class Gemspec < Template attr_reader :authors, :email, :homepage, :summary, :description def initialize(options = {}) super @authors ||= [`git config --get user.name`.strip] @email ||= `git config --get user.email`.strip @homepage ||= "http://github.com/#{github_user}/#{name}" || "[your github name]" @summary ||= '[summary]' @description ||= '[description]' end def files case @strategy || :git when :glob "Dir['{lib/**/*,[A-Z]*}']" when :git '`git ls-files {app,lib}`.split("\n")' end end def filename "#{name}.gemspec" end def template_name 'gemspec.erb' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gem-release-0.0.10 | lib/gem_release/gemspec.rb |