ruby-anything 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dd81e98faed770f1e10c8f68e6f0785e8983948
|
4
|
+
data.tar.gz: 9f27b060abd00d2e236f42c26acaab28a88b4d67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b3c1141a5b71996544597063304cb7a616a6e40f73c3be12a328145acacba9913a89cac2308af8c987fd300783e194894cd86d8e84b39cffaa35bf63e6d5eef
|
7
|
+
data.tar.gz: 2837931b12eec418137afe0affbf1ff877a85329693bbf3a3a29615a7fc28d6d172a494e1e81649b5cd59532765c4384b82945abedf6f369f6e50fda9f6e3925
|
@@ -19,19 +19,20 @@ module RubyAnything
|
|
19
19
|
# require 'logger'
|
20
20
|
# @logger ||= Logger.new('/tmp/ch.txt')
|
21
21
|
# @logger.info ch
|
22
|
+
|
22
23
|
case ch
|
23
24
|
when *KEYS[:left]
|
24
25
|
left
|
25
26
|
when *KEYS[:right]
|
26
27
|
right
|
27
|
-
when
|
28
|
-
|
28
|
+
when *KEYS[:backspace]
|
29
|
+
backspace
|
29
30
|
when String
|
30
31
|
insert ch
|
31
32
|
end
|
32
33
|
end
|
33
34
|
|
34
|
-
def
|
35
|
+
def backspace
|
35
36
|
cursor.left
|
36
37
|
text.delete cursor.x
|
37
38
|
@parent.filter text.to_s
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-anything
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takatoshi Matsumoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|