lib/licensee/matchers/gemspec.rb in licensee-9.10.0 vs lib/licensee/matchers/gemspec.rb in licensee-9.10.1
- old
+ new
@@ -32,9 +32,10 @@
licenses = license_array_property
return unless licenses
# use 'other' if array contains multiple licenses
return 'other' unless licenses.size == 1
+
licenses[0]
end
def license_array_property
match = @file.content.match LICENSE_ARRAY_REGEX