gems-license-finder 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gems-license-finder.rb +1 -1
- data/lib/gems-license-finder/version.rb +1 -1
- 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: c41e9eae92a86ce8a8a269c79aac8e0d9f31259c
|
4
|
+
data.tar.gz: 3fe7aec6038cd3b3b62bdc9f6221b6f4c2f8a995
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d1ec69c6bcd9af6138fb32a64f64734f4572b77c73caa1e636f7fecbc1a25d394fb0d3f7cee481f1671e54921d00344b4fed525c3d32263a9c294e8121a8da7
|
7
|
+
data.tar.gz: d8af3cfdce391e59ed5a947477d6bde38c0a757678c4e94f1409a110e4585a4626970cbeaf0adf9eef6838538dc1c0f91bc90a53d00f37ee2513bccd84adf1d0
|
data/lib/gems-license-finder.rb
CHANGED
@@ -59,7 +59,7 @@ module GemsLicenseFinder
|
|
59
59
|
info = Hash[content.scan(/<a href="(.*?)" rel.*>(.*?)</)].invert
|
60
60
|
type, url = normalize_licence(
|
61
61
|
(utf8_match(content,'<h5>Licenses<\/h5>.*?<p>(.*?)<')[1] rescue ""))
|
62
|
-
description = (utf8_match(content,'
|
62
|
+
description = (utf8_match(content,'gem__desc.*?<p>(.*?)<')[1].
|
63
63
|
strip.squeeze(" ").gsub(/\n/,"") rescue nil)
|
64
64
|
|
65
65
|
info.merge({ license_type: type, license_url: url, description: description })
|