Skip to content

Commit

Permalink
fix(ruby): update gemspec description/ruby version (#477)
Browse files Browse the repository at this point in the history
* fix(ruby): set gem summary based on whether it's a service
* fix(ruby): sync required ruby version with ruby client version
  • Loading branch information
malept committed Apr 10, 2024
1 parent 8163634 commit 53e3f36
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions templates/api/clients/ruby/client.gemspec.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ require_relative 'lib/{{ .Config.Name }}_client/version'
Gem::Specification.new do |spec|
spec.name = "{{ .Config.Name }}_client"
spec.version = {{ title .Config.Name }}Client::VERSION
spec.summary = "ruby client for {{ .Config.Name }} service"
{{- if stencil.Arg "service" }}
spec.summary = "gRPC client for {{ .Config.Name }} service"
{{- else }}
spec.summary = "gRPC types for {{ .Config.Name }}"
{{- end }}
spec.authors = ["{{ stencil.Arg "reportingTeam" }}"]
spec.homepage = "https://github.com/getoutreach/{{ .Config.Name }}"
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
spec.metadata["github_repo"] = "ssh://github.com/getoutreach/{{ .Config.Name }}"

spec.required_ruby_version = Gem::Requirement.new(">= 2.7.5")
spec.required_ruby_version = Gem::Requirement.new(">= {{ stencil.Arg "versions.grpcClients.ruby" }}")
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
end
Expand Down

0 comments on commit 53e3f36

Please sign in to comment.