$LOAD_PATH.push File.expand_path("../lib", __FILE__) require "<%=config[:gem_name]%>/version" Gem::Specification.new do |spec| spec.name = "<%= config[:gem_name] %>" spec.version = <%= config[:gem_class] %>::VERSION spec.platform = <%= config[:gem_platform] %> spec.authors = ["<%= config[:author_name] %>"] spec.email = ["<%= config[:author_email] %>"] spec.homepage = "<%= config[:gem_url] %>" spec.summary = "TODO: Add gem summary here." spec.description = "TODO: Add gem description here." spec.license = "MIT" <%- if config[:post_install_message] -%> spec.post_install_message = "<%= config[:post_install_message] %>" <%- end -%> unless ENV["CI"] == "true" spec.signing_key = File.expand_path("<%= config[:gem_private_key] %>") spec.cert_chain = [File.expand_path("<%= config[:gem_public_key] %>")] end <%- if config[:pry] -%> case Gem.ruby_engine when "ruby" spec.add_development_dependency "pry-byebug" spec.add_development_dependency "pry-stack_explorer" when "jruby" spec.add_development_dependency "pry-nav" when "rbx" spec.add_development_dependency "pry-nav" spec.add_development_dependency "pry-stack_explorer" else raise RuntimeError.new("Unsupported Ruby Engine!") end <%- end -%> spec.required_ruby_version = "~> <%= config[:ruby_version] %>" <%- if config[:bin] -%> spec.add_dependency "thor" spec.add_dependency "thor_plus" <%- end -%> <%- if config[:rails] -%> spec.add_dependency "rails", "~> <%= config[:rails_version] %>" <%- end -%> <%- if config[:travis] -%> spec.add_development_dependency "rake" <%- end -%> <%- if config[:pry] -%> spec.add_development_dependency "pry" spec.add_development_dependency "pry-remote" spec.add_development_dependency "pry-rescue" <%- end -%> <%- if config[:rspec] -%> <%- rspec_gem = config[:rails] ? "rspec-rails" : "rspec" -%> spec.add_development_dependency "<%= rspec_gem %>" <%- end -%> <%- if config[:bin] -%> spec.add_development_dependency "aruba" <%- end -%> <%- if config[:guard] -%> spec.add_development_dependency "rb-fsevent" # Guard file events for OSX. spec.add_development_dependency "guard-rspec" <%- end -%> <%- if config[:code_climate] -%> spec.add_development_dependency "codeclimate-test-reporter" <%- end -%> spec.files = Dir["lib/**/*", "vendor/**/*"] spec.extra_rdoc_files = Dir["README*", "LICENSE*"] <%- if config[:bin] -%> spec.executables << "<%= config[:gem_name] %>" <%- end -%> spec.require_paths = ["lib"] end