mini_readline 0.9.3 → 0.9.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: ebf005b0c2691b73b0141fea068ef3b42eb162ac
4
- data.tar.gz: 95340c24120a997fa02e1aa7c4d811e51b435088
3
+ metadata.gz: fec79bc99097a5442bfe4cc4fca2c0330c5ee132
4
+ data.tar.gz: e5c122c226d761fbc0f1d72dcdfc89a98d621990
5
5
  SHA512:
6
- metadata.gz: a18d8351b15451f18e00121ade38965bec5530ca9b048d393f958e9021c747f86c4e74491a96218d05492d52876d54429b2e5465dd6db880c9702c5d4be96f8d
7
- data.tar.gz: 517041042d9be7d722609ebc949bb99821d0c963665410e3f2ee73a87b1118e8abe7346f093657a57ffea51aa7ccd177d5ec1f8ce2d13353974391947590f11c
6
+ metadata.gz: 203b04ab7dbfad473b8131b5fce4f8d5e98847ca2fc43a8ccac054ec6ccf99b950131b525254cd9f62d02825ea4b606186ad1adcbef798a67000b5dad1bb15de
7
+ data.tar.gz: e8cc7a60977ae1aaf9f56faa571ea0c2f70226f903b97f740bc6c6627920e684af1f33988bdd95877012ab81718ea5c2019401c7f0c2c5910166df848d1e9268
data/bin/sire CHANGED
@@ -22,16 +22,14 @@ options = {reader: 'gem'}
22
22
  def display_help(error=nil)
23
23
  puts "SIRE: a Simple Interactive Ruby Environment\n"
24
24
 
25
- if error
26
- puts "Invalid option: #{error}"
27
- end
25
+ puts "Invalid option: #{error}" if error
28
26
 
29
- puts "", "Usage: sire <options>"
30
- puts " local Use the local mini_readline code."
31
- puts " gem Use the mini_readline installed gem."
32
- puts " old Use the standard readline gem."
33
- puts " map1 Use the alternate key mapping in Windows."
34
- puts " help -? Display this help and exit."
27
+ puts "", "Usage: sire <options>",
28
+ " local Use the local mini_readline code.",
29
+ " gem Use the mini_readline installed gem.",
30
+ " old Use the standard readline gem.",
31
+ " map1 Use the alternate key mapping in Windows.",
32
+ " help -? Display this help and exit."
35
33
 
36
34
  exit
37
35
  end
@@ -87,7 +85,7 @@ class Object
87
85
  # Get a mapped keystroke.
88
86
  def get_mapped
89
87
  if old?
90
- puts 'Not supported by old readline.'
88
+ puts 'The get_mapped method is not supported by old readline.'
91
89
  else
92
90
  print 'Press a key: '
93
91
  MiniTerm.get_mapped_char
@@ -110,10 +108,12 @@ end
110
108
 
111
109
  if options[:map] == 'map1'
112
110
  if old?
113
- puts 'An option is not supported by old readline.'
111
+ puts 'Remapping is not supported by old readline.'
114
112
  exit
115
113
  end
116
114
 
115
+ puts "Remapping keyboard to WordStar(TM)."
116
+
117
117
  [:windows, :ansi].each do |target|
118
118
  MiniTerm.add_map(target) do |map|
119
119
  map[" ".."~"] = :insert_text
@@ -206,8 +206,8 @@ module SIRE
206
206
  pp result unless line.length == 0
207
207
 
208
208
  rescue Interrupt => e
209
- puts "", "Execution Interrupted!"
210
- puts "", "#{e.class} detected: #{e}", ""
209
+ puts "", "Execution Interrupted!",
210
+ "", "#{e.class} detected: #{e}", ""
211
211
 
212
212
  rescue StandardError, ScriptError => e
213
213
  puts "", "#{e.class} detected: #{e}", ""
@@ -3,7 +3,7 @@
3
3
  # Version info for the gem.
4
4
  module MiniReadline
5
5
  #The current version of the mini_readline gem.
6
- VERSION = "0.9.3".freeze
6
+ VERSION = "0.9.4".freeze
7
7
 
8
8
  # A brief description.
9
9
  DESCRIPTION = "mini_readline: Get console input with edit, history, and auto-complete.".freeze
@@ -33,7 +33,6 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency "rake", ">= 12.3.3"
34
34
  spec.add_development_dependency "bundler", "~> 1.11"
35
35
  spec.add_development_dependency 'minitest', "~> 5.7"
36
- spec.add_development_dependency 'minitest_visible', "~> 0.1"
37
36
  spec.add_development_dependency 'reek', ">= 5.0.2"
38
37
 
39
38
  end
@@ -3,13 +3,9 @@
3
3
  require_relative '../lib/mini_readline'
4
4
  gem 'minitest'
5
5
  require 'minitest/autorun'
6
- require 'minitest_visible'
7
6
 
8
7
  class SomeHistoryTester < Minitest::Test
9
8
 
10
- #Track mini-test progress.
11
- include MinitestVisible
12
-
13
9
  def test_some_history_options
14
10
  buffer = ["one", "two", "three"]
15
11
  options = {:no_blanks => true,
@@ -3,14 +3,10 @@
3
3
  require_relative '../lib/mini_readline'
4
4
  gem 'minitest'
5
5
  require 'minitest/autorun'
6
- require 'minitest_visible'
7
6
 
8
7
  #Test the monkey patches applied to the Object class.
9
8
  class MiniReadlineTester < Minitest::Test
10
9
 
11
- #Track mini-test progress.
12
- include MinitestVisible
13
-
14
10
  def test_that_it_has_a_version_number
15
11
  refute_nil ::MiniReadline::VERSION
16
12
  assert(::MiniReadline::VERSION.frozen?)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_readline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Camilleri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-14 00:00:00.000000000 Z
11
+ date: 2020-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mini_term
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '5.7'
69
- - !ruby/object:Gem::Dependency
70
- name: minitest_visible
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '0.1'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '0.1'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: reek
85
71
  requirement: !ruby/object:Gem::Requirement