Skip to content

Commit

Permalink
linting checks
Browse files Browse the repository at this point in the history
  • Loading branch information
quinna-h committed Dec 23, 2024
1 parent 65aee38 commit 6fb1de7
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 12 deletions.
1 change: 1 addition & 0 deletions lib/datadog/tracing/contrib/action_cable/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/tracing/contrib/action_mailer/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/datadog/tracing/contrib/action_pack/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/tracing/contrib/action_view/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/tracing/contrib/active_job/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion lib/datadog/tracing/contrib/active_record/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/tracing/contrib/active_support/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/tracing/contrib/aws/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/tracing/contrib/concurrent_ruby/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/tracing/contrib/httprb/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/tracing/contrib/kafka/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/tracing/contrib/mongodb/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/tracing/contrib/presto/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/tracing/contrib/rest_client/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fb1de7

Please sign in to comment.