Skip to content

Commit d999a78

Browse files
committed
Add wrapper file for sanger-jsonapi-resources to ensure compatibility with RubyGems
1 parent a7f21c4 commit d999a78

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/sanger-jsonapi-resources.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# As we are packaging 'sanger-jsonapi-resources' as a separate gem, RubyGems expects
2+
# the main file to be 'lib/sanger-jsonapi-resources.rb' to match the gem name.
3+
# Without this file, requiring the gem or Rails autoloading would fail, even if the internal code is unchanged.
4+
# This file exists to ensure compatibility with RubyGems and Bundler.
5+
# The easiest solution is to use this wrapper file, which simply requires the original 'jsonapi-resources' code,
6+
# so all internal references and modules remain unchanged and compatible.
7+
require_relative 'jsonapi-resources'

0 commit comments

Comments
 (0)