gems-license-finder 0.0.5 → 0.0.6
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 +2 -2
- 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: de26f66e1d2e1c5173efe15e565ec95276394bdf
|
4
|
+
data.tar.gz: bdf3469f435de7b423242b934c0ad02ee58f7b22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d90906848e6115a142a59c8560e9c99bd78248c34eafd70fdff30a5375757ff66ac3e0ebce6ef9cb9cf46081c8844b5a06b728e7801b9eede328bfb02454bc8
|
7
|
+
data.tar.gz: ecb1d54f048f93ebf812e72119b51c8375a37ecc65806e4215dd3eb3c48e6bbfc57ebbc8a964d08b1c7e81dbdcc31903dfa9b35cd9f1ee2187c017c3e7227ac5
|
data/lib/gems-license-finder.rb
CHANGED
@@ -126,8 +126,8 @@ module GemsLicenseFinder
|
|
126
126
|
end
|
127
127
|
|
128
128
|
def find_github_url name
|
129
|
-
(@github.search.repos(q: "#{name} language:ruby")["items"] ||
|
130
|
-
@github.search.repos(q: "ruby #{name}")
|
129
|
+
(@github.search.repos(q: "#{name} language:ruby")["items"].first ||
|
130
|
+
@github.search.repos(q: "ruby #{name}")["items"].first).html_url
|
131
131
|
end
|
132
132
|
|
133
133
|
def fetch_github_file user, repo, file
|