djinni 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/djinni.rb +6 -3
- 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: 6c386d8b47f5eec2592bcc5342db3473670ac7352ee054e80a03902c44441f07
|
4
|
+
data.tar.gz: 5ec0cdfbac77e7cfdb4511910fb85c068ede75cd8e89138887406a2d7b8c11bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
64
|
-
|
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.
|
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-
|
11
|
+
date: 2018-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|