irsh 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/irsh +1 -1
  3. data/lib/dirextensions.rb +11 -0
  4. data/lib/shell.rb +0 -10
  5. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e4da2bf963bd703c377995330ca5a780acf5098
4
- data.tar.gz: 474ecff12fdf172315917a1967c542e09d47affb
3
+ metadata.gz: 927cc2cb8b4bdfe3bb401412c0ed22a4e9511099
4
+ data.tar.gz: 8e4de0b4f7328c6d415352934b3df2a487d58375
5
5
  SHA512:
6
- metadata.gz: 2ea47dfdeec69069315179b36e1d237bb39edd85d0db6663bc150b0d903267c90b78773a77f8409adff9cbca69bf3e07fcd75be8201659339bd8a56b46d8703a
7
- data.tar.gz: c22f8f11b0d1c1cca48fec64a25d91709456cadaa13aee5422aadd41a8ea7d45782831fab1fdcf59570bad77f337cfe41e06ca741487f90e62adc0a565edfb29
6
+ metadata.gz: 4cedc1ab30124978a8f580d585cc498b961ed4b936e5715d4027f5f3d790a54e7f8c24049d1e017725a568574fc97736371d8bef05716a45cae8e67acb48bd94
7
+ data.tar.gz: 3efc93a626b15bd461dd024432ff606dadc1aa22e9e8209fd859efdbaf83e77e04f98d8ca60cdab5da2891fcef4ec98f97c95e1ac1ce90a1b7b47c97c7eca746
data/bin/irsh CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require File.dirname(__FILE__) + '/../lib/shell'
4
+ #require File.dirname(__FILE__) + '/../lib/dirextensions'
4
5
  #require_relative '../lib/shell'
5
6
 
6
7
  shell = Irsh::Shell.new
7
-
8
8
  shell.init
@@ -0,0 +1,11 @@
1
+ class Dir
2
+ def cp
3
+ #puts "stuff"
4
+ end
5
+ def mkdir
6
+
7
+ end
8
+ def rm
9
+
10
+ end
11
+ end
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.0
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 00:00:00.000000000 Z
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: