irsh 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/irsh +1 -1
- data/lib/dirextensions.rb +11 -0
- data/lib/shell.rb +0 -10
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 927cc2cb8b4bdfe3bb401412c0ed22a4e9511099
|
4
|
+
data.tar.gz: 8e4de0b4f7328c6d415352934b3df2a487d58375
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cedc1ab30124978a8f580d585cc498b961ed4b936e5715d4027f5f3d790a54e7f8c24049d1e017725a568574fc97736371d8bef05716a45cae8e67acb48bd94
|
7
|
+
data.tar.gz: 3efc93a626b15bd461dd024432ff606dadc1aa22e9e8209fd859efdbaf83e77e04f98d8ca60cdab5da2891fcef4ec98f97c95e1ac1ce90a1b7b47c97c7eca746
|
data/bin/irsh
CHANGED
data/lib/shell.rb
CHANGED
@@ -40,11 +40,7 @@ module Irsh
|
|
40
40
|
runoop
|
41
41
|
when "cd"
|
42
42
|
Dir.chdir(args)
|
43
|
-
#puts "CDAH"
|
44
|
-
#when "pwd"
|
45
|
-
#puts "PWDEE"
|
46
43
|
else
|
47
|
-
#puts "stuff"
|
48
44
|
puts `#{cmd}`
|
49
45
|
end
|
50
46
|
end
|
@@ -54,10 +50,7 @@ module Irsh
|
|
54
50
|
res = eval(cmd, @binding)
|
55
51
|
$last_res = res
|
56
52
|
eval("_ = $last_res", @binding)
|
57
|
-
#print_result res
|
58
53
|
puts res
|
59
|
-
#rescue Rush::Exception => e
|
60
|
-
#puts "Exception #{e.class} -> #{e.message}"
|
61
54
|
rescue ::Exception => e
|
62
55
|
puts "Exception #{e.class} -> #{e.message}"
|
63
56
|
e.backtrace.each do |t|
|
@@ -66,6 +59,3 @@ module Irsh
|
|
66
59
|
end
|
67
60
|
end
|
68
61
|
end
|
69
|
-
|
70
|
-
#puts Dir.pwd
|
71
|
-
#runliteral
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: irsh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Havear
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Shell written in ruby with a bash-like "literal" mode and an "oop" mode
|
14
|
-
that accepts Ruby code.
|
14
|
+
that accepts Ruby code. Heavily WIP.
|
15
15
|
email: haveargamer@yahoo.com
|
16
16
|
executables:
|
17
17
|
- irsh
|
@@ -19,6 +19,7 @@ extensions: []
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- bin/irsh
|
22
|
+
- lib/dirextensions.rb
|
22
23
|
- lib/shell.rb
|
23
24
|
homepage: https://rubygems.org/gems/irsh
|
24
25
|
licenses:
|