Skip to content

Commit

Permalink
chore: sync release-please-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
arielvalentin committed Nov 24, 2024
1 parent 81cbe08 commit 0e5dd05
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 43 deletions.
87 changes: 44 additions & 43 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,54 @@
{
"helpers/mysql": "0.1.1",
"helpers/sql_obfuscation": "0.1.1",
"instrumentation/base": "0.22.4",
"instrumentation/graphql": "0.28.2",
"helpers/sql-obfuscation": "0.2.0",
"instrumentation/action_mailer": "0.2.0",
"instrumentation/action_pack": "0.10.0",
"instrumentation/action_view": "0.7.3",
"instrumentation/active_job": "0.7.8",
"instrumentation/active_model_serializers": "0.20.2",
"instrumentation/active_record": "0.8.1",
"instrumentation/active_support": "0.6.0",
"instrumentation/all": "0.69.0",
"instrumentation/aws_lambda": "0.1.1",
"instrumentation/aws_sdk": "0.7.0",
"instrumentation/base": "0.22.6",
"instrumentation/bunny": "0.21.4",
"instrumentation/concurrent_ruby": "0.21.4",
"instrumentation/dalli": "0.25.4",
"instrumentation/delayed_job": "0.22.4",
"instrumentation/ethon": "0.21.8",
"instrumentation/excon": "0.22.4",
"instrumentation/faraday": "0.24.6",
"instrumentation/grape": "0.2.0",
"instrumentation/graphql": "0.28.4",
"instrumentation/gruf": "0.2.1",
"instrumentation/racecar": "0.3.2",
"instrumentation/rake": "0.2.2",
"instrumentation/rdkafka": "0.4.6",
"instrumentation/trilogy": "0.59.3",
"instrumentation/active_support": "0.5.1",
"instrumentation/action_mailer": "0.1.0",
"instrumentation/action_view": "0.7.0",
"instrumentation/action_pack": "0.9.0",
"instrumentation/active_job": "0.7.1",
"instrumentation/resque": "0.5.2",
"instrumentation/bunny": "0.21.3",
"instrumentation/active_record": "0.7.2",
"instrumentation/aws_sdk": "0.5.2",
"instrumentation/aws_lambda": "0.1.0",
"instrumentation/lmdb": "0.22.2",
"instrumentation/http": "0.23.3",
"instrumentation/http_client": "0.22.6",
"instrumentation/http": "0.23.4",
"instrumentation/http_client": "0.22.7",
"instrumentation/httpx": "0.1.2",
"instrumentation/koala": "0.20.5",
"instrumentation/active_model_serializers": "0.20.1",
"instrumentation/concurrent_ruby": "0.21.3",
"instrumentation/dalli": "0.25.3",
"instrumentation/delayed_job": "0.22.2",
"instrumentation/ethon": "0.21.7",
"instrumentation/excon": "0.22.3",
"instrumentation/faraday": "0.24.4",
"instrumentation/mongo": "0.22.3",
"instrumentation/mysql2": "0.27.1",
"instrumentation/net_http": "0.22.6",
"instrumentation/pg": "0.27.3",
"instrumentation/que": "0.8.1",
"instrumentation/rack": "0.24.5",
"instrumentation/rails": "0.30.2",
"instrumentation/grape": "0.1.8",
"instrumentation/redis": "0.25.6",
"instrumentation/restclient": "0.22.6",
"instrumentation/lmdb": "0.22.3",
"instrumentation/mongo": "0.22.4",
"instrumentation/mysql2": "0.28.0",
"instrumentation/net_http": "0.22.7",
"instrumentation/pg": "0.29.0",
"instrumentation/que": "0.8.4",
"instrumentation/racecar": "0.3.4",
"instrumentation/rack": "0.25.0",
"instrumentation/rails": "0.33.0",
"instrumentation/rake": "0.2.2",
"instrumentation/rdkafka": "0.4.8",
"instrumentation/redis": "0.25.7",
"instrumentation/resque": "0.5.2",
"instrumentation/restclient": "0.22.7",
"instrumentation/rspec": "0.3.3",
"instrumentation/ruby_kafka": "0.21.1",
"instrumentation/sidekiq": "0.25.5",
"instrumentation/sinatra": "0.23.5",
"instrumentation/all": "0.56.0",
"instrumentation/ruby_kafka": "0.21.3",
"instrumentation/sidekiq": "0.25.7",
"instrumentation/sinatra": "0.24.1",
"instrumentation/trilogy": "0.60.0",
"processor/baggage": "0.2.0",
"propagator/ottrace": "0.21.2",
"propagator/xray": "0.22.1",
"propagator/ottrace": "0.21.3",
"propagator/vitess": "0.1.0",
"propagator/xray": "0.22.2",
"resources/azure": "0.1.0",
"resources/container": "0.1.1",
"resources/google_cloud_platform": "0.1.0"
Expand Down
36 changes: 36 additions & 0 deletions bin/sync-release-please
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env ruby

require 'json'

# Function to extract VERSION constant from a file
def extract_version(file_path)
version = nil
File.open(file_path, 'r') do |file|
file.each_line do |line|
if line =~ /VERSION\s*=\s*['"]([^'"]+)['"]/
version = $1
break
end
end
end
version
end

# Hash to store the directory names and their versions
versions = {}

# Find all version.rb files
Dir.glob('**/version.rb').each do |file_path|
# Extract the top 2 level directories
top_dirs = file_path.split('/')[0..1].join('/')
# Extract the version
version = extract_version(file_path)
# Store in the hash
versions[top_dirs] = version if version
end

# Write the hash to a JSON file
File.open('.release-please-manifest.json', 'w') do |file|
file.write(JSON.pretty_generate(versions))
file.write("\n")
end

0 comments on commit 0e5dd05

Please sign in to comment.