lib/gemsmith/templates/%project_name%/%project_name%.gemspec.erb in gemsmith-21.10.0 vs lib/gemsmith/templates/%project_name%/%project_name%.gemspec.erb in gemsmith-22.0.0

- old
+ new

@@ -1,75 +1,75 @@ Gem::Specification.new do |spec| - spec.name = "<%= configuration.project_name %>" - spec.version = "<%= configuration.project_version %>" - spec.authors = ["<%= configuration.author_name %>"] - spec.email = ["<%= configuration.author_email %>"] - spec.homepage = "<%= configuration.computed_project_url_home %>" + spec.name = "<%= settings.project_name %>" + spec.version = "<%= settings.project_version %>" + spec.authors = ["<%= settings.author_name %>"] + spec.email = ["<%= settings.author_email %>"] + spec.homepage = "<%= settings.computed_project_uri_home %>" spec.summary = "" - spec.license = "<%= configuration.license_label_version %>" + spec.license = "<%= settings.license_label_version %>" spec.metadata = { - <% unless configuration.computed_project_url_issues.empty? %> - "bug_tracker_uri" => "<%= configuration.computed_project_url_issues %>", + <% unless settings.computed_project_uri_issues.empty? %> + "bug_tracker_uri" => "<%= settings.computed_project_uri_issues %>", <% end %> - <% unless configuration.computed_project_url_versions.empty? %> - "changelog_uri" => "<%= configuration.computed_project_url_versions %>", + <% unless settings.computed_project_uri_versions.empty? %> + "changelog_uri" => "<%= settings.computed_project_uri_versions %>", <% end %> - <% unless configuration.computed_project_url_home.empty? %> - "documentation_uri" => "<%= configuration.computed_project_url_home %>", + <% unless settings.computed_project_uri_home.empty? %> + "documentation_uri" => "<%= settings.computed_project_uri_home %>", <% end %> - <% unless configuration.computed_project_url_funding.empty? %> - "funding_uri" => "<%= configuration.computed_project_url_funding %>", + <% unless settings.computed_project_uri_funding.empty? %> + "funding_uri" => "<%= settings.computed_project_uri_funding %>", <% end %> - "label" => "<%= configuration.project_label %>", - <% if configuration.computed_project_url_source.empty? %> - "rubygems_mfa_required" => "true" - <% else %> + "label" => "<%= settings.project_label %>", + <% unless settings.computed_project_uri_source.empty? %> "rubygems_mfa_required" => "true", - "source_code_uri" => "<%= configuration.computed_project_url_source %>" + "source_code_uri" => "<%= settings.computed_project_uri_source %>" + <% else %> + "rubygems_mfa_required" => "true" <% end %> } - <% if configuration.build_security %> + <% if settings.build_security %> spec.signing_key = Gem.default_key_path spec.cert_chain = [Gem.default_cert_path] <% end %> spec.required_ruby_version = "~> <%= RUBY_VERSION[/\d+\.\d+/] %>" - <% if configuration.build_cli %> + <% if settings.build_cli %> spec.add_dependency "cogger", "~> 0.21" <% end %> - <% if configuration.build_cli %> - spec.add_dependency "containable", "~> 0.0" + <% if settings.build_cli %> + spec.add_dependency "containable", "~> 0.2" <% end %> - <% if configuration.build_cli %> + <% if settings.build_cli %> spec.add_dependency "dry-monads", "~> 1.6" <% end %> - <% if configuration.build_cli %> - spec.add_dependency "etcher", "~> 1.6" + <% if settings.build_cli %> + spec.add_dependency "etcher", "~> 2.1" <% end %> - <% if configuration.build_cli %> - spec.add_dependency "infusible", "~> 3.5" + <% if settings.build_cli %> + spec.add_dependency "infusible", "~> 3.8" <% end %> - <% if configuration.build_refinements %> - spec.add_dependency "refinements", "~> 12.1" + <% if settings.build_refinements %> + spec.add_dependency "refinements", "~> 12.5" <% end %> - <% if configuration.build_cli %> - spec.add_dependency "runcom", "~> 11.0" + <% if settings.build_cli %> + spec.add_dependency "runcom", "~> 11.5" <% end %> - <% if configuration.build_cli %> - spec.add_dependency "sod", "~> 0.8" + <% if settings.build_cli %> + spec.add_dependency "sod", "~> 0.12" <% end %> - <% if configuration.build_cli %> + <% if settings.build_cli %> spec.add_dependency "spek", "~> 3.0" <% end %> - <% if configuration.build_zeitwerk %> + <% if settings.build_zeitwerk %> spec.add_dependency "zeitwerk", "~> 2.6" <% end %> - <% if configuration.build_cli %> + <% if settings.build_cli %> spec.bindir = "exe" - spec.executables << "<%= configuration.project_name %>" + spec.executables << "<%= settings.project_name %>" <% end %> spec.extra_rdoc_files = Dir["README*", "LICENSE*"] spec.files = Dir["*.gemspec", "lib/**/*"] end