ruby-shell 3.4.6 → 3.4.7
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/README.md +1 -0
- data/bin/rsh +10 -2
- metadata +5 -5
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 70cf831b842cb78920de4f541751dc71b1ec87d4d2619eb813d726aa9abe844d
         | 
| 4 | 
            +
              data.tar.gz: 3a1baee44aa63c583f62485d6df477b5aeca1f04801ce2dd6c9b92a35795e27e
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 96e26e3cb1788d7aa04eea7d8aabf034ac59f904fcc808151c3297d6a896794330be4e92c372c71f96376605e9943cd734c8871373fe6c4bf07e5fb3a0bbd891
         | 
| 7 | 
            +
              data.tar.gz: ef2907de7d2758f996beb911677430b1e1e674b388ebfa726d2dbead4e8b9670dc03baa7009b534ca268064ae4feaf8c1c6dc474552c1f6a6e60a86068cbd147
         | 
    
        data/README.md
    CHANGED
    
    | @@ -136,6 +136,7 @@ Special commands: | |
| 136 136 | 
             
            * `:nick` lists all command nicks, `:gnick` lists general nicks
         | 
| 137 137 | 
             
            * `:nick -name` delete a command nick, `:gnick -name` delete a general nick
         | 
| 138 138 | 
             
            * `:history` will list the command history, while `:rmhistory` will delete the history
         | 
| 139 | 
            +
            * `:rehash` rebuilds the executable cache (useful after installing new commands)
         | 
| 139 140 | 
             
            * `:jobs` will list background jobs, `:fg [job_id]` brings jobs to foreground, `:bg [job_id]` resumes stopped jobs
         | 
| 140 141 | 
             
            * `:defun func(args) = code` defines Ruby functions callable as shell commands (persistent!)
         | 
| 141 142 | 
             
            * `:defun` lists all user-defined functions, `:defun -func` removes functions
         | 
    
        data/bin/rsh
    CHANGED
    
    | @@ -8,7 +8,7 @@ | |
| 8 8 | 
             
            # Web_site:   http://isene.com/
         | 
| 9 9 | 
             
            # Github:     https://github.com/isene/rsh
         | 
| 10 10 | 
             
            # License:    Public domain
         | 
| 11 | 
            -
            @version    = "3.4. | 
| 11 | 
            +
            @version    = "3.4.7" # Added :rehash command to manually rebuild executable cache
         | 
| 12 12 |  | 
| 13 13 | 
             
            # MODULES, CLASSES AND EXTENSIONS
         | 
| 14 14 | 
             
            class String # Add coloring to strings (with escaping for Readline)
         | 
| @@ -1602,6 +1602,14 @@ def rmhistory # Delete history | |
| 1602 1602 | 
             
              @history = []
         | 
| 1603 1603 | 
             
              puts "History deleted."
         | 
| 1604 1604 | 
             
            end
         | 
| 1605 | 
            +
            def rehash # Force rebuild of executable cache
         | 
| 1606 | 
            +
              @exe_cache = nil
         | 
| 1607 | 
            +
              @exe_cache_path = nil
         | 
| 1608 | 
            +
              @exe_cache_time = 0
         | 
| 1609 | 
            +
              @exe_cache_paths = ""
         | 
| 1610 | 
            +
              cache_executables
         | 
| 1611 | 
            +
              puts "Executable cache rebuilt (#{@exe.length} commands cached)."
         | 
| 1612 | 
            +
            end
         | 
| 1605 1613 | 
             
            def nick(nick_str = nil)  # Define a new nick like this: `:nick "ls = ls --color"`
         | 
| 1606 1614 | 
             
              if nick_str.nil? || nick_str.empty?
         | 
| 1607 1615 | 
             
                # List all nicks
         | 
| @@ -3458,7 +3466,7 @@ loop do | |
| 3458 3466 | 
             
                                          save_session load_session list_sessions delete_session rmsession
         | 
| 3459 3467 | 
             
                                          validate completion_stats completion_reset
         | 
| 3460 3468 | 
             
                                          record replay
         | 
| 3461 | 
            -
                                          history rmhistory jobs fg bg dirs help info version]
         | 
| 3469 | 
            +
                                          history rmhistory rehash jobs fg bg dirs help info version]
         | 
| 3462 3470 |  | 
| 3463 3471 | 
             
                      # Try to call as rsh method
         | 
| 3464 3472 | 
             
                      if known_commands.include?(cmd_name)
         | 
    
        metadata
    CHANGED
    
    | @@ -1,20 +1,20 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: ruby-shell
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3.4. | 
| 4 | 
            +
              version: 3.4.7
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Geir Isene
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2025-10- | 
| 11 | 
            +
            date: 2025-10-29 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies: []
         | 
| 13 13 | 
             
            description: 'A shell written in Ruby with extensive tab completions, aliases/nicks,
         | 
| 14 14 | 
             
              history, syntax highlighting, theming, auto-cd, auto-opening files and more. UPDATE
         | 
| 15 | 
            -
              v3.4. | 
| 16 | 
            -
               | 
| 17 | 
            -
               | 
| 15 | 
            +
              v3.4.7: Added :rehash command to manually rebuild executable cache (like zsh''s
         | 
| 16 | 
            +
              rehash builtin). Plus v3.4.6: Plugin help system, 4 new plugins, plugins disabled
         | 
| 17 | 
            +
              by default!'
         | 
| 18 18 | 
             
            email: g@isene.com
         | 
| 19 19 | 
             
            executables:
         | 
| 20 20 | 
             
            - rsh
         |