Skip to content

Commit

Permalink
Merge pull request #578 from flori/warn-bundled-gems
Browse files Browse the repository at this point in the history
Warn to install ostruct if json couldn't load it
  • Loading branch information
hsbt committed Apr 4, 2024
2 parents cdbcbd0 + fff2859 commit 5a1659d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/json/generic_object.rb
Expand Up @@ -2,6 +2,7 @@
begin
require 'ostruct'
rescue LoadError
warn "JSON::GenericObject requires 'ostruct'. Please install it with `gem install ostruct`."
end

module JSON
Expand Down

0 comments on commit 5a1659d

Please sign in to comment.