license-compatibility 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf456e4ec6eea56e634a8414df13f0c26cfc7feb
4
- data.tar.gz: 874c99b0dfc5ab482a190ccb647768b25b9a7153
3
+ metadata.gz: cebe36032941c618500eaa3df9a07984636bc3b0
4
+ data.tar.gz: 2f001a6e21294fa978e192a00997e370f756d7e2
5
5
  SHA512:
6
- metadata.gz: 31ba65edfb4b21cd4232cbe261e8ca1f9e3a5702be637d275c0637b84087852cfe88396306ea638340cc61d047e2ca702124c9827930c6efab817c715fe08671
7
- data.tar.gz: b170e94155251946d2f73bd9ceba7bc328ce1a05965efbfbe2a2f34ee88df6ed6c7bb922a55ce169173d6a8cf1090aba3f276afbffa12d784cc2069baa20b596
6
+ metadata.gz: 8456ef0d6e1f3b177eba99c7151c35bbcab7b046d57e065a3a5ccd46b445177e69017f378bbd9f10180cfe3e094180edf7115948825e6c0015c57c04792341c9
7
+ data.tar.gz: 60402dcfb003d6e633910ba22d65fb54625ff31f0e5c66e92c6ac37f4f7d2a6ed92931b66a382f790c9e94e0b4ff4670fb8dcec7d27c418c31e758aabb7e95cf
@@ -2,10 +2,14 @@ require "license/compatibility/version"
2
2
 
3
3
  module License
4
4
  module Compatibility
5
- PUBLIC_DOMAIN = ['PDDL-1.0', 'SAX-PD', 'Unlicense']
6
- PERMISSIVE = ['MIT', 'BSD-3-Clause', 'BSD-2-Clause', 'ISC', 'Apache-2.0']
7
- WEAK_COPYLEFT = ['LGPL-3.0', 'LGPL-2.0']
8
- COPYLEFT = ['GPL-3.0', 'GPL-2.0']
5
+ PUBLIC_DOMAIN = ['PDDL-1.0', 'SAX-PD', 'Unlicense', 'CC0-1.0']
6
+ PERMISSIVE = ['MIT', 'BSD-3-Clause', 'WTFPL', 'BSD-2-Clause', 'ISC',
7
+ 'Apache-2.0', 'AFL-1.1', 'AFL-1.2', 'AFL-2.0', 'AFL-2.1', 'AFL-3.0',
8
+ 'Artistic-2.0', 'Artistic-2.0', 'EPL-1.0', 'MPL-2.0', 'BSD-3-Clause-Clear',
9
+ 'DSDP', 'ECL-2.0', 'BSD-3-Clause-Attribution']
10
+ WEAK_COPYLEFT = ['LGPL-3.0', 'LGPL-2.0', 'LGPL-2.0+', 'LGPL-2.1', 'LGPL-2.1+',
11
+ 'LGPL-3.0', 'LGPL-3.0+']
12
+ COPYLEFT = ['GPL-3.0', 'GPL-2.0', 'GPL-2.0+', 'GPL-3.0+']
9
13
  STRONG_COPYLEFT = ['AGPL-1.0', 'AGPL-3.0']
10
14
 
11
15
  def self.forward_compatiblity(source_license, derivative_license)
@@ -14,10 +18,8 @@ module License
14
18
  case souce_type
15
19
  when :public_domain
16
20
  return true
17
- when :permissive
21
+ when :permissive, :weak_copyleft
18
22
  [:permissive, :weak_copyleft, :copyleft, :strong_copyleft].include? derivative_type
19
- when :weak_copyleft
20
- [:weak_copyleft, :copyleft, :strong_copyleft].include? derivative_type
21
23
  when :copyleft
22
24
  [:copyleft, :strong_copyleft].include? derivative_type
23
25
  when :strong_copyleft
@@ -1,5 +1,5 @@
1
1
  module License
2
2
  module Compatibility
3
- VERSION = "0.1.0"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: license-compatibility
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Nesbitt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-25 00:00:00.000000000 Z
11
+ date: 2015-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler