Skip to content

Commit

Permalink
Fix mustache issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alextwoods committed Feb 12, 2024
1 parent e424951 commit cabbb6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ def deprecated?
@service.deprecated?
end

Dependency = Struct.new(:gem, :version)
Dependency = Struct.new(:gem, :version) do
def gem_version
[gem, version].compact.map { |s| "'#{s}'"}.join(', ')
end
end

end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ Gem::Specification.new do |spec|

{{/metadata}}
{{#dependencies}}
{{#version}}
spec.add_dependency('{{gem}}', '{{version}}')
{{/version}}
{{^version}}
spec.add_dependency('{{gem}}')
{{/version}}
spec.add_dependency({{{gem_version}}})
{{/dependencies}}

spec.required_ruby_version = '>= 2.5'
Expand Down

0 comments on commit cabbb6e

Please sign in to comment.