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 +4 -4
- data/lib/license/compatibility.rb +9 -7
- data/lib/license/compatibility/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cebe36032941c618500eaa3df9a07984636bc3b0
|
4
|
+
data.tar.gz: 2f001a6e21294fa978e192a00997e370f756d7e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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',
|
7
|
-
|
8
|
-
|
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
|
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:
|
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-
|
11
|
+
date: 2015-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|