ripl 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.rdoc +3 -0
- data/README.rdoc +2 -0
- data/lib/ripl/runner.rb +1 -0
- data/lib/ripl/version.rb +1 -1
- data/test/runner_test.rb +10 -1
- metadata +4 -4
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
|
@@ -177,6 +177,7 @@ see {ripl-rails}[http://github.com/cldwalker/ripl-rails].
|
|
|
177
177
|
* {ripl-rocket}[https://github.com/janlelis/ripl-rocket]: outputs ripl result as a hash rocket
|
|
178
178
|
* {ripl-padrino}[https://github.com/achiu/ripl-padrino]: console for padrino
|
|
179
179
|
* {ripltools}[https://github.com/janlelis/ripltools]: a collection of ripl plugins
|
|
180
|
+
* {ripl-rc}[https://github.com/godfat/ripl-rc]: ripl plugins for debugging, class-based coloring and more
|
|
180
181
|
|
|
181
182
|
== Ripl Shells
|
|
182
183
|
Shells built on top of ripl:
|
|
@@ -184,6 +185,7 @@ Shells built on top of ripl:
|
|
|
184
185
|
* {nirvana}[http://github.com/cldwalker/nirvana]: A ruby web shell complete with autocomplete
|
|
185
186
|
* {fresh}[http://github.com/janlelis/fresh]: An interesting ruby/system hybrid shell
|
|
186
187
|
* {ripl-johnson}[http://github.com/cldwalker/ripl-johnson]: A js shell based on johnson (firefox tracemonkey)
|
|
188
|
+
* {ronin}[https://github.com/ronin-ruby/ronin]: An exploit development platform using ripl for its console
|
|
187
189
|
|
|
188
190
|
== More Ripl Links
|
|
189
191
|
|
data/lib/ripl/runner.rb
CHANGED
|
@@ -33,6 +33,7 @@ class Ripl::Runner
|
|
|
33
33
|
load_rc(Ripl.config[:riplrc]) unless argv.delete('-F') || options[:riplrc] == false
|
|
34
34
|
argv.each {|e| e[/^-/] ? break : argv.shift } if $0[/#{app}-\w+$/]
|
|
35
35
|
parse_options(argv) if $0[/#{app}$|#{app}-\w+$/]
|
|
36
|
+
warn "#{app}: Unused arguments: #{argv.inspect}" if !argv.empty?
|
|
36
37
|
Ripl.shell(options).loop
|
|
37
38
|
end
|
|
38
39
|
|
data/lib/ripl/version.rb
CHANGED
data/test/runner_test.rb
CHANGED
|
@@ -2,6 +2,7 @@ require File.join(File.dirname(__FILE__), 'test_helper')
|
|
|
2
2
|
|
|
3
3
|
describe "Runner" do
|
|
4
4
|
describe ".start" do
|
|
5
|
+
before_all { ARGV.replace [] }
|
|
5
6
|
before { reset_ripl }
|
|
6
7
|
|
|
7
8
|
it "loads riplrc" do
|
|
@@ -36,6 +37,14 @@ describe "Runner" do
|
|
|
36
37
|
Ripl.start(:name=>'dude')
|
|
37
38
|
Ripl.shell.name.should == 'dude'
|
|
38
39
|
end
|
|
40
|
+
|
|
41
|
+
it "prints warning if argument not parsed" do
|
|
42
|
+
mock_riplrc
|
|
43
|
+
mock_shell
|
|
44
|
+
capture_stderr {
|
|
45
|
+
Ripl.start :argv =>%w{-Idir command}
|
|
46
|
+
}.should =~ /Unused arguments.*command/
|
|
47
|
+
end
|
|
39
48
|
end
|
|
40
49
|
|
|
41
50
|
describe ".run" do
|
|
@@ -103,7 +112,7 @@ describe "Runner" do
|
|
|
103
112
|
it "has global option parsed after arguments" do
|
|
104
113
|
mock_exec 'test', '-r=blah'
|
|
105
114
|
mock(Runner).require('blah')
|
|
106
|
-
ripl("rails", "test", "-r=blah"
|
|
115
|
+
ripl("rails", "test", "-r=blah")
|
|
107
116
|
end
|
|
108
117
|
|
|
109
118
|
it "has automatic --help" do
|
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: 21
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 3
|
|
9
|
-
-
|
|
10
|
-
version: 0.3.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.3.3
|
|
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-
|
|
18
|
+
date: 2011-03-26 00:00:00 -04:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|