mysh 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: 973ad7ac6161666570edbe049641311b8a8aebb0
4
- data.tar.gz: a50607c5c035a75982e4bf0764d7eee6c2873c7c
3
+ metadata.gz: 01501618b236d9090c57fdb5fae6aaf32e70cf29
4
+ data.tar.gz: 587a78e2d6ebbc75a51582b657ab4d762e265919
5
5
  SHA512:
6
- metadata.gz: 1633cd65d32d85839f07377ecc68c1f230449ba2ef04b41ae36120663e9c6b2bf9ea91b6232f7d4a4808a6f3deee72b770ebc90c358c72392a65ceffe9b1a863
7
- data.tar.gz: 6c7c7c861c5da613eac8382a6f2754fdd05a0c6b50fdbfe56076956b7a85639a360876f0ab75809ebda6162ea7e58696bb5cf6fa988d7d35bd20dcf521fa0cb4
6
+ metadata.gz: b144728170d05aee7d0adedb9497e5be3fcd500d3193bdd272e849112558f0791bc773a2ded6ec0bf85a3a23b6b1d14863ed1e5933b92c4915ca53d9aacf842b
7
+ data.tar.gz: ff0b834eb49545b7713d9f5cf10fc0bf451984b99ae3e4079b25a3537e54766e58274d25ac1db59b351d7ddb16bf00eda0dc1abbb999557e5676bb324ed8eec1
@@ -12,3 +12,6 @@
12
12
  - executed by the system using the standard shell.
13
13
  - to force the use of the external shell, add a leading space to the command.
14
14
 
15
+ Note: If the command has a '.rb' extension it is executed by Ruby.
16
+ So the command "myfile.rb" is executed as "ruby myfile.rb"
17
+
@@ -4,7 +4,7 @@ module Mysh
4
4
 
5
5
  #Try to execute as a Ruby program.
6
6
  def self.ruby_execute(str)
7
- if File.extname(str.chomp) == '.rb'
7
+ if File.extname(str.split[0]) == '.rb'
8
8
  new_command = "ruby #{str}"
9
9
 
10
10
  puts "=> #{new_command}"
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Mysh
4
4
  #The version string of MY SHell.
5
- VERSION = "0.1.6"
5
+ VERSION = "0.1.7"
6
6
 
7
7
  #A brief summary of this gem.
8
8
  SUMMARY = "mysh -- a Ruby inspired command shell"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mysh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Camilleri