lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt in gemsmith-5.0.0 vs lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt in gemsmith-5.1.0

- old
+ new

@@ -1,11 +1,11 @@ $LOAD_PATH.push File.expand_path("../lib", __FILE__) -require "<%=config[:gem_name]%>/version" +require "<%=config[:gem_name]%>/identity" Gem::Specification.new do |spec| - spec.name = "<%= config[:gem_name] %>" - spec.version = <%= config[:gem_class] %>::VERSION + spec.name = <%= config[:gem_name] %>::Identity.name + spec.version = <%= config[:gem_class] %>::Identity.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." @@ -20,22 +20,10 @@ spec.signing_key = File.expand_path("<%= config[:gem_private_key] %>") spec.cert_chain = [File.expand_path("<%= config[:gem_public_key] %>")] end <%- 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" - 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 -%> @@ -45,9 +33,11 @@ <%- if config[:travis] -%> spec.add_development_dependency "rake" <%- end -%> <%- if config[:pry] -%> spec.add_development_dependency "pry" + spec.add_development_dependency "pry-byebug" + spec.add_development_dependency "pry-stack_explorer" spec.add_development_dependency "pry-remote" spec.add_development_dependency "pry-rescue" <%- end -%> <%- if config[:rspec] -%> <%- rspec_gem = config[:rails] ? "rspec-rails" : "rspec" -%>