cani 0.2.1 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7926339d9f9917733a8ed487f6ab2f7dea77ded9b5f2799ee016f09c9e60d570
4
- data.tar.gz: 45ca6106004772ff0b1b3facc8040c949c66f776a00809d16d0155da6780b452
3
+ metadata.gz: 7cd61890b987c88ef41a0dcf5e30ee5fb22dafd234e5855fadc3e3319753e0ba
4
+ data.tar.gz: c40c2b1cd8ebe4e6bf6ec16ee5cce0863b903711d21b518ac8e45c562b166a99
5
5
  SHA512:
6
- metadata.gz: ffe46d75f4614cf82aa0294040aabbb06757f3f356f9d899534013fe1132e7ed2fc5f08d0cd35ace34ba6c4964bac1405d6915be11da9d9ba29a25cded8f4ca4
7
- data.tar.gz: 9ba149f0dedad78dedf7f9e00dd472e8a7198e01790b7557262677b8f5d188b9c1747738ce30999f863a33981bf610afee34eba3c91a6f53c6c370f396ac3962
6
+ metadata.gz: 4e16c24b8230c0d6515be703fa6ab9f1f0cf5a0672b4896e711c4ba230569c5c373cf27b4930559a4a57ff912010bdb131d2fffa675407304359ee32da4922a2
7
+ data.tar.gz: c252dc1cdb93ed2a18e229b55bec0b4f92429922326ce764f4f34b32909af4ba867a9eb4cd8df77429e23a840350d06977f36667695438e1502a024d8346ea31
data/README.md CHANGED
@@ -24,6 +24,11 @@ Or install it yourself as:
24
24
 
25
25
  $ gem install cani
26
26
 
27
+ **dependencies**
28
+
29
+ Cani depends on [fzf](https://github.com/junegunn/fzf) to display most menu's.
30
+ <!-- Fzf is not a requirement when piping the output to another command -->
31
+
27
32
  ## Configuration
28
33
 
29
34
  After installation, running the command (`cani`) for the first time will create some files and directories:
data/lib/cani/api.rb CHANGED
@@ -34,7 +34,7 @@ module Cani
34
34
  else
35
35
  # no other option but fail since we have no data
36
36
  # and no way of fetching the data to display
37
- puts 'fatal: no data available for display'
37
+ puts 'Cani fatal: no data available for display'
38
38
  exit 1
39
39
  end
40
40
  end
data/lib/cani/fzf.rb CHANGED
@@ -1,12 +1,12 @@
1
1
  module Cani
2
2
  module Fzf
3
3
  def self.pick(rows, **opts)
4
- unless executable?
5
- puts 'fatal: command "fzf" not found, is it installed?'
6
- exit 1
7
- end
8
-
9
4
  if STDOUT.tty?
5
+ unless executable?
6
+ puts 'Cani fatal: command "fzf" not found, is it installed?'
7
+ exit 1
8
+ end
9
+
10
10
  rows = tableize_rows(rows, **opts).join "\n"
11
11
  ohdr = opts.fetch :header, []
12
12
  header = ohdr.is_a?(Array) ? [:cani, *ohdr].map { |v| v.to_s.downcase }.join(':')
data/lib/cani/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cani
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cani
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sidney Liebrand