licenserec 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7dd6bc9e3158cda9799912b2bb80a8623d0c855fe9e9e408663a7d19f8d4df76
4
- data.tar.gz: 43178a17b5aec587c9b564693cde717b479178b43f50c8e78935771292f8a219
3
+ metadata.gz: c53c2be87beae3e77bd68cd8b215e50eef17fff80ecd8e2db9e2827e61874772
4
+ data.tar.gz: 75aec0eab8ab5b538a24fdd1bae853fe9a138a7a7bfdadb99fbd82e4ce80b6a8
5
5
  SHA512:
6
- metadata.gz: 6e92ebd14012275c4a1bbfc83e2c2f91e4fade67f93e0f2867b646abd88035d1ddd4b9f21b8c9e4e1d6f83867daf60a2ec2b0bc784b306c2e8d7b69e9d6a61f7
7
- data.tar.gz: 4bf74bf16da95590928eb14391c4a8678872506f3d47dbbb5ff6684e1bedf52645c98071a5d824e68f61e413650720ca9344eeace4ce20114f9756e8a4c63b0d
6
+ metadata.gz: d111681b427b0ddef444e8695e849056b735648e9c978f36586188777cd3c8e7bc2c8b5519127e98b061db1364dd0b493f9995d8860d17af26320107cd2d7878
7
+ data.tar.gz: 9026a8d794b435e1d8c9fe42466f033d2fc4be64973a3fdb7d36d6125fd7bfdd7eb7424a984a36c4f107c024b80026fe20e7ae0f460e61d6b85493b6b1446e17
data/README.md CHANGED
@@ -68,7 +68,7 @@ Perl5
68
68
  | 2 | | license_detection(repo_path,ninka_path) | 识别项目所包含的许可证,输入1为项目路径(String),输入2为ninka.pl的路径(String);输出1为文件路径及对应许可证信息的哈希表(Hash),输出2为项目包含的许可证集合(Set)。 |
69
69
  | 3 | | compatibility_lookup(licenseA,licenseB) | 兼容性查询,输入1为许可证A(String),通常指项目中第三方组件的许可证,输入2为许可证B(String),通常指项目许可证;输出为(String),其中"0"(不兼容)、"1"(次级兼容)、"2"(组合兼容)、"1,2"(次级兼容或组合兼容)。 |
70
70
  | 4 | | compatibility_filter(repo_path,ninka_path,recommand_scale) | 兼容许可证筛选,输入1为项目路径(String),输入2为ninka.pl的路径(String),输入3为许可证推荐范围(String),其中“popular”包含MIT等20种常见开源许可证,“all”包含本知识库支持的6种开源许可证;输出1为仅满足次级兼容的许可证列表(Array),输出2为仅满足组合兼容的许可证列表(Array),输出3为既满足次级兼容又满足组合兼容的许可证列表(Array),输出4为项目中已检查过兼容性的许可证列表。 |
71
- | 5 | CompatibilityCheck | compatibilitycheck(repo_path,ninka_path) | 兼容性检查,输入1为项目路径(String),输入2为ninka.pl路径(String);输出为“OK”(String),或项目种包含互不兼容许可证的提示信息的集合(Set)和对应文件路径的列表(Array)。 |
71
+ | 5 | CompatibilityCheck | compatibilitycheck(repo_path,ninka_path) | 兼容性检查,输入1为项目路径(String),输入2为ninka.pl路径(String);输出1为“OK”(String)或项目种包含互不兼容许可证的提示信息的集合(Set),输出2为空(nil)或冲突对应文件路径的列表(Array)。 |
72
72
  | 6 | Termschoice | important_terms_instruction() | 开源许可证关键条款及说明。 |
73
73
  | 7 | | license_term_lookup(one_license,one_term) | 查询某个开源许可证的某个条款要素的值。输入1为许可证的SPDX(String),输入2为条款要素名称(String);输出为要素值(String),其中--。 |
74
74
  | 8 | | license_term_choice(one_term,recommended_licenses,term_option) | 根据条款要素值,从推荐许可证列表中,筛选符合要求的许可证,输出更新的推荐许可证列表。输入1为条款要素名称(String),输入2为推荐许可证列表(Array),输入3为条款要素值(String);输出为recommand_license中符合该要素条件的许可证列表(Array)。 |
@@ -280,7 +280,7 @@ module Licenserec
280
280
  end
281
281
  end
282
282
  conflict_filepath = []
283
- if conflict_copyleft_infoset.nil?
283
+ if conflict_copyleft_infoset.empty?
284
284
  return "OK",nil
285
285
  else
286
286
  conflict_licenses.each do |one_license|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Licenserec
4
- VERSION = "1.0.3"
4
+ VERSION = "1.0.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: licenserec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - osslab-pku