module Tapioca::GemHelper

def gem_in_app_dir?(app_dir, full_gem_path)

: ((String | Pathname) app_dir, String full_gem_path) -> bool
def gem_in_app_dir?(app_dir, full_gem_path)
  app_dir = to_realpath(app_dir)
  full_gem_path = to_realpath(full_gem_path)
  !gem_in_bundle_path?(full_gem_path) && !gem_in_ruby_path?(full_gem_path) && path_in_dir?(full_gem_path, app_dir)
end