cani 0.5.1 → 0.5.2
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/README.md +1 -1
- data/lib/cani.rb +2 -2
- data/lib/cani/api/feature/viewer.rb +2 -1
- data/lib/cani/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b3bfdea3cdcd9f53dad3c04993ab289f935053ea36a5facb58f4c4a8c7bc66b
|
|
4
|
+
data.tar.gz: 35a9526b42ac5e4ac3d1cc31dd0a8da559a26ed282ff7f9205d12fd30559b245
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19fbf82938be788b4779bed524134b72a7ce65026f558bb239252896dcd7fac58539499ee87335b9926c35d17f4678f72a8190837ae394f2bd3ffb4acaec92b1
|
|
7
|
+
data.tar.gz: 4e1b54b2e74637b8ea14329f43b40bf7d67cf7482d503231edd04733176b00788a3434c4869081e0998951eb969a68e1acaf2e6c347cea33ade86016bbf1a10a
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Cani — a [caniuse.com](caniuse.com) tui interface
|
|
1
|
+
# Cani — a [caniuse.com](caniuse.com) tui interface  [](rubygems.org/gems/cani) [](https://github.com/SidOfc/cani/issues)
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
data/lib/cani.rb
CHANGED
|
@@ -55,8 +55,8 @@ module Cani
|
|
|
55
55
|
puts 'cani is dependent on fzf (https://github.com/junegunn/fzf) for the interactive TUI to work.'.light_black
|
|
56
56
|
puts 'without fzf, commands can still be piped to get the regular (colorless) output'.light_black
|
|
57
57
|
puts ''
|
|
58
|
-
puts 'Cani requires at least 20 lines and 40 cols to work properly, this is not a hard limit but'
|
|
59
|
-
puts 'below this width, long lines could wrap a lot and reduce visible information.'
|
|
58
|
+
puts 'Cani requires at least 20 lines and 40 cols to work properly, this is not a hard limit but'.light_black
|
|
59
|
+
puts 'below this width, long lines could wrap a lot and reduce visible information.'.light_black
|
|
60
60
|
puts ''
|
|
61
61
|
puts 'Usage:'.red
|
|
62
62
|
puts ' cani'.yellow + ' [COMMAND [ARGUMENTS]]'
|
|
@@ -207,6 +207,7 @@ module Cani
|
|
|
207
207
|
note_nums = feature.browser_note_nums.fetch(browser.name, {})
|
|
208
208
|
.fetch(era, [])
|
|
209
209
|
|
|
210
|
+
# do not draw era's that exceed screen height
|
|
210
211
|
break if (ey + (is_current ? 1 : bot_pad) + 1) >= height
|
|
211
212
|
|
|
212
213
|
if do_draw && is_current
|
|
@@ -218,7 +219,7 @@ module Cani
|
|
|
218
219
|
end
|
|
219
220
|
|
|
220
221
|
# only show visible / relevant browsers
|
|
221
|
-
if browser.usage[era].to_i >= 0.5 || (!era.empty? && cur_era >= era_idx)
|
|
222
|
+
if browser.usage[era].to_i >= 0.5 || (!era.empty? && cur_era >= era_idx - 1)
|
|
222
223
|
if do_draw
|
|
223
224
|
((ey - top_pad)..(ey + (is_current ? 1 : bot_pad))).each do |ry|
|
|
224
225
|
txt = (bot_pad.zero? && !is_current) ? (ry >= ey + (is_current ? 1 : bot_pad) ? era.to_s : ' ')
|
data/lib/cani/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cani
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sidney Liebrand
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-09-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colorize
|