git-trend 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/git_trend/scraper.rb +2 -2
- data/lib/git_trend/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a65ac81f0c46242984a82372c16a8db1f859885eefb831376421a8e87c5b0faa
|
4
|
+
data.tar.gz: ae3789a82ff1882c15881e17eca7e801d9504f844e4a374ce86f63d029c557fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1ef7c5e7d4508eccbd50012f35dc3cb0765aeb3dbd0f25c6d9051a1daa8ddaaac45ec0b8a1bb2f042ddf969d514246b57f731fc8950d0fe66a7608926f9f29c
|
7
|
+
data.tar.gz: 65d1df33785db918f6f5dc1be9594c586c698041b126176f3bde342039dec8af100eb0ac98a994cff7781161ffa83fb2c356aebd3d94f0084ec6c2c35df58ca1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## v1.2.7 (Sun Aug 8)
|
2
|
+
|
3
|
+
- Correspond to the new structure of HTML [a708fd4]
|
4
|
+
|
1
5
|
## v1.2.6 (Sun Aug 8)
|
2
6
|
|
3
7
|
- Update gems
|
@@ -44,7 +48,7 @@
|
|
44
48
|
|
45
49
|
## v1.1.5 (Sat Jul 15 2017)
|
46
50
|
|
47
|
-
- Correspond to the new structure of
|
51
|
+
- Correspond to the new structure of HTML [22189f6]
|
48
52
|
|
49
53
|
## v1.1.4 (Tue Nov 22 2016)
|
50
54
|
|
data/lib/git_trend/scraper.rb
CHANGED
@@ -51,10 +51,10 @@ module GitTrend
|
|
51
51
|
|
52
52
|
def generate_project(page)
|
53
53
|
page.search(".Box-row").map do |content|
|
54
|
-
icon_area = content.search(".f6.text-
|
54
|
+
icon_area = content.search(".f6.color-text-secondary.mt-2")
|
55
55
|
Project.new(
|
56
56
|
name: content.search("h1 a").attr("href").to_s.sub(/\A\//, ""),
|
57
|
-
description: content.search(".col-9.text-
|
57
|
+
description: content.search(".col-9.color-text-secondary.my-1.pr-4").text.strip,
|
58
58
|
lang: content.search('span[itemprop="programmingLanguage"]').text.strip,
|
59
59
|
all_star_count: comma_to_i(icon_area.search("a:has(svg.octicon-star)").text.strip),
|
60
60
|
fork_count: comma_to_i(icon_area.search("a:has(svg.octicon-repo-forked)").text.strip),
|
data/lib/git_trend/version.rb
CHANGED