djinni 2.0.1 → 2.0.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 +4 -3
  3. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e662c2bb1aff1c1aac6c4a445e14a37084347cd
4
- data.tar.gz: 8403c6d023b124f228c48d853dbf58e398a9876e
3
+ metadata.gz: 9e5d5b282735848c1a75d8ca154ba9cac9307ca2
4
+ data.tar.gz: 83bb54eb074e91eb3dd5be431f97078c7971a9c6
5
5
  SHA512:
6
- metadata.gz: 762e97138d90e73b69249a24cdbe4daca17e7aaa76facaecaffef7d49f8ca0edc39c637b924ca6feaebb697598c2dd602b1e7aadc0526926c3640076b1f43563
7
- data.tar.gz: 1ea3b7384cc98aac18c8539149615e8a448d82c6ad32bcd9d14a840caa9844e5b3e1255c0ec49741b131b4e5963061f9356992df6b1b56b4e19cf1b1f1bbf5f7
6
+ metadata.gz: 21a12ab4ee5132f8eb1e31579446ea440fb2bcaf8a54b1342ecf8b35d08891225d6f9d6de4d41909704a3da1807cd035b6b2ec7c409c40f5d8995d240182d8e0
7
+ data.tar.gz: 4f43dd63b95822c8ba7d9c905e278500c72eb9da9413a17ca2af76885091d46d991d158b93908598580602da9ac29add88182ac1596bece96c0870594f728709
data/lib/djinni.rb CHANGED
@@ -16,7 +16,7 @@ class Djinni
16
16
  return ""
17
17
  when "\x04" # ^D
18
18
  return "\x04"
19
- when "\x7F" # Backspace
19
+ when "\x7F", "\b" # Backspace or ^H
20
20
  return input[0..-3]
21
21
  when "\f" # ^L
22
22
  system("clear") if (@interactive)
@@ -207,8 +207,9 @@ class Djinni
207
207
 
208
208
  classes = Fagin.find_children("Djinni::Wish", dir)
209
209
  classes.each do |clas, wish|
210
- wish.aliases.each do |aliaz|
211
- @wishes[aliaz] = wish
210
+ w = wish.new
211
+ w.aliases.each do |aliaz|
212
+ @wishes[aliaz] = w
212
213
  end
213
214
  end
214
215
 
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.0.1
4
+ version: 2.0.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: 2016-03-26 00:00:00.000000000 Z
11
+ date: 2016-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -56,20 +56,20 @@ dependencies:
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: '0.1'
59
+ version: '1.0'
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 0.1.2
62
+ version: 1.0.0
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '0.1'
69
+ version: '1.0'
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: 0.1.2
72
+ version: 1.0.0
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: ruby-terminfo
75
75
  requirement: !ruby/object:Gem::Requirement
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.5.1
129
+ rubygems_version: 2.4.5.1
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: A Ruby command handler