Skip to content

Commit

Permalink
feat: Include repo-metadata.json in generated libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
trambui09 committed May 18, 2021
1 parent 0aef2c3 commit 91b0f2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions google-apis-generator/lib/google/apis/generator.rb
Expand Up @@ -78,6 +78,7 @@ def render(json)
result.files[File.join(module_path, "service.rb")] = render_template("service.rb", context)
result.files[result.version_path] = render_template("initial-gem_version.rb", context)
result.files[File.join(spec_path, "generated_spec.rb")] = render_template("generated_spec.rb", context)
result.files[File.join(base_path, ".repo-metadata.json")] = render_template("repo-metadata.json", context)
result
end

Expand Down
@@ -0,0 +1,7 @@
{
"api_id": "<%= api.id %>",
"name_pretty": "<%= api.title %>",
"distribution_name": "<%= api.gem_name %>",
"language": "ruby",
"library_type": "REST"
}

0 comments on commit 91b0f2c

Please sign in to comment.