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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34eec7447083bf13d4506bdb6ece6ba8c5fad300
4
- data.tar.gz: 83b9b622f19fb37208cfa12619e6ecfeb80f337a
3
+ metadata.gz: 40f392b9b6f253138234312bd964c341dc443f42
4
+ data.tar.gz: cc62d5efbe18366f927dac938f798c289fbfe00b
5
5
  SHA512:
6
- metadata.gz: '084ec06aed68c8c64642d8e7c8153b4889614caad614f09cc660b00986ab1288397de4e0529ebcc838f6d4514ec0050ff3d1d2304ff24d3ff836c3fffcb32090'
7
- data.tar.gz: 3f063fba705d4084a41bf1e56502ff9d6758b86cecd9feb04a5550903230c48380e7be680c1ac78ea2eea2af4c78c64cc0c17b5b15c349ff42407d4d6ea4947f
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
- TODO: Write usage instructions here
13
+ keyevent gem add `Kernel#getkey` method.
16
14
 
17
- ## Development
15
+ ```ruby
16
+ require "keyevent"
18
17
 
19
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
18
+ while input = getkey
19
+ break if input == "Q"
20
20
 
21
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
21
+ p input
22
+ end
23
+ ```
22
24
 
23
25
  ## Contributing
24
26
 
@@ -10,6 +10,7 @@ module Keyevent
10
10
  ETX = "\u0003"
11
11
  SUB = "\u001A"
12
12
  TAB = "\t"
13
+ SPACE = " "
13
14
 
14
15
  UP = "\e[A"
15
16
  DOWN = "\e[B"
@@ -1,3 +1,3 @@
1
1
  module Keyevent
2
- VERSION = "0.1.0"
2
+ VERSION = "1.0.0"
3
3
  end
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: 0.1.0
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-05 00:00:00.000000000 Z
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.6.11
95
+ rubygems_version: 2.4.5.2
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Manage keyevent