git-trend 1.2.9 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/git_trend/scraper.rb +1 -1
- data/lib/git_trend/version.rb +1 -1
- data/spec/fixtures/trending/alloy +2139 -3806
- data/spec/fixtures/trending/index +2783 -4491
- data/spec/fixtures/trending/ruby +2784 -4450
- data/spec/fixtures/trending/ruby?since=weekly +2808 -4447
- data/spec/fixtures/trending?since= +2785 -4491
- data/spec/fixtures/trending?since=daily +2785 -4491
- data/spec/fixtures/trending?since=monthly +2821 -4464
- data/spec/fixtures/trending?since=weekly +2808 -4473
- data/spec/git_trend/cli_spec.rb +168 -789
- data/spec/spec_helper.rb +3 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 323d3cdcc6a5b98203e5ece49d36d138889ec29c1ec19468e838bb3434fd2c88
|
4
|
+
data.tar.gz: b3baf1505331b32e0ce86cf088687b9655f0757ed85d339bb35814b2ee84a06e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5c0976042644c9dfd4586be12d139657c2cb2fb7732f1fef028b357d4f4e7b11f78892e3e400fd7476224e00abf8806f9087d1cda244c7f6dbbff7713aebc53
|
7
|
+
data.tar.gz: 2a0f4c8bdbff6e03a83e43233825f98c67ff0156f2185d2b6e4fbe4776b64b54c5dcc1a169f4c1f868b31a61cb9522b899b967bd3d3f11a753682c6e864ca356
|
data/CHANGELOG.md
CHANGED
data/lib/git_trend/scraper.rb
CHANGED
@@ -53,7 +53,7 @@ module GitTrend
|
|
53
53
|
page.search(".Box-row").map do |content|
|
54
54
|
icon_area = content.search(".f6.color-fg-muted.mt-2")
|
55
55
|
Project.new(
|
56
|
-
name: content.search("
|
56
|
+
name: content.search("h2 a").attr("href").to_s.sub(/\A\//, ""),
|
57
57
|
description: content.search(".col-9.color-fg-muted.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),
|
data/lib/git_trend/version.rb
CHANGED