mini_term 0.1.1 → 0.1.2
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 -1
- data/lib/mini_term/version.rb +1 -1
- data/mini_term.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d5a6444ea23f4d78d2c199b2f352b66e2cecb86
|
4
|
+
data.tar.gz: 71219e05b0dd0006906b9ef3e56d863b4774bb32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c282ba1fd775894cfe440036f686e16d50386266ab5068d296769882bf200ed834f81d2f254efea3aedcd1f0b0eddd3a171d9bbcb74ed36d136f2fe65c41f308
|
7
|
+
data.tar.gz: 32c40373c8cadecb5f89d55be9887ccb918a5d0227d38fedace96e37b839bcf45e8295fd6521f47d4a11041623083f882405fdc2ef62d9deea5031243c5022a5
|
data/README.md
CHANGED
@@ -228,11 +228,18 @@ define entries in the map as follows:
|
|
228
228
|
|
229
229
|
```ruby
|
230
230
|
MiniTerm.add_map(:ansi) do |map|
|
231
|
-
map["\e[D"] = :go_left
|
231
|
+
map["\e[D"] = :go_left # First
|
232
|
+
map[" ".."~"] = :insert_text # Second
|
232
233
|
# etc etc etc
|
233
234
|
end
|
234
235
|
```
|
235
236
|
|
237
|
+
The \[\]= operator of the map object can accept two sorts of indexes.
|
238
|
+
* A string in which case an entry for keys defined by that string is created.
|
239
|
+
This is the first example line above.
|
240
|
+
* A range of characters, in which case an entry is created for each string
|
241
|
+
in the specified range. This is the second example line above.
|
242
|
+
|
236
243
|
Now, the index for each entry represents a sort of path to the command. This
|
237
244
|
path must not be ambiguous. For example, the following will generate an error:
|
238
245
|
|
data/lib/mini_term/version.rb
CHANGED
data/mini_term.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.required_ruby_version = '>=2.0'
|
30
30
|
|
31
31
|
spec.add_development_dependency "bundler", "~> 1.15"
|
32
|
-
spec.add_development_dependency "rake", "
|
32
|
+
spec.add_development_dependency "rake", ">= 12.3.3"
|
33
33
|
spec.add_development_dependency "minitest", "~> 5.0"
|
34
34
|
spec.add_development_dependency 'minitest_visible', "~> 0.1"
|
35
35
|
spec.add_development_dependency 'reek', "~> 5.0.2"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_term
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PeterCamilleri
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 12.3.3
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 12.3.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|