djinni 0.1.12 → 0.1.13
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 +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63e49e6e7f4471141892800679e4e406a72ffc57
|
4
|
+
data.tar.gz: 82fe3cba90710d8bddb62726b3234bcdbf816f97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6434bc220e969d532255fd1088c300697cb5be240b7a3f11090faaed3e1437d1f18aaa76fa21cb9748d3488844a3647db17f0656279ef3efa39753f70a85b025
|
7
|
+
data.tar.gz: 3f5173d967ed690e16a4a25068ef8c2f4723048df12427092a39f996a6614761edd112806576dc5a08f7d155e84b1a0495a18bde508fd8e743521643f53de6eb
|
data/lib/djinni.rb
CHANGED
@@ -67,11 +67,12 @@ class Djinni
|
|
67
67
|
|
68
68
|
case code
|
69
69
|
when "\e[A" # Up arrow
|
70
|
+
return "" if (@history.empty?)
|
70
71
|
@hist_index = @history.size if (@hist_index.nil?)
|
71
72
|
@hist_index = 1 if (@hist_index == 0)
|
72
73
|
@hist_index -= 1
|
73
74
|
return @history[@hist_index]
|
74
|
-
when "\e[B" #
|
75
|
+
when "\e[B" # Down arrow
|
75
76
|
@hist_index = @history.size if (@hist_index.nil?)
|
76
77
|
@hist_index += 1
|
77
78
|
if (@hist_index < @history.size)
|
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: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Whittaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|