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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25b254603c56b9961a9063fe65509530337a9a01
4
- data.tar.gz: cb1b30afa508264e0fe728ad740b4f133ca17aff
3
+ metadata.gz: 2d5a6444ea23f4d78d2c199b2f352b66e2cecb86
4
+ data.tar.gz: 71219e05b0dd0006906b9ef3e56d863b4774bb32
5
5
  SHA512:
6
- metadata.gz: b304e156337c860b4da1062095b27e49fa4aef1db86dabb3a1db1cae569adb3e725d3a2c567fd5bb6699a0af5b71a208d01bdd92b80f77d1c3439d6f99cef60d
7
- data.tar.gz: 90a7c752afd6cd5b2d5937329276c83a5217442ceecbda2b8eaf3af0470707ef2a883f125e68369bfda32a256621a10e520c100febfea1848001a19cc85eaa6c
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
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # A simple, portable terminal interface object.
4
4
  module MiniTerm
5
- VERSION = "0.1.1".freeze
5
+ VERSION = "0.1.2".freeze
6
6
 
7
7
  DESCRIPTION = "mini_term: A portable encapsulation of the console terminal.".freeze
8
8
  end
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", "~> 10.0"
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.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: 2019-03-24 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
40
+ version: 12.3.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement