Sha256: 7fce543d997f6c992d75cfb61fc47b49692944c131f77bb8353b2d2aec774881

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

#!/usr/bin/env gem1.9 build
# encoding: utf-8

# Run ./<%= @name %>.gemspec or gem build <%= @name %>.gemspec
# NOTE: we can't use require_relative because when we run gem build, it use eval for executing this file
require File.join(File.dirname(__FILE__), "lib", "<%= @name %>")

Gem::Specification.new do |s|
  s.name = "<%= @name %>"
  s.version = <%= @constant %>::VERSION
  s.authors = ["<%= @name %>"]
  s.homepage = "http://github.com/<%= @github_user %>/<%= @github_repository %>"
  s.summary = "" # TODO: summary
  s.description = "" # TODO: long description
  s.cert_chain = nil
  s.email = # TODO: your mail
  s.has_rdoc = true

  # files
  s.files = Dir.glob("**/*") - Dir.glob("pkg/*")
  s.executables = Dir["bin/*"].map { |script| File.basename(script) }
  s.default_executable = "<%= @name %>"
  s.require_paths = ["lib"]

  # Ruby version
  s.required_ruby_version = ::Gem::Requirement.new(">= 1.9")

  # runtime dependencies
  # s.add_dependency "my-gem"

  # development dependencies
  # use gem install rango --development if you want to install them
  # s.add_development_dependency "simple-templater"

  # RubyForge
  s.rubyforge_project = "<%= @name %>"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple-templater-0.0.1.4 stubs/project/content/%name%.gemspec.rbt
simple-templater-0.1.pre stubs/project/content/%name%.gemspec.rbt