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 +4 -4
- data/bin/rash +2 -2
- data/lib/rash.rb +1 -2
- data/lib/rash/ext/filesystem.rb +2 -0
- data/lib/rash/redirection.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: dfc5e5ad65a440c46d61615f3af54351e8cea6d65ca029c0a6d6a8ad8532d1ea
         | 
| 4 | 
            +
              data.tar.gz: fe22cba6e10c9e03ff2dac578fb21f5247defb3e8523ae596f67b372667d1c2e
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 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. | 
| 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
         | 
    
        data/lib/rash.rb
    CHANGED
    
    | @@ -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)
         | 
    
        data/lib/rash/ext/filesystem.rb
    CHANGED
    
    | @@ -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
         | 
    
        data/lib/rash/redirection.rb
    CHANGED
    
    
    
        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. | 
| 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 | 
            -
               | 
| 48 | 
            +
              wiki_uri: https://github.com/KellenWatt/rash/wiki
         | 
| 49 49 | 
             
            post_install_message:
         | 
| 50 50 | 
             
            rdoc_options: []
         | 
| 51 51 | 
             
            require_paths:
         |