Sha256: 0f871493f78b004287a3ea18f14122cc898a04d70e7ac13df447d2aedbb77881
Contents?: true
Size: 749 Bytes
Versions: 7
Compression:
Stored size: 749 Bytes
Contents
module GemRelease class Gemspec < Template attr_reader :author, :email, :homepage, :summary, :description, :strategy def initialize(options = {}) super('gemspec', options) @author ||= user_name @email ||= user_email @homepage ||= "https://github.com/#{github_user}/#{name}" || "[your github name]" @summary ||= '[summary]' @description ||= '[description]' @strategy = options[:strategy] end def files case strategy when 'git' '`git ls-files app lib`.split("\n")' else 'Dir.glob("{lib/**/*,[A-Z]*}")' end end def exists? File.exists?(filename) end def filename "#{name}.gemspec" end end end
Version data entries
7 entries across 7 versions & 1 rubygems