Skip to content

Commit

Permalink
[rubygems/rubygems] We need to convert empty string for nil value
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt authored and matzbot committed Apr 19, 2023
1 parent fd981eb commit 2c91ec0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bundler/yaml_serializer.rb
Expand Up @@ -87,6 +87,8 @@ def convert_to_ruby_value(val)
val.to_i
elsif val.match?(/\Atrue|false\Z/)
val == "true"
elsif val.empty?
nil
else
val
end
Expand Down

0 comments on commit 2c91ec0

Please sign in to comment.