keyevent 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -6
- data/lib/keyevent.rb +1 -0
- data/lib/keyevent/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40f392b9b6f253138234312bd964c341dc443f42
|
4
|
+
data.tar.gz: cc62d5efbe18366f927dac938f798c289fbfe00b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 285e3e91d493002558223f72a44ccaccb274320947390ce48b7eca12780cd1f2198e0254aa5fc10f0f893614dd66d085290d9964ad578cd5c9d3e6c9d55efae9
|
7
|
+
data.tar.gz: bd70cfea31cdc26fe83e8cd33544fad51f1493493ea304c2f098bd4793c5de512f205c07814be8a77540f461438a40492489bc8c40d442a4de62e2b8ea11cc24
|
data/README.md
CHANGED
@@ -4,21 +4,23 @@ Handle key event.
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
Or install it yourself as:
|
8
|
-
|
9
7
|
```
|
10
8
|
$ gem install keyevent
|
11
9
|
```
|
12
10
|
|
13
11
|
## Usage
|
14
12
|
|
15
|
-
|
13
|
+
keyevent gem add `Kernel#getkey` method.
|
16
14
|
|
17
|
-
|
15
|
+
```ruby
|
16
|
+
require "keyevent"
|
18
17
|
|
19
|
-
|
18
|
+
while input = getkey
|
19
|
+
break if input == "Q"
|
20
20
|
|
21
|
-
|
21
|
+
p input
|
22
|
+
end
|
23
|
+
```
|
22
24
|
|
23
25
|
## Contributing
|
24
26
|
|
data/lib/keyevent.rb
CHANGED
data/lib/keyevent/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keyevent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- siman-man
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
94
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
95
|
+
rubygems_version: 2.4.5.2
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: Manage keyevent
|