diff --git a/lib/jasmine/headless/files_list.rb b/lib/jasmine/headless/files_list.rb index caac47f..31be62c 100644 --- a/lib/jasmine/headless/files_list.rb +++ b/lib/jasmine/headless/files_list.rb @@ -4,6 +4,7 @@ require 'multi_json' require 'set' require 'sprockets' require 'sprockets/engines' +require 'rubygems' module Jasmine::Headless class FilesList @@ -13,10 +14,6 @@ module Jasmine::Headless def asset_paths return @asset_paths if @asset_paths - require 'rubygems' - - raise StandardError.new("A newer version of Rubygems is required to use vendored assets. Please upgrade.") if !Gem::Specification.respond_to?(:each) - @asset_paths = [] Gem::Specification.each { |gemspec| @asset_paths += get_paths_from_gemspec(gemspec) }