Skip to content

Commit

Permalink
chore(bundler): Align Ruby helper scripts on to_yaml
Browse files Browse the repository at this point in the history
Also do not rely on transitive imports but import 'yaml' explicitly.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Jul 1, 2024
1 parent 5904433 commit 74ab0cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
# [1] https://github.com/rubygems/bundler/blob/35be6d9a603084f719fec4f4028c18860def07f6/lib/bundler/cli/lock.rb#L49-L58

require 'bundler'
require 'yaml'

# Resolve dependencies independently of the Ruby interpreter.
Bundler.settings.set_global(:force_ruby_platform, true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
end
end

puts(YAML.dump(groups))
puts(groups.to_yaml)

0 comments on commit 74ab0cd

Please sign in to comment.