From 6fb1de798c5383f089880a80f025a568b9a41a66 Mon Sep 17 00:00:00 2001 From: quinna-h Date: Mon, 23 Dec 2024 15:48:54 -0500 Subject: [PATCH] linting checks --- lib/datadog/tracing/contrib/action_cable/integration.rb | 1 + lib/datadog/tracing/contrib/action_mailer/integration.rb | 2 +- lib/datadog/tracing/contrib/action_pack/integration.rb | 1 + lib/datadog/tracing/contrib/action_view/integration.rb | 2 +- lib/datadog/tracing/contrib/active_job/integration.rb | 2 +- lib/datadog/tracing/contrib/active_record/integration.rb | 3 ++- lib/datadog/tracing/contrib/active_support/integration.rb | 2 +- lib/datadog/tracing/contrib/aws/integration.rb | 2 +- lib/datadog/tracing/contrib/concurrent_ruby/integration.rb | 2 +- lib/datadog/tracing/contrib/httprb/integration.rb | 2 +- lib/datadog/tracing/contrib/kafka/integration.rb | 2 +- lib/datadog/tracing/contrib/mongodb/integration.rb | 2 +- lib/datadog/tracing/contrib/presto/integration.rb | 2 +- lib/datadog/tracing/contrib/rest_client/integration.rb | 2 +- 14 files changed, 15 insertions(+), 12 deletions(-) diff --git a/lib/datadog/tracing/contrib/action_cable/integration.rb b/lib/datadog/tracing/contrib/action_cable/integration.rb index 311d328470b..1699238dd4c 100644 --- a/lib/datadog/tracing/contrib/action_cable/integration.rb +++ b/lib/datadog/tracing/contrib/action_cable/integration.rb @@ -20,6 +20,7 @@ class Integration def self.gem_name 'actioncable' end + def self.version Gem.loaded_specs['actioncable'] && Gem.loaded_specs['actioncable'].version end diff --git a/lib/datadog/tracing/contrib/action_mailer/integration.rb b/lib/datadog/tracing/contrib/action_mailer/integration.rb index f80e9df2e92..07fef8095af 100644 --- a/lib/datadog/tracing/contrib/action_mailer/integration.rb +++ b/lib/datadog/tracing/contrib/action_mailer/integration.rb @@ -17,7 +17,7 @@ class Integration # @public_api Changing the integration name or integration options can cause breaking changes register_as :action_mailer, auto_patch: false - + def self.gem_name 'actionmailer' end diff --git a/lib/datadog/tracing/contrib/action_pack/integration.rb b/lib/datadog/tracing/contrib/action_pack/integration.rb index beeda608ba0..c0efa9196dc 100644 --- a/lib/datadog/tracing/contrib/action_pack/integration.rb +++ b/lib/datadog/tracing/contrib/action_pack/integration.rb @@ -21,6 +21,7 @@ class Integration def self.gem_name 'actionpack' end + def self.version Gem.loaded_specs['actionpack'] && Gem.loaded_specs['actionpack'].version end diff --git a/lib/datadog/tracing/contrib/action_view/integration.rb b/lib/datadog/tracing/contrib/action_view/integration.rb index 0c1a31c70d5..48dd75fe94c 100644 --- a/lib/datadog/tracing/contrib/action_view/integration.rb +++ b/lib/datadog/tracing/contrib/action_view/integration.rb @@ -21,7 +21,7 @@ class Integration def self.gem_name 'actionview' end - + def self.version # ActionView is its own gem in Rails 4.1+ if Gem.loaded_specs['actionview'] diff --git a/lib/datadog/tracing/contrib/active_job/integration.rb b/lib/datadog/tracing/contrib/active_job/integration.rb index 755d5ce3ce4..73b912a894f 100644 --- a/lib/datadog/tracing/contrib/active_job/integration.rb +++ b/lib/datadog/tracing/contrib/active_job/integration.rb @@ -20,7 +20,7 @@ class Integration def self.gem_name 'activejob' end - + def self.version Gem.loaded_specs['activejob'] && Gem.loaded_specs['activejob'].version end diff --git a/lib/datadog/tracing/contrib/active_record/integration.rb b/lib/datadog/tracing/contrib/active_record/integration.rb index 39e78662e9b..f9ac1048453 100644 --- a/lib/datadog/tracing/contrib/active_record/integration.rb +++ b/lib/datadog/tracing/contrib/active_record/integration.rb @@ -21,10 +21,11 @@ class Integration # @public_api Changing the integration name or integration options can cause breaking changes register_as :active_record, auto_patch: false + def self.gem_name 'activerecord' end - + def self.version Gem.loaded_specs['activerecord'] && Gem.loaded_specs['activerecord'].version end diff --git a/lib/datadog/tracing/contrib/active_support/integration.rb b/lib/datadog/tracing/contrib/active_support/integration.rb index 366e6e84d65..e335a6349a1 100644 --- a/lib/datadog/tracing/contrib/active_support/integration.rb +++ b/lib/datadog/tracing/contrib/active_support/integration.rb @@ -22,7 +22,7 @@ class Integration def self.gem_name 'activesupport' end - + def self.version Gem.loaded_specs['activesupport'] && Gem.loaded_specs['activesupport'].version end diff --git a/lib/datadog/tracing/contrib/aws/integration.rb b/lib/datadog/tracing/contrib/aws/integration.rb index 2d05a0ab671..167ea1be49a 100644 --- a/lib/datadog/tracing/contrib/aws/integration.rb +++ b/lib/datadog/tracing/contrib/aws/integration.rb @@ -19,7 +19,7 @@ class Integration def self.gem_name 'aws-sdk-core' end - + def self.version if Gem.loaded_specs['aws-sdk'] Gem.loaded_specs['aws-sdk'].version diff --git a/lib/datadog/tracing/contrib/concurrent_ruby/integration.rb b/lib/datadog/tracing/contrib/concurrent_ruby/integration.rb index 05c0b44a065..e82414273a3 100644 --- a/lib/datadog/tracing/contrib/concurrent_ruby/integration.rb +++ b/lib/datadog/tracing/contrib/concurrent_ruby/integration.rb @@ -19,7 +19,7 @@ class Integration def self.gem_name 'concurrent-ruby' end - + def self.version Gem.loaded_specs['concurrent-ruby'] && Gem.loaded_specs['concurrent-ruby'].version end diff --git a/lib/datadog/tracing/contrib/httprb/integration.rb b/lib/datadog/tracing/contrib/httprb/integration.rb index 7d0986517da..a5dd5fcc708 100644 --- a/lib/datadog/tracing/contrib/httprb/integration.rb +++ b/lib/datadog/tracing/contrib/httprb/integration.rb @@ -20,7 +20,7 @@ class Integration def self.gem_name 'http' end - + def self.version Gem.loaded_specs['http'] && Gem.loaded_specs['http'].version end diff --git a/lib/datadog/tracing/contrib/kafka/integration.rb b/lib/datadog/tracing/contrib/kafka/integration.rb index 45d6e01d24f..d0e934cb06d 100644 --- a/lib/datadog/tracing/contrib/kafka/integration.rb +++ b/lib/datadog/tracing/contrib/kafka/integration.rb @@ -19,7 +19,7 @@ class Integration def self.gem_name 'ruby-kafka' end - + def self.version Gem.loaded_specs['ruby-kafka'] && Gem.loaded_specs['ruby-kafka'].version end diff --git a/lib/datadog/tracing/contrib/mongodb/integration.rb b/lib/datadog/tracing/contrib/mongodb/integration.rb index 999865ab752..e4ad350ea62 100644 --- a/lib/datadog/tracing/contrib/mongodb/integration.rb +++ b/lib/datadog/tracing/contrib/mongodb/integration.rb @@ -20,7 +20,7 @@ class Integration def self.gem_name 'mongo' end - + def self.version Gem.loaded_specs['mongo'] && Gem.loaded_specs['mongo'].version end diff --git a/lib/datadog/tracing/contrib/presto/integration.rb b/lib/datadog/tracing/contrib/presto/integration.rb index 88fb321aacb..7bfae3d42a2 100644 --- a/lib/datadog/tracing/contrib/presto/integration.rb +++ b/lib/datadog/tracing/contrib/presto/integration.rb @@ -19,7 +19,7 @@ class Integration def self.gem_name 'presto-client' end - + def self.version Gem.loaded_specs['presto-client'] && Gem.loaded_specs['presto-client'].version end diff --git a/lib/datadog/tracing/contrib/rest_client/integration.rb b/lib/datadog/tracing/contrib/rest_client/integration.rb index df845935a3c..d3dc0bf3c30 100644 --- a/lib/datadog/tracing/contrib/rest_client/integration.rb +++ b/lib/datadog/tracing/contrib/rest_client/integration.rb @@ -19,7 +19,7 @@ class Integration def self.gem_name 'rest-client' end - + def self.version Gem.loaded_specs['rest-client'] && Gem.loaded_specs['rest-client'].version end