rash-shell 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/bin/rash +3 -3
- data/config.ru +3 -0
- data/lib/rash/shell/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 376ae84c119a0e0f97016601f94926d13b0c0603ab459ca58f735895c7162405
|
4
|
+
data.tar.gz: 688bec113802acc856454ee07e4647a4a858dbe4b22792dc0b8e3b3677fa4d29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6191977f986eb70f2904d2d2308c31acb155aed1190c09a1c98fe0ce8adee266add1eabaf8d4dbfacefe8583f51653e6f37a1324b8941e175d05e51f2e49a01d
|
7
|
+
data.tar.gz: 2a2ebf31053288093ce5d1cda9b3611f984bf49f5e711286474be6abb62f7fded1f5fb8716ce1c3b428da69c2648b64a6550c3e71a3898d2c6f29f6b8c6ae12a
|
data/.gitignore
CHANGED
data/bin/rash
CHANGED
@@ -11,13 +11,13 @@ Rack::Builder.parse_file(config_ru_path)
|
|
11
11
|
|
12
12
|
cmd = ''
|
13
13
|
|
14
|
-
if
|
14
|
+
if !$stdin.tty? || ARGV.any?
|
15
15
|
Pry.prompt = Pry::Prompt[:none][:value]
|
16
16
|
Pry.hooks.delete_hook(:before_session, :welcome)
|
17
17
|
Pry.config.print = proc { |output, value| output.puts value }
|
18
18
|
|
19
|
-
input = ARGV.any? ? ARGV.join(' ') :
|
20
|
-
cmd = 'begin;' + input + ';rescue=>e
|
19
|
+
input = ARGV.any? ? ARGV.join(' ') : $stdin.read
|
20
|
+
cmd = 'begin;' + input + ';rescue=>e;$stderr.puts(e.message);abort;else(exit);end'
|
21
21
|
end
|
22
22
|
|
23
23
|
Pry.start(Pry.toplevel_binding, input: StringIO.new(cmd))
|
data/config.ru
ADDED
data/lib/rash/shell/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rash-shell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean Mertz
|
@@ -95,6 +95,7 @@ files:
|
|
95
95
|
- README.md
|
96
96
|
- Rakefile
|
97
97
|
- bin/rash
|
98
|
+
- config.ru
|
98
99
|
- lib/rash/shell.rb
|
99
100
|
- lib/rash/shell/pry.rb
|
100
101
|
- lib/rash/shell/pry/commands.rb
|