Sha256: 9df43caec2eb12bcd1be400c32e2338acf6e5171c417ee76493440aa3985aafd

Contents?: true

Size: 1.96 KB

Versions: 1

Compression:

Stored size: 1.96 KB

Contents

# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "<%=config[:gem_name]%>/version"

Gem::Specification.new do |s|
  s.name									= "<%= config[:gem_name] %>"
  s.version								= <%= config[:gem_class] %>::VERSION
  s.platform							= <%= config[:gem_platform] %>
  s.author								= "<%= config[:author_name] %>"
  s.email									= "<%= config[:author_email] %>"
  s.homepage							= "<%= config[:gem_url] %>"
  s.summary								= "TODO: Add gem summary here."
  s.description						= "TODO: Add gem description here."
	s.license								= "MIT"
  <%- if config[:post_install_message] -%>
	s.post_install_message	= "<%= config[:post_install_message] %>"
	<%- end -%>

	s.required_ruby_version = "~> <%= config[:ruby_version] %>"
  <%- if config[:bin] -%>
	s.add_dependency "thor"
	s.add_dependency "thor_plus"
	<%- end -%>
  <%- if config[:rails] -%>
	s.add_dependency "rails", "~> <%= config[:rails_version] %>"
	<%- end -%>
  <%- if config[:travis] -%>
  s.add_development_dependency "rake"
	<%- end -%>
  <%- if config[:pry] -%>
  s.add_development_dependency "pry"
  s.add_development_dependency "pry-debugger"
  s.add_development_dependency "pry-rescue"
  s.add_development_dependency "pry-stack_explorer"
  s.add_development_dependency "pry-vterm_aliases"
  <%- end -%>
  <%- if config[:rspec] -%>
  <%- rspec_gem = config[:rails] ? "rspec-rails" : "rspec" -%>
  s.add_development_dependency "<%= rspec_gem %>"
	<%- end -%>
  <%- if config[:bin] -%>
  s.add_development_dependency "aruba"
  <%- end -%>
  <%- if config[:guard] -%>
  s.add_development_dependency "rb-fsevent" # Guard file events for OSX.
  s.add_development_dependency "rb-inotify" # Guard file events for Linux.
  s.add_development_dependency "guard-rspec"
	<%- end -%>

  s.files            = Dir["lib/**/*", "vendor/**/*"]
  s.extra_rdoc_files = Dir["README*", "LICENSE*"]
  <%- if config[:bin] -%>
	s.executables      << "<%= config[:gem_name] %>"
	<%- end -%>
  s.require_paths    = ["lib"]
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemsmith-2.1.0 lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt