license_matcher 0.3.1 → 0.3.2

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
  SHA1:
3
- metadata.gz: fdde770b4f1f2fd1e2a3e378833470927b50c487
4
- data.tar.gz: 70cb532c104a1dca66025c42eaa05beacc37aacb
3
+ metadata.gz: db8941d583278b86e45c9f1bfa8140b0ccdc9f40
4
+ data.tar.gz: 425454900a2b992ab6249a24a3ce3b56c012faa4
5
5
  SHA512:
6
- metadata.gz: 39fbee4903d9527ddf284a266a47d9932911fdd29e94595be9d1cb6e00b9e2657afc878a00813a36ade039df7ca7ca9173e9c95d2c41705bf7bef7e4457a6482
7
- data.tar.gz: db0cf624b7d138e0584a22a4ce9ccc3861f6cacdd33b45995388ba8173badc27f2925d497beb7c002a4e47574bc4a8426f73889b6f542afb792cc396eda487e7
6
+ metadata.gz: 0f2ca376c07e5b046f3f31eddaada02a47e14b1fdfb4fca39ce36cb1b8ce57c77532113627b4fe13eb378304959a20955c3635a9b45511d9583d8c4487a8ef31
7
+ data.tar.gz: 48ca3e8cb85dd8968eb20d77dfe0fc7851756b7e64f481cc64e529d24f45d23521fea2794c294a29e28c80431c38187c9ccff63f49935abd38a575760d479d65
@@ -34,7 +34,7 @@ module LicenseMatcher
34
34
  Match.new("", 0.0)
35
35
  else
36
36
  spdx_id, score = res.first
37
- Match.new(spdx_id, score.to_f)
37
+ Match.new(spdx_id.to_s, score.to_f)
38
38
  end
39
39
  end
40
40
 
@@ -1,4 +1,3 @@
1
-
2
1
  module LicenseMatcher
3
2
  class UrlMatcher
4
3
  attr_reader :url_index
@@ -14,8 +13,8 @@ module LicenseMatcher
14
13
 
15
14
  def match_text(url_txt, min_confidence = 0.0)
16
15
  spdx_id, score = match_url url_txt.to_s.strip
17
- if spdx_idx
18
- Match.new(spdx_id, score.to_f)
16
+ if spdx_id
17
+ Match.new(spdx_id.to_s, score.to_f)
19
18
  else
20
19
  Match.new("", 0.0)
21
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: license_matcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timo Sulg