module GemRelease
  class Gemspec < Template
    attr_reader :authors, :email, :homepage, :summary, :description

    def initialize(options = {})
      super

      @authors     ||= [user_name]
      @email       ||= user_email
      @homepage    ||= "http://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

    def template_name
      'gemspec.erb'
    end
  end
end

module GemRelease
  class Gemspec < Template
    attr_reader :authors, :email, :homepage, :summary, :description

    def initialize(options = {})
      super

      @authors     ||= [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

    def template_name
      'gemspec.erb'
    end
  end
end

Use https for github homepage.
Use https for github homepage.

github uses https for everything nowadays.