diff --git a/lib/licensee/project_files/license_file.rb b/lib/licensee/project_files/license_file.rb index c637e7c..888a3e1 100644 --- a/lib/licensee/project_files/license_file.rb +++ b/lib/licensee/project_files/license_file.rb @@ -8,7 +8,7 @@ module Licensee PREFERRED_EXT_REGEX = /\.#{Regexp.union(PREFERRED_EXT)}\z/ # Regex to match any extension except .spdx or .header - OTHER_EXT_REGEX = %r{\.(?!spdx|header)[^./]+\z}i + OTHER_EXT_REGEX = %r{\.(?!spdx|header|gemspec)[^./]+\z}i # Regex to match, LICENSE, LICENCE, unlicense, etc. LICENSE_REGEX = /(un)?licen[sc]e/i