mysh 0.1.2 → 0.1.3

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: a7a1fe687d859a5bcd1b9d9c5752a37d0204373e
4
- data.tar.gz: b141ac7759e49a617717f77c49fe60faeb92540b
3
+ metadata.gz: ee8e1d97aa7b9d782e704bf95e171fd5f5c0a0f8
4
+ data.tar.gz: 8d6e20a8673f1801b5557ac7ffa8487e90f7a778
5
5
  SHA512:
6
- metadata.gz: 86c6a1c87904fd42c6cb2267c34d9233934d4180bce918ba427bc8e759f0dc724e196ce1b3d460f050aed7993619c62d8a70c57ff43a0893bf031ce259e025d7
7
- data.tar.gz: e584dbab723de2722996b57c10e20883939c5c46799d4f8d724e1424378640005f83ab1779d9f9df345255cd2f58c003f63cd7e4984357e85b442e9e1e172c6c
6
+ metadata.gz: c0311532fd1e3fe7b15ad394cade305e0144d1aa999abb991c1a5a79f832d2e16b019f6eade646b526556aade570dc4684fe90daa330d1df3ffea390752f8a55
7
+ data.tar.gz: dd3496581c50a907d0f7b9118f173cd7bd90976348672af854d8631b1ba95faa9dfc9b6a8a05c8ac5a93792c60c607c736c2ce144ad1df1d5a0fc714a9b1c9d1
data/lib/mysh.rb CHANGED
@@ -8,6 +8,7 @@ require 'English'
8
8
  #not interfere with the standard readline library.
9
9
  $no_alias_read_line_module = true
10
10
  require 'mini_readline'
11
+ require 'vls'
11
12
 
12
13
  require_relative 'mysh/smart_source'
13
14
  require_relative 'mysh/internal'
@@ -5,9 +5,6 @@ module Mysh
5
5
 
6
6
  #* exit.rb -- The mysh internal exit command.
7
7
  class InternalCommand
8
- #The tag used for default external help.
9
- EXT_TAG = '-'
10
-
11
8
  #Add the exit command to the library.
12
9
  add(self.new('help', 'Display help information for mysh.') do |args|
13
10
  puts "mysh (MY ruby SHell) version: #{Mysh::VERSION}"
@@ -33,8 +30,7 @@ module Mysh
33
30
  elsif args[0] == 'ruby'
34
31
  puts IO.read(File.dirname(__FILE__) + '/help_ruby.txt')
35
32
  else
36
- args[0] = "" if args[0] == EXT_TAG
37
- system("help " + args.join)
33
+ puts "help #{args[0]} ???"
38
34
  end
39
35
 
40
36
  end)
@@ -10,6 +10,7 @@ mysh Ruby expression support summary
10
10
 
11
11
  A few noteworthy methods exist that facilitate use of Ruby expressions:
12
12
 
13
- reset Reset the execution environment to the default state.
14
- result Returns the result of the previous expression.
15
-
13
+ reset Reset the execution environment to the default state.
14
+ result Returns the result of the previous expression.
15
+ vls <mask> List modules with version info. The optional mask string value
16
+ is used to filter for modules containing that string.
@@ -43,7 +43,8 @@ module Mysh
43
43
  do_execute($PREMATCH + "\n" + Mysh.input.readline(parms))
44
44
  else
45
45
  begin
46
- pp eval("@result" + str)
46
+ eval("@result" + str)
47
+ pp @result unless @result.nil?
47
48
  rescue StandardError, ScriptError => err
48
49
  puts "Error: #{err}"
49
50
  end
data/lib/mysh/version.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Mysh
4
4
  #The version string of MY SHell.
5
- VERSION = "0.1.2"
5
+ VERSION = "0.1.3"
6
6
 
7
7
  #A brief summary of this gem.
8
8
  SUMMARY = "mysh -- a Ruby inspired command shell"
data/mysh.gemspec CHANGED
@@ -31,4 +31,5 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency 'rdoc', "~> 4.0.1"
32
32
 
33
33
  spec.add_runtime_dependency 'mini_readline', ">= 0.6.0"
34
+ spec.add_runtime_dependency 'vls', ">= 0.3.9"
34
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mysh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Camilleri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-05 00:00:00.000000000 Z
11
+ date: 2016-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: 0.6.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: vls
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 0.3.9
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: 0.3.9
111
125
  description: mysh -- a Ruby inspired command shell for CLI and application use.
112
126
  email:
113
127
  - peter.c.camilleri@gmail.com