require_relative "lib/<%= config.dig(:gem, :path) %>/identity" Gem::Specification.new do |spec| spec.name = <%= config.dig(:gem, :class) %>::Identity::NAME spec.version = <%= config.dig(:gem, :class) %>::Identity::VERSION spec.platform = <%= config.dig(:gem, :platform) %> spec.authors = ["<%= config.dig(:author, :name) %>"] spec.email = ["<%= config.dig(:author, :email) %>"] spec.homepage = "<%= config.dig(:gem, :url) %>" spec.summary = "" spec.license = "MIT" spec.metadata = { "source_code_uri" => "<%= config.dig(:gem, :url) %>", "changelog_uri" => "<%= config.dig(:gem, :url) %>/blob/master/CHANGES.md", "bug_tracker_uri" => "<%= config.dig(:gem, :url) %>/issues" } <%- if config.dig(:generate, :security) -%> spec.signing_key = Gem.default_key_path spec.cert_chain = [Gem.default_cert_path] <%- end -%> spec.required_ruby_version = "~> <%= config.dig(:versions, :ruby)[/\d+\.\d+/] %>" <%- if config.dig(:generate, :engine) -%> spec.add_dependency "rails", "~> <%= config.dig(:versions, :rails) %>" <%- end -%> <%- if config.dig(:generate, :cli) -%> spec.add_dependency "runcom", "~> 6.4" spec.add_dependency "thor", "~> 0.20" <%- end -%> <%- if config.dig(:generate, :bundler_audit) -%> spec.add_development_dependency "bundler-audit", "~> 0.7" <%- end -%> spec.add_development_dependency "gemsmith", "~> <%= Gemsmith::Identity::VERSION[/\d+\.\d+/] %>" <%- if config.dig(:generate, :git_lint) -%> spec.add_development_dependency "git-lint", "~> 1.3" <%- end -%> <%- if config.dig(:generate, :guard) -%> spec.add_development_dependency "guard-rspec", "~> 4.7" <%- end -%> <%- if config.dig(:generate, :pry) -%> spec.add_development_dependency "pry", "~> 0.13" spec.add_development_dependency "pry-byebug", "~> 3.9" <%- end -%> spec.add_development_dependency "rake", "~> 13.0" <%- if config.dig(:generate, :reek) -%> spec.add_development_dependency "reek", "~> 6.0" <%- end -%> <%- if config.dig(:generate, :rspec) -%> spec.add_development_dependency "<%= config.dig(:generate, :engine) ? "rspec-rails" : "rspec" %>", "~> 3.9" <%- end -%> <%- if config.dig(:generate, :rubocop) -%> spec.add_development_dependency "rubocop", "~> 1.3" spec.add_development_dependency "rubocop-performance", "~> 1.8" spec.add_development_dependency "rubocop-rake", "~> 0.5" <%- end -%> <%- if config.dig(:generate, :rubocop) && config.dig(:generate, :rspec) -%> spec.add_development_dependency "rubocop-rspec", "~> 2.0" <%- end -%> <%- if config.dig(:generate, :simple_cov) -%> spec.add_development_dependency "simplecov", "~> 0.19" <%- end -%> <%- if config.dig(:generate, :engine) -%> spec.files = Dir["app/**/*", "bin/**/*", "config/**/*", "lib/**/*", "vendor/**/*"] <%- else -%> spec.files = Dir["lib/**/*"] <%- end -%> spec.extra_rdoc_files = Dir["README*", "LICENSE*"] <%- if config.dig(:generate, :cli) -%> spec.executables << "<%= config.dig(:gem, :name) %>" <%- end -%> spec.require_paths = ["lib"] end