mini_readline 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -0
- data/irbt.rb +21 -0
- data/lib/mini_readline.rb +4 -0
- data/lib/mini_readline/version.rb +1 -1
- data/rakefile.rb +2 -7
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edfef9b53b2018ba69c93716ab1901aa54c489fb
|
4
|
+
data.tar.gz: 1d49861217c98222b569fc96d37014460d6665a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 175ef7109e65697862da2000893278f8e51c6181a748982b9dd8b4a8dd09b291c86e5b6f204e110838c5587d9226f12cc07d04eb8c796ccd024c81c247d18eb1
|
7
|
+
data.tar.gz: f3778b925a149e13bcaa9ecd80e10af9caad9cf2e1a985f23b8e0090e44442c6904ad5bcbecb0d14479ed45c0a94c239d16128f1cd0637d377bd8a42c8d14be4
|
data/README.md
CHANGED
@@ -64,6 +64,29 @@ The typical way of utilizing this gem is to place the following:
|
|
64
64
|
require 'mini_readline'
|
65
65
|
```
|
66
66
|
|
67
|
+
### Demos
|
68
|
+
|
69
|
+
There are a number of demo/test programs available for the mini_readline gem.
|
70
|
+
These are:
|
71
|
+
|
72
|
+
$ irbm
|
73
|
+
Starting an IRB console with mini_readline.
|
74
|
+
irb(main):001:0>
|
75
|
+
|
76
|
+
This runs against the most recently installed gem. Also available in the gem
|
77
|
+
root folder is the irbt test utility.
|
78
|
+
|
79
|
+
$ ruby irbt.rb
|
80
|
+
|
81
|
+
which again, uses the most recent gem installed in the system.
|
82
|
+
|
83
|
+
$ ruby irbt.rb local
|
84
|
+
|
85
|
+
which uses the local copy of mini_readline, ignoring the system gems. This can
|
86
|
+
also be accomplished with the command:
|
87
|
+
|
88
|
+
$ rake console
|
89
|
+
|
67
90
|
### Compatible Mode
|
68
91
|
|
69
92
|
In this mode, mini_readline is somewhat compatible with the classic readline.
|
data/irbt.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# An IRB + mini_readline Test bed
|
3
|
+
|
4
|
+
require 'irb'
|
5
|
+
$force_alias_read_line_module = true
|
6
|
+
|
7
|
+
puts "Starting an IRB console with mini_readline test bed."
|
8
|
+
|
9
|
+
if ARGV[0] == 'old'
|
10
|
+
ARGV.shift
|
11
|
+
elsif ARGV[0] == 'local'
|
12
|
+
require_relative 'lib/mini_readline'
|
13
|
+
puts "mini_readline loaded locally: #{MiniReadline::VERSION}"
|
14
|
+
|
15
|
+
ARGV.shift
|
16
|
+
else
|
17
|
+
require 'mini_readline'
|
18
|
+
puts "mini_readline loaded from gem: #{MiniReadline::VERSION}"
|
19
|
+
end
|
20
|
+
|
21
|
+
IRB.start
|
data/lib/mini_readline.rb
CHANGED
data/rakefile.rb
CHANGED
@@ -28,14 +28,9 @@ Rake::TestTask.new do |t|
|
|
28
28
|
t.verbose = false
|
29
29
|
end
|
30
30
|
|
31
|
-
desc "Fire up an IRB session with mini_readline."
|
31
|
+
desc "Fire up an IRB session with the local mini_readline."
|
32
32
|
task :console do
|
33
|
-
|
34
|
-
$force_alias_read_line_module = true
|
35
|
-
require './lib/mini_readline'
|
36
|
-
puts "Starting an IRB console with mini_readline."
|
37
|
-
ARGV.clear
|
38
|
-
IRB.start
|
33
|
+
system "ruby irbt.rb local"
|
39
34
|
end
|
40
35
|
|
41
36
|
desc "Run a scan for smelly code!"
|
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.4.
|
4
|
+
version: 0.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Camilleri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- LICENSE.txt
|
82
82
|
- README.md
|
83
83
|
- bin/irbm
|
84
|
+
- irbt.rb
|
84
85
|
- lib/mini_readline.rb
|
85
86
|
- lib/mini_readline/exceptions.rb
|
86
87
|
- lib/mini_readline/options.rb
|