git-trend 1.1.6 → 1.1.7

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.
@@ -87,6 +87,45 @@ RSpec.describe GitTrend::CLI do
87
87
  expect { cli.invoke(:list, [], language: language, description: false) }.to output(res).to_stdout
88
88
  end
89
89
  end
90
+
91
+ context "with alloy : when star and fork count is nothing" do
92
+ before { stub_request_get("trending/#{language}") }
93
+ let(:language) { "alloy" }
94
+
95
+ it "display daily ranking by language" do
96
+ res = <<-'EOS'.unindent
97
+ |No. Name Lang Star
98
+ |--- ------------------------------------------- ---------- ------
99
+ | 1 danielbayley/Ableton-Live-tools Alloy 0
100
+ | 2 DavW/midihack Alloy 0
101
+ | 3 mark-henry/ableton-experiment Alloy 0
102
+ | 4 Iyouboushi/mIRC-BattleArena Alloy 0
103
+ | 5 adamjmurray/js-live-api-humanize-midi-clips Alloy 0
104
+ | 6 Binomio/bootstrap-base-song-for-live9 Alloy 0
105
+ | 7 lorin/alloy-fish Alloy 0
106
+ | 8 devd/websecmodel Alloy 0
107
+ | 9 kepae/alloy-coin Alloy 0
108
+ | 10 pron/amazon-snapshot-spec Alloy 0
109
+ | 11 SaberMirzaei/Alloy-Model-of-MCA Alloy 0
110
+ | 12 rossgore/alloy-tutorial Alloy 0
111
+ | 13 uwplse/memsynth Alloy 0
112
+ | 14 fstakem/alloy_book Alloy 0
113
+ | 15 aishamidori/cs195y-final Alloy 0
114
+ | 16 samueltcsantos/logica.alloy Alloy 0
115
+ | 17 mravella/maya_model Alloy 0
116
+ | 18 salesfelipe/projetoDeLogica Alloy 0
117
+ | 19 BGCX261/zigbee-alloy-svn-to-git Alloy 0
118
+ | 20 millerns/ReliableDataTransfer Alloy 0
119
+ | 21 ArcherCraftStore/ArcherCraft_Maya Alloy 0
120
+ | 22 cpmpercussion/teslamusic Alloy 0
121
+ | 23 z64/track-52314 Alloy 0
122
+ | 24 kmcallister/gc-models Alloy 0
123
+ | 25 Echtzeitsysteme/cardygan Alloy 0
124
+
125
+ EOS
126
+ expect { cli.invoke(:list, [], language: language, description: false) }.to output(res).to_stdout
127
+ end
128
+ end
90
129
  end
91
130
 
92
131
  describe "with -s option" do
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.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - rochefort
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-17 00:00:00.000000000 Z
11
+ date: 2017-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -222,6 +222,7 @@ files:
222
222
  - lib/git_trend/scraper.rb
223
223
  - lib/git_trend/version.rb
224
224
  - note.txt
225
+ - spec/fixtures/trending/alloy
225
226
  - spec/fixtures/trending/index
226
227
  - spec/fixtures/trending/ruby
227
228
  - spec/fixtures/trending/ruby?since=weekly
@@ -258,6 +259,7 @@ signing_key:
258
259
  specification_version: 4
259
260
  summary: CLI-Based tool that show Trending repository on github
260
261
  test_files:
262
+ - spec/fixtures/trending/alloy
261
263
  - spec/fixtures/trending/index
262
264
  - spec/fixtures/trending/ruby
263
265
  - spec/fixtures/trending/ruby?since=weekly