diff --git a/_licenses/gpl-3.0.txt b/_licenses/gpl-3.0.txt index a533d7f..6011db0 100644 --- a/_licenses/gpl-3.0.txt +++ b/_licenses/gpl-3.0.txt @@ -14,9 +14,9 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of note: The Free Software Foundation recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the end of the license. using: + - Ansible: https://github.com/ansible/ansible/blob/devel/COPYING - Bash: https://git.savannah.gnu.org/cgit/bash.git/tree/COPYING - GIMP: https://git.gnome.org/browse/gimp/tree/COPYING - - Privacy Badger: https://github.com/EFForg/privacybadgerfirefox/blob/master/LICENSE permissions: - commercial-use diff --git a/spec/license_meta_spec.rb b/spec/license_meta_spec.rb index 4420927..a3923ad 100644 --- a/spec/license_meta_spec.rb +++ b/spec/license_meta_spec.rb @@ -64,6 +64,8 @@ describe 'license meta' do example_url = example.values[0] if example_url.index('https://github.com/') == 0 example_url.gsub!(%r{\Ahttps://github.com/([\w-]+/[\w-]+)/blob/([\w-]+/\S+)\z}, 'https://raw.githubusercontent.com/\1/\2') + elsif example_url.index('https://git.savannah.gnu.org/') == 0 || example_url.index('https://git.gnome.org/') == 0 + example_url.gsub!(%r{/tree/}, '/plain/') end content = open(example_url).read detected = Licensee::ProjectFiles::LicenseFile.new(content, 'LICENSE').license