lib/gapic/generators/cloud_generator.rb in gapic-generator-cloud-0.7.2 vs lib/gapic/generators/cloud_generator.rb in gapic-generator-cloud-0.7.4
- old
+ new
@@ -31,9 +31,14 @@
# generate.
def initialize api
gem_config = api.configuration[:gem] ||= {}
gem_config[:homepage] ||= "https://github.com/googleapis/google-cloud-ruby"
+ # The gapic metadata generation is disabled by default as per spec.
+ # However it should be enabled by default for cloud libraries, otherwise we'll have to
+ # enable it in every synth/bazel file.
+ api.configuration[:generate_metadata] = true if api.configuration[:generate_metadata].nil?
+
super
# Configure to use prefer Google Cloud templates
use_templates! File.join __dir__, "../../../templates/cloud"
end