From 790ddd1e21f72a49d123db513c6383e0b3f2e061 Mon Sep 17 00:00:00 2001 From: Alex Woods Date: Tue, 17 Sep 2024 15:34:01 -0700 Subject: [PATCH] PR Cleanups 2 --- .../lib/aws-sdk-code-generator/views/service_module.rb | 2 +- .../templates/types_module.mustache | 1 + gems/aws-sdk-core/spec/aws/cbor_spec.rb | 1 - .../lib/aws-sdk-translate/customizations.rb | 8 ++++++++ .../spec/translate_document_encoding_spec.rb | 1 - 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/service_module.rb b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/service_module.rb index e70067e8f08..733d6a8fdc5 100644 --- a/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/service_module.rb +++ b/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/views/service_module.rb @@ -117,7 +117,7 @@ def example_var_name end def example_operation_name - raise "no operations found for the service" if @service.api['operations'].empty? + raise 'no operations found for the service' if @service.api['operations'].empty? underscore(@service.api['operations'].keys.first) end diff --git a/build_tools/aws-sdk-code-generator/templates/types_module.mustache b/build_tools/aws-sdk-code-generator/templates/types_module.mustache index 6844b31963f..12a6fae9133 100644 --- a/build_tools/aws-sdk-code-generator/templates/types_module.mustache +++ b/build_tools/aws-sdk-code-generator/templates/types_module.mustache @@ -51,6 +51,7 @@ module {{module_name}} end end + {{#types_customizations}} require "{{.}}" {{/types_customizations}} diff --git a/gems/aws-sdk-core/spec/aws/cbor_spec.rb b/gems/aws-sdk-core/spec/aws/cbor_spec.rb index 41213fb665f..6e3a3c445c8 100644 --- a/gems/aws-sdk-core/spec/aws/cbor_spec.rb +++ b/gems/aws-sdk-core/spec/aws/cbor_spec.rb @@ -3,7 +3,6 @@ require_relative '../spec_helper' require 'aws-sdk-core/cbor' - module Aws describe Cbor do [:cbor].each do |engine| diff --git a/gems/aws-sdk-translate/lib/aws-sdk-translate/customizations.rb b/gems/aws-sdk-translate/lib/aws-sdk-translate/customizations.rb index e69de29bb2d..792c6da81b4 100644 --- a/gems/aws-sdk-translate/lib/aws-sdk-translate/customizations.rb +++ b/gems/aws-sdk-translate/lib/aws-sdk-translate/customizations.rb @@ -0,0 +1,8 @@ + +module Aws + module Translate + module Plugins + autoload :TranslateDocumentEncoding, 'aws-sdk-translate/plugins/translate_document_encoding' + end + end +end diff --git a/gems/aws-sdk-translate/spec/translate_document_encoding_spec.rb b/gems/aws-sdk-translate/spec/translate_document_encoding_spec.rb index 90aad8c6cb0..6a2d7f2eebc 100644 --- a/gems/aws-sdk-translate/spec/translate_document_encoding_spec.rb +++ b/gems/aws-sdk-translate/spec/translate_document_encoding_spec.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true require_relative 'spec_helper' -require_relative '../lib/aws-sdk-translate/plugins/translate_document_encoding' module Aws::Translate module Plugins