licensee 5.0.0b5 → 5.0.0b6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/licensee/content_helper.rb +1 -0
- data/lib/licensee/version.rb +1 -1
- data/test/test_licensee_content_helper.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0124d7811751a1221aa8ba861192a36432f23fe
|
4
|
+
data.tar.gz: b01c35d07fc8db789ec3bd4af74ae8834a88c702
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50f59b2e3ea125d6016a071aeeb585f7555e0920ee2ab3a7ee3118af086d9cf8ace3d9db578cdeea36e9dfde40139f49ef26a804146e0d4488823f1193ca6891
|
7
|
+
data.tar.gz: 7ce11976be77d28769c878bdbc382506f4ad17d3785ba4c3d54df7359a6651d5e779cdd96e79d83d78a4302cd4403a53d2da1581099cade778fd8507986036f0
|
@@ -7,6 +7,7 @@ class Licensee
|
|
7
7
|
content = content.gsub(/[[:space:]]+\z/, '')
|
8
8
|
content = content.gsub(/^#{CopyrightMatcher::REGEX}$/i, '')
|
9
9
|
content = content.gsub(/[[:space:]]+/, ' ')
|
10
|
+
content = content.gsub("\u0000", '') # Remove null byte which breaks Levenshtein
|
10
11
|
content.squeeze(' ').strip
|
11
12
|
end
|
12
13
|
end
|
data/lib/licensee/version.rb
CHANGED