repocrawler 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- 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: 64b653f8ff7c4732d69a44bc05907fa5b407df15
|
4
|
+
data.tar.gz: dca87868f84e2fbb5d6a65eadc475d9fed3dbdda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5aba49c693e6aaf9453f5bda5f2bb58efd8e1c882647059ba14a5f6cac818647fed89da5c40ff93ec01afae3600ca65f065fe639a41e800087858296e5cc63a4
|
7
|
+
data.tar.gz: 342cffeb3436c2ffd15bb4598a25e673449ae3a327055d8de8e0fcccbf575f837299b8c915714f0e7d7134eb7ed992a55537731338c8f4039af209d75c307ccb
|
data/lib/repocrawler/crawler.rb
CHANGED
@@ -139,10 +139,11 @@ module Repos
|
|
139
139
|
|
140
140
|
# get the date of the last commit
|
141
141
|
def get_last_commits_days
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
142
|
+
commits_fetch = HTTParty.get(@GITHUB_API_BASE_URL + "/commits?access_token=#{@access_token}", headers: {
|
143
|
+
"User-Agent" => @user_agent
|
144
|
+
})
|
145
|
+
last_commit_date = commits_fetch.first['commit']['comitter']['date']
|
146
|
+
last_commit = (Date.today - Date.parse(last_commit_date)).to_i
|
146
147
|
|
147
148
|
last_commit
|
148
149
|
end
|
data/lib/repocrawler/version.rb
CHANGED