repocrawler 0.1.3 → 0.1.4
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 +10 -0
- 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: 1331e41d280ec79186524e6d38f01f58fdbc0249
|
|
4
|
+
data.tar.gz: ee66aefc68ec8a3157491b00953fc7edc230263b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 75b5e512e87ddfa31ebc807cdb5e4ee3b713e18a95cf6b67d1d9634078286aa969faa99130c274c587241e9ba8e8d8a7ee96a2c327135aa14549648a9dea59cd
|
|
7
|
+
data.tar.gz: 556c512291a1a826e49d46dd103b23e51713fa4294140e8ac201fd95e6f68356744d3c3864f8092989b8cc27741b14189bf64ff9f8ae4dbeb7d3cc5bf7bcc36f
|
data/lib/repocrawler/crawler.rb
CHANGED
|
@@ -27,6 +27,7 @@ module Repos
|
|
|
27
27
|
last_year_commit_activity = HTTParty.get(@GITHUB_API_BASE_URL + "/stats/commit_activity?access_token=#{@access_token}", headers: {
|
|
28
28
|
"User-Agent" => @user_agent
|
|
29
29
|
})
|
|
30
|
+
puts last_year_commit_activity.headers
|
|
30
31
|
end
|
|
31
32
|
|
|
32
33
|
# Get the contributors
|
|
@@ -40,6 +41,7 @@ module Repos
|
|
|
40
41
|
}
|
|
41
42
|
end
|
|
42
43
|
|
|
44
|
+
puts contributors.headers
|
|
43
45
|
contributors
|
|
44
46
|
end
|
|
45
47
|
|
|
@@ -60,6 +62,7 @@ module Repos
|
|
|
60
62
|
})
|
|
61
63
|
forks = repos_meta['forks_count']
|
|
62
64
|
|
|
65
|
+
puts repos_meta.headers
|
|
63
66
|
forks
|
|
64
67
|
end
|
|
65
68
|
|
|
@@ -69,6 +72,7 @@ module Repos
|
|
|
69
72
|
})
|
|
70
73
|
stars = repos_meta['stargazers_count']
|
|
71
74
|
|
|
75
|
+
puts repos_meta.headers
|
|
72
76
|
stars
|
|
73
77
|
end
|
|
74
78
|
|
|
@@ -78,6 +82,7 @@ module Repos
|
|
|
78
82
|
})
|
|
79
83
|
issues = repos_meta['open_issues_count']
|
|
80
84
|
|
|
85
|
+
puts repos_meta.headers
|
|
81
86
|
issues
|
|
82
87
|
end
|
|
83
88
|
|
|
@@ -95,6 +100,8 @@ module Repos
|
|
|
95
100
|
stop = true
|
|
96
101
|
end
|
|
97
102
|
|
|
103
|
+
puts issue_fetch.headers
|
|
104
|
+
|
|
98
105
|
issue_fetch.each do |issue|
|
|
99
106
|
closed_issues << {
|
|
100
107
|
'number' => issue['number'],
|
|
@@ -125,6 +132,9 @@ module Repos
|
|
|
125
132
|
github_contents = HTTParty.get(@GITHUB_API_BASE_URL + "/contents?access_token=#{@access_token}", headers: {
|
|
126
133
|
"User-Agent" => @user_agent
|
|
127
134
|
})
|
|
135
|
+
|
|
136
|
+
puts github_contents.headers
|
|
137
|
+
|
|
128
138
|
readme_file = ''
|
|
129
139
|
github_contents.each do |content|
|
|
130
140
|
readme_file = content['name'] if content['name'] =~ /^README/
|
data/lib/repocrawler/version.rb
CHANGED