git-trend 1.1.9 → 1.2.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 +3 -0
- data/Rakefile +1 -1
- data/git-trend.gemspec +3 -3
- data/lib/git_trend.rb +0 -2
- data/lib/git_trend/formatters/text_formatter.rb +8 -0
- data/lib/git_trend/scraper.rb +8 -12
- data/lib/git_trend/version.rb +1 -1
- data/spec/fixtures/trending/alloy +5750 -2891
- data/spec/fixtures/trending/index +6212 -2589
- data/spec/fixtures/trending/ruby +6713 -2772
- data/spec/fixtures/trending/ruby?since=weekly +6651 -2714
- data/spec/fixtures/trending?since=monthly +7140 -0
- data/spec/fixtures/trending?since=weekly +6549 -2724
- data/spec/git_trend/cli_spec.rb +194 -196
- data/spec/git_trend/scraper_spec.rb +0 -8
- metadata +8 -8
- data/spec/fixtures/trending?since=monthly +0 -1
@@ -30,13 +30,5 @@ RSpec.describe GitTrend::Scraper do
|
|
30
30
|
end
|
31
31
|
it { expect { scraper.get }.to raise_error(Exception) }
|
32
32
|
end
|
33
|
-
|
34
|
-
context "when a scraping error occurred" do
|
35
|
-
before do
|
36
|
-
stub_request(:get, Scraper::BASE_URL)
|
37
|
-
.to_return(status: 200, headers: { content_type: "text/html" }, body: "")
|
38
|
-
end
|
39
|
-
it { expect { scraper.get }.to raise_error(ScrapeException) }
|
40
|
-
end
|
41
33
|
end
|
42
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-trend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rochefort
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
version: '1.3'
|
88
88
|
- - "<"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '1.
|
90
|
+
version: '1.7'
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -97,7 +97,7 @@ dependencies:
|
|
97
97
|
version: '1.3'
|
98
98
|
- - "<"
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version: '1.
|
100
|
+
version: '1.7'
|
101
101
|
- !ruby/object:Gem::Dependency
|
102
102
|
name: bundler
|
103
103
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,14 +146,14 @@ dependencies:
|
|
146
146
|
requirements:
|
147
147
|
- - "~>"
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version: 0.
|
149
|
+
version: 0.17.0
|
150
150
|
type: :development
|
151
151
|
prerelease: false
|
152
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
154
|
- - "~>"
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version: 0.
|
156
|
+
version: 0.17.0
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: safe_yaml
|
159
159
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,14 +174,14 @@ dependencies:
|
|
174
174
|
requirements:
|
175
175
|
- - "~>"
|
176
176
|
- !ruby/object:Gem::Version
|
177
|
-
version: 3.
|
177
|
+
version: 3.6.0
|
178
178
|
type: :development
|
179
179
|
prerelease: false
|
180
180
|
version_requirements: !ruby/object:Gem::Requirement
|
181
181
|
requirements:
|
182
182
|
- - "~>"
|
183
183
|
- !ruby/object:Gem::Version
|
184
|
-
version: 3.
|
184
|
+
version: 3.6.0
|
185
185
|
description: CLI-Based tool that show Trending repository on github
|
186
186
|
email:
|
187
187
|
- terasawan@gmail.com
|
@@ -1 +0,0 @@
|
|
1
|
-
spec/fixtures/trending?since=weekly
|