ripl 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemspec +1 -1
- data/CHANGELOG.rdoc +3 -0
- data/README.rdoc +19 -5
- data/deps.rip +1 -1
- data/lib/ripl/readline.rb +0 -1
- data/lib/ripl/shell.rb +4 -1
- data/lib/ripl/version.rb +1 -1
- data/man/ripl.1 +1 -1
- data/man/ripl.1.html +1 -1
- data/man/ripl.1.ronn +1 -1
- metadata +7 -7
data/.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.required_rubygems_version = ">= 1.3.6"
|
14
14
|
s.rubyforge_project = 'tagaholic'
|
15
15
|
s.executables = %w(ripl)
|
16
|
-
s.add_dependency 'bond', '~> 0.
|
16
|
+
s.add_dependency 'bond', '~> 0.4.0'
|
17
17
|
s.add_development_dependency 'bacon', '>= 1.1.0'
|
18
18
|
s.add_development_dependency 'rr', '>= 1.0.0'
|
19
19
|
s.add_development_dependency 'bacon-bits'
|
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -8,17 +8,29 @@ easy to build custom shells (i.e. for a gem or application) and complex shells (
|
|
8
8
|
|
9
9
|
== Install
|
10
10
|
|
11
|
-
|
11
|
+
If you have {readline}[http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html], install ripl with:
|
12
12
|
|
13
|
-
|
13
|
+
gem install ripl
|
14
14
|
|
15
|
-
|
15
|
+
If you don't have readline, first install ripl with {a pure ruby
|
16
|
+
readline}[https://github.com/luislavena/rb-readline]:
|
17
|
+
|
18
|
+
gem install ripl rb-readline -- --without-readline
|
19
|
+
|
20
|
+
Then, add the following to ~/.riplrc:
|
21
|
+
|
22
|
+
Ripl.config[:readline] = 'rb-readline'
|
23
|
+
Ripl.config[:completion] = {:readline => :ruby }
|
24
|
+
|
25
|
+
== Setup
|
26
|
+
|
27
|
+
To make your first ripl experience smoother, install these plugins:
|
16
28
|
|
17
29
|
# Adds multi-line evaluation
|
18
|
-
|
30
|
+
gem install ripl-multi_line
|
19
31
|
|
20
32
|
# Ignore errors caused by irb-specific configuration in ~/.irbrc
|
21
|
-
|
33
|
+
gem install ripl-irb
|
22
34
|
|
23
35
|
# Add to ~/.riplrc
|
24
36
|
require 'ripl/multi_line'
|
@@ -161,6 +173,8 @@ see {ripl-rails}[http://github.com/cldwalker/ripl-rails].
|
|
161
173
|
* {ripl-profiles}[https://github.com/janlelis/ripl-profiles]: load ripl profiles with a --profile option
|
162
174
|
* {ripl-short_errors}[https://github.com/janlelis/ripl-misc/blob/master/lib/ripl/short_errors.rb]:
|
163
175
|
display short backtrace
|
176
|
+
* {ripl-rocket}[https://github.com/janlelis/ripl-rocket]: outputs ripl result as a hash rocket
|
177
|
+
* {ripl-padrino}[https://github.com/achiu/ripl-padrino]: console for padrino
|
164
178
|
|
165
179
|
== Ripl Shells
|
166
180
|
Shells built on top of ripl:
|
data/deps.rip
CHANGED
@@ -1 +1 @@
|
|
1
|
-
bond ~>0.
|
1
|
+
bond ~>0.4.0
|
data/lib/ripl/readline.rb
CHANGED
data/lib/ripl/shell.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
class Ripl::Shell
|
2
2
|
def self.create(options={})
|
3
|
-
|
3
|
+
if options[:readline]
|
4
|
+
require options[:readline] == true ? 'readline' : options[:readline]
|
5
|
+
require 'ripl/readline'
|
6
|
+
end
|
4
7
|
require 'ripl/completion' if options[:completion]
|
5
8
|
new(options)
|
6
9
|
rescue LoadError
|
data/lib/ripl/version.rb
CHANGED
data/man/ripl.1
CHANGED
@@ -62,7 +62,7 @@ A string or lambda to generate string that prompts user for input\. Default is \
|
|
62
62
|
.
|
63
63
|
.TP
|
64
64
|
\fB:readline\fR
|
65
|
-
A boolean to enable Readline\. Default is true\.
|
65
|
+
A boolean or string to enable Readline\. Default is true\. If a string, requires the readline\-like library\.
|
66
66
|
.
|
67
67
|
.TP
|
68
68
|
\fB:result_prompt\fR
|
data/man/ripl.1.html
CHANGED
@@ -117,7 +117,7 @@ Ripl.config is a hash with the following keys:</p>
|
|
117
117
|
<dt class="flush"><code>:irbrc</code></dt><dd><p>A ruby file to load at startup or false to not load anything. Default is '~/.irbrc'.</p></dd>
|
118
118
|
<dt class="flush"><code>:name</code></dt><dd><p>Name of the shell. Default is 'ripl'.</p></dd>
|
119
119
|
<dt class="flush"><code>:prompt</code></dt><dd><p>A string or lambda to generate string that prompts user for input. Default is '>> '.</p></dd>
|
120
|
-
<dt><code>:readline</code></dt><dd><p>A boolean to enable Readline. Default is true.</p></dd>
|
120
|
+
<dt><code>:readline</code></dt><dd><p>A boolean or string to enable Readline. Default is true. If a string, requires the readline-like library.</p></dd>
|
121
121
|
<dt><code>:result_prompt</code></dt><dd><p>A string that prefixes the result of an eval. Default is '=> '.</p></dd>
|
122
122
|
</dl>
|
123
123
|
|
data/man/ripl.1.ronn
CHANGED
@@ -50,7 +50,7 @@ Ripl.config is a hash with the following keys:
|
|
50
50
|
A string or lambda to generate string that prompts user for input. Default is '>> '.
|
51
51
|
|
52
52
|
* `:readline`:
|
53
|
-
A boolean to enable Readline. Default is true.
|
53
|
+
A boolean or string to enable Readline. Default is true. If a string, requires the readline-like library.
|
54
54
|
|
55
55
|
* `:result_prompt`:
|
56
56
|
A string that prefixes the result of an eval. Default is '=> '.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ripl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gabriel Horner
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-11 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,12 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 15
|
30
30
|
segments:
|
31
31
|
- 0
|
32
|
-
- 3
|
33
32
|
- 4
|
34
|
-
|
33
|
+
- 0
|
34
|
+
version: 0.4.0
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|