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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66270b2fac69b602165a403ebbf915286417778fdb942c98697db90373d2fc42
4
- data.tar.gz: a0362f5191689aad1d973d970043dda81ff5301b2ab368161ccf0f6f07641183
3
+ metadata.gz: 376ae84c119a0e0f97016601f94926d13b0c0603ab459ca58f735895c7162405
4
+ data.tar.gz: 688bec113802acc856454ee07e4647a4a858dbe4b22792dc0b8e3b3677fa4d29
5
5
  SHA512:
6
- metadata.gz: b88eb5c4e3e34aa7a70916b073766612144fab6627c95da95f12ca05b4d1186ded339e11d9461865d7eb28f5c5a93b8d894ff9e525f871867d2297dc7c36fb0b
7
- data.tar.gz: e0d0743d49f6ac944c37914b8e024f029df81a2405698ac00cb252a382a275cc06c16a08b7a63396b8c68010953bded14b482e29a7dad0c25c9baef12ad01b9c
6
+ metadata.gz: 6191977f986eb70f2904d2d2308c31acb155aed1190c09a1c98fe0ce8adee266add1eabaf8d4dbfacefe8583f51653e6f37a1324b8941e175d05e51f2e49a01d
7
+ data.tar.gz: 2a2ebf31053288093ce5d1cda9b3611f984bf49f5e711286474be6abb62f7fded1f5fb8716ce1c3b428da69c2648b64a6550c3e71a3898d2c6f29f6b8c6ae12a
data/.gitignore CHANGED
@@ -7,3 +7,5 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.gem
11
+ .pry_history
data/bin/rash CHANGED
@@ -11,13 +11,13 @@ Rack::Builder.parse_file(config_ru_path)
11
11
 
12
12
  cmd = ''
13
13
 
14
- if !STDIN.tty? || ARGV.any?
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(' ') : STDIN.read
20
- cmd = 'begin;' + input + ';rescue=>e;puts(e.message);abort;else(exit);end'
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))
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ run(proc { |_| [200, nil, %w[]] })
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rash
4
4
  module Shell
5
- VERSION = '0.2.0'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
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.2.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