diff --git a/.kokoro/release.sh b/.kokoro/release.sh index 4adfa232..51372584 100755 --- a/.kokoro/release.sh +++ b/.kokoro/release.sh @@ -8,6 +8,4 @@ export GEM_HOME=$HOME/.gem export PATH=$GEM_HOME/bin:$PATH gem install --no-document toys -toys release install-python-tools -v -python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script -toys release perform -v --enable-docs < /dev/null +toys release perform -v --reporter-org=googleapis --enable-docs --force-republish --enable-docs --enable-rad < /dev/null diff --git a/lib/active_record/connection_adapters/spanner/schema_statements.rb b/lib/active_record/connection_adapters/spanner/schema_statements.rb index 6a7cde9f..91989a99 100644 --- a/lib/active_record/connection_adapters/spanner/schema_statements.rb +++ b/lib/active_record/connection_adapters/spanner/schema_statements.rb @@ -109,7 +109,7 @@ def col.primary_key? end def rename_table _table_name, _new_name - raise ActiveRecordSpannerAdapter::NotSupportedError, \ + raise ActiveRecordSpannerAdapter::NotSupportedError, "rename_table is not implemented" end @@ -208,13 +208,13 @@ def change_column_null table_name, column_name, null, _default = nil end def change_column_default _table_name, _column_name, _default_or_changes - raise ActiveRecordSpannerAdapter::NotSupportedError, \ + raise ActiveRecordSpannerAdapter::NotSupportedError, "change column with default value not supported." end def rename_column table_name, column_name, new_column_name if ActiveRecord::Base.connection.ddl_batch? - raise ActiveRecordSpannerAdapter::NotSupportedError, \ + raise ActiveRecordSpannerAdapter::NotSupportedError, "rename_column in a DDL Batch is not supported." end column = information_schema do |i| @@ -642,8 +642,7 @@ def execute_schema_statements statements end def information_schema - info_schema = \ - ActiveRecordSpannerAdapter::Connection.information_schema @config + info_schema = ActiveRecordSpannerAdapter::Connection.information_schema @config return info_schema unless block_given? diff --git a/lib/activerecord_spanner_adapter/connection.rb b/lib/activerecord_spanner_adapter/connection.rb index ec7c586b..48010382 100644 --- a/lib/activerecord_spanner_adapter/connection.rb +++ b/lib/activerecord_spanner_adapter/connection.rb @@ -47,7 +47,7 @@ def self.reset_information_schemas! def self.information_schema config @information_schemas ||= {} - @information_schemas[database_path(config)] ||= \ + @information_schemas[database_path(config)] ||= ActiveRecordSpannerAdapter::InformationSchema.new new(config) end @@ -204,7 +204,7 @@ def run_batch def execute_query sql, params: nil, types: nil, single_use_selector: nil, request_options: nil if params - converted_params, types = \ + converted_params, types = Google::Cloud::Spanner::Convert.to_input_params_and_types( params, types )