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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c258802bc2c9779efd9062aa4b6d50f19d3e8540
4
- data.tar.gz: 96b527444a58d81cc9a7ef4328054890cc239c4f
3
+ metadata.gz: edfef9b53b2018ba69c93716ab1901aa54c489fb
4
+ data.tar.gz: 1d49861217c98222b569fc96d37014460d6665a8
5
5
  SHA512:
6
- metadata.gz: 56b5a86b39142fa437ba2f014bef4e206da4592b5ac30a93365ef335c6dfd9f5fa41beda17a2e9a86a76aa3077a4804c59a49acff9fcb01ebfda4a4185560d94
7
- data.tar.gz: 82a77237b2b2df780330590f10268a187324724db9a663bd5a06950e0158f58897314b9bc225965ac7128a82ebb12f449ce2b5f1b51bec3e63e1dc26da9eb11e
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
@@ -38,6 +38,10 @@ module MiniReadline
38
38
  output
39
39
  end
40
40
 
41
+ #A stub.
42
+ def self.readline_attempted_completion_function(*_)
43
+ end
44
+
41
45
  end
42
46
 
43
47
  #Optionally: Setup the module alias for Readline
@@ -1,4 +1,4 @@
1
1
  module MiniReadline
2
2
  #The current version of the mini_readline gem.
3
- VERSION = "0.4.7"
3
+ VERSION = "0.4.8"
4
4
  end
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
- require 'irb'
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.7
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-02 00:00:00.000000000 Z
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