Skip to content

Commit 5a1659d

Browse files
authored
Merge pull request #578 from flori/warn-bundled-gems
Warn to install ostruct if json couldn't load it
2 parents cdbcbd0 + fff2859 commit 5a1659d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/json/generic_object.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
begin
33
require 'ostruct'
44
rescue LoadError
5+
warn "JSON::GenericObject requires 'ostruct'. Please install it with `gem install ostruct`."
56
end
67

78
module JSON

0 commit comments

Comments
 (0)