repocrawler 0.2.27 → 0.2.28
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 +4 -4
- data/lib/repocrawler/crawler.rb +5 -4
- data/lib/repocrawler/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: 3979776e91700bc57fb76b4daee9de89b0f51e5f
|
|
4
|
+
data.tar.gz: e6bb36e9616cd21f97028d7e1ef853a1826fc064
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 02086c51dd00ba6d95ec97783d73ef65839fa7bd0a9c01aba59f6f235fdfbe9015285102ffb9f50edcfb444584850cee67af4e38eaaa48d39a4761aa9fd5d584
|
|
7
|
+
data.tar.gz: 457b4794b7560ca538900636f7a67631e8a87e0a3b918ff8f5a3da5a96a13a69bf87520d3a67a5e46a4d2f32a15caad1fd1bc618995d3dd17be23cf96579105b
|
data/lib/repocrawler/crawler.rb
CHANGED
|
@@ -152,11 +152,12 @@ module Repos
|
|
|
152
152
|
"User-Agent" => @user_agent
|
|
153
153
|
})
|
|
154
154
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
issues_num = 0
|
|
156
|
+
return issues_num if issue_fetch.is_a?(Hash) && issue_fetch['message'] === 'Not Found'
|
|
157
|
+
|
|
158
|
+
issues_num = issues_fetch.first['number'] if issues_fetch.count != 0
|
|
158
159
|
|
|
159
|
-
|
|
160
|
+
issues_num
|
|
160
161
|
end
|
|
161
162
|
|
|
162
163
|
# get information of the closed issues
|
data/lib/repocrawler/version.rb
CHANGED