djinni 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/djinni.rb +6 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdeb3385f63f687e4dabe0e9c9e3c1776a57e349c0917ac5dc4004080c9a21d4
4
- data.tar.gz: 401927ada94ff6fcadf7d69431cf0e824e371b415f7bb16bd7c01e2a040f088e
3
+ metadata.gz: 6c386d8b47f5eec2592bcc5342db3473670ac7352ee054e80a03902c44441f07
4
+ data.tar.gz: 5ec0cdfbac77e7cfdb4511910fb85c068ede75cd8e89138887406a2d7b8c11bc
5
5
  SHA512:
6
- metadata.gz: 9b80ea50198ff6a5c90b79ce2eb6b9b8efe67425e7378dc3e031767bae812ce18d228b05b8a4741f35244a8f9d72e9b7d8ce48c850d44b261c63520eb875037c
7
- data.tar.gz: 8c5754f65ec193db9358137b78776aa2b7dd3dbbb2d090a037f6da750eec06c754ecad1047e8fabd761f38e2867ca025205c14aa1212304e51acae9db27323f0
6
+ metadata.gz: a32b22a30c61c183d45ab8bdb435205d15d6c41c0e7dc841a26738f7ba138c608f7fa45559175f11bc5a361611d5f272a6dcaafa1c81f6c133a7c19c67963535
7
+ data.tar.gz: d641057292ca3cfdc16275bec110f4990c1d1cd0be995e016b7104ac489803138c8f9dc5199caff8f730247f7a02742dc813ca41bbba0c7b5d0f4d3b4883cb1e
data/lib/djinni.rb CHANGED
@@ -60,9 +60,12 @@ class Djinni
60
60
  completions.each do |item, desc|
61
61
  fill = Array.new(max + 4 - item.length, " ").join
62
62
  nlfill = Array.new(max + 4, " ").join
63
- lines = desc.scan(
64
- /\S.{0,#{80 - (max + 4)}}\S(?=\s|$)|\S+/
65
- )
63
+ lines = ""
64
+ if (desc)
65
+ lines = desc.scan(
66
+ /\S.{0,#{80 - (max + 4)}}\S(?=\s|$)|\S+/
67
+ )
68
+ end
66
69
 
67
70
  if (lines.empty?)
68
71
  puts "#{item}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: djinni
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Whittaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-05 00:00:00.000000000 Z
11
+ date: 2018-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest