Skip to content

Commit

Permalink
add hardcoded
Browse files Browse the repository at this point in the history
  • Loading branch information
quinna-h committed Jan 7, 2025
1 parent 59a7546 commit fea655e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/scripts/find_gem_version_bounds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def initialize(directory: 'gemfiles/', contrib_dir: 'lib/datadog/tracing/contrib
def process
parse_gemfiles
process_integrations
include_hardcoded_versions
write_output
end

Expand Down Expand Up @@ -111,6 +112,24 @@ def process_integrations
end
end

def include_hardcoded_versions
# `httpx` is maintained externally
@integration_json_mapping['httpx'] = [
'0.11', # Min version Ruby
'0.11', # Max version Ruby
nil, # Min version JRuby
nil # Max version JRuby
]

# `makara` is part of `activerecord`
@integration_json_mapping['makara'] = [
'0.3.5', # Min version Ruby
'0.3.5', # Max version Ruby
nil, # Min version JRuby
nil # Max version JRuby
]
end

def resolve_integration_name(integration)
mod_name = SPECIAL_CASES[integration] || integration.split('_').map(&:capitalize).join
module_name = "Datadog::Tracing::Contrib::#{mod_name}"
Expand Down

0 comments on commit fea655e

Please sign in to comment.