rash-command-shell 0.4.2.1 → 0.4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 963d88b02cd2e9b8e448bb58808eb699917bfcc452c2530c979879d8acab934f
4
- data.tar.gz: a9553ad99f9111c07c0de375968ce041a3cacea043e68af8e3eed9fa988e5203
3
+ metadata.gz: dfc5e5ad65a440c46d61615f3af54351e8cea6d65ca029c0a6d6a8ad8532d1ea
4
+ data.tar.gz: fe22cba6e10c9e03ff2dac578fb21f5247defb3e8523ae596f67b372667d1c2e
5
5
  SHA512:
6
- metadata.gz: 0d19a800acd697b0e64a029b5b76dd7a2eb083de3601b5c78987be674156423a654624c845538be7038bc14ca0a845617adb974b8fa935fb1e4bd612f6d89765
7
- data.tar.gz: 3dffa778fbb51114d0a114ff7c98952f43857304ed33150aa4a172fec7d4daf35f5092e637bb8547e04e9a1b4c139b91566bf4ccbb5c0130db82f03e90078115
6
+ metadata.gz: 48d51cb3c68949accf870d3e80fd526d570d420fd28bc3de4a4a5a94ac18a3fb070c37531ef736a467e8c0642aa790f9ae99db9e565bbd46a12f0f170e86e5c1
7
+ data.tar.gz: c61f1b1689ccd5031b14c4a4bb14dba0b002f9d820af0eb0c4b1be03e13bb026449bfa0b5159d9aaa92c8e178f80e83cb7447ce17af6c64613295aa6838fa561
data/bin/rash CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  if ARGV.empty?
4
- exec("irb", "-r", "rash", *ARGV)
4
+ exec(["irb", "rash"], "-r", "rash", *ARGV)
5
5
  elsif ARGV[0] =~ /(-)?-v(ersion)?/
6
6
  puts "Rash (c) 2020 Kellen Watt"
7
- puts "Version 0.4.2.1" # I may forget to update this
7
+ puts "Version 0.4.2.2" # I may forget to update this
8
8
  elsif File.exists?(ARGV[0]) && !File.directory?(ARGV[0])
9
9
  require "rash"
10
10
  file = ARGV.shift
@@ -101,7 +101,6 @@ class Environment
101
101
  AUTO_INDENT: true,
102
102
  RETURN: ""
103
103
  }
104
- ENV["RASHDIR"] = File.dirname(__FILE__)
105
104
  end
106
105
 
107
106
  def resolve_command(m, *args, literal: false)
@@ -214,6 +213,6 @@ def self.method_missing(m, *args, &block)
214
213
  end
215
214
  end
216
215
 
217
-
216
+ Process.setproctitle("rash")
218
217
  run_command_file = "#{$env.HOME}/.rashrc"
219
218
  load run_command_file if File.file?(run_command_file)
@@ -34,6 +34,8 @@ class Environment
34
34
  @working_directory.local_methods
35
35
  end
36
36
 
37
+ # This ultimately behaves similarly to a lambda in function if that ever changes,
38
+ # then the proc needs to be converted to a lambda.
37
39
  def local_call(name, *args, &block)
38
40
  @working_directory.local_method(name).call(*args, &block)
39
41
  end
@@ -67,7 +67,7 @@ class Environment
67
67
  end
68
68
 
69
69
  def reset_stdin
70
- $stdin.close unless standard_stream>($stdin)
70
+ $stdin.close unless standard_stream?($stdin)
71
71
  $stdin = DEFAULT_IO[:in]
72
72
  end
73
73
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rash-command-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2.1
4
+ version: 0.4.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kellen Watt
@@ -45,7 +45,7 @@ licenses:
45
45
  - MIT
46
46
  metadata:
47
47
  documentation_uri: https://github.com/KellenWatt/rash/wiki
48
- wiki: https://github.com/KellenWatt/rash/wiki
48
+ wiki_uri: https://github.com/KellenWatt/rash/wiki
49
49
  post_install_message:
50
50
  rdoc_options: []
51
51
  require_paths: