foobara-rails-command-connector 0.1.0 → 0.1.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/CHANGELOG.md +8 -0
 - data/src/rails_command_connector.rb +15 -4
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: ddbd332170de0585e2aba5977500f2b934959cd17b157f237b2ace5693bb1d29
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 03f46d1e7f03a7ed47717290068e1d4de1862c1fe13cd5f68cb9772ac5f6e160
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 8bb7043f22ab631c8a34815e9d9126c088c075bdbe91774d9354b5f7a87da7104263935b8c85e2f9665ed018fae63292c91de0740d872b1e6e2196fd58e94148
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 8e086607336df8c0327278c8223463c69c9fa41e223d9dbd3a259f396f6a4180c615766bba85922efe0e9d9472cee9bff24064ee453b10c2f9cd2347fbda1ce2
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,3 +1,11 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ## [0.1.2] - 2025-10-29
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            - Provide a way to prevent auto-installing a RailsCommandConnector
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            ## [0.1.1] - 2025-10-26
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            - Only install the first RailsCommandConnector to support multiple
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
       1 
9 
     | 
    
         
             
            ## [0.1.0] - 2025-08-22
         
     | 
| 
       2 
10 
     | 
    
         | 
| 
       3 
11 
     | 
    
         
             
            - Mark as compatible with newer versions of foobara-rack-connector
         
     | 
| 
         @@ -9,22 +9,33 @@ module Foobara 
     | 
|
| 
       9 
9 
     | 
    
         
             
                    def supported_actions
         
     | 
| 
       10 
10 
     | 
    
         
             
                      [:run, :help, :describe, :list, :manifest]
         
     | 
| 
       11 
11 
     | 
    
         
             
                    end
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
                    def installed?
         
     | 
| 
      
 14 
     | 
    
         
            +
                      @installed
         
     | 
| 
      
 15 
     | 
    
         
            +
                    end
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
                    def mark_installed!
         
     | 
| 
      
 18 
     | 
    
         
            +
                      @installed = true
         
     | 
| 
      
 19 
     | 
    
         
            +
                    end
         
     | 
| 
       12 
20 
     | 
    
         
             
                  end
         
     | 
| 
       13 
21 
     | 
    
         | 
| 
       14 
22 
     | 
    
         
             
                  attr_accessor :supported_actions
         
     | 
| 
       15 
23 
     | 
    
         | 
| 
       16 
     | 
    
         
            -
                  def initialize(*, 
     | 
| 
      
 24 
     | 
    
         
            +
                  def initialize(*,
         
     | 
| 
      
 25 
     | 
    
         
            +
                                 supported_actions: self.class.supported_actions,
         
     | 
| 
      
 26 
     | 
    
         
            +
                                 skip_install: false,
         
     | 
| 
      
 27 
     | 
    
         
            +
                                 **, &)
         
     | 
| 
       17 
28 
     | 
    
         
             
                    self.supported_actions = supported_actions
         
     | 
| 
       18 
29 
     | 
    
         | 
| 
       19 
30 
     | 
    
         
             
                    super(*, **, &)
         
     | 
| 
       20 
31 
     | 
    
         | 
| 
       21 
     | 
    
         
            -
                    install!
         
     | 
| 
      
 32 
     | 
    
         
            +
                    install! unless skip_install
         
     | 
| 
       22 
33 
     | 
    
         
             
                  end
         
     | 
| 
       23 
34 
     | 
    
         | 
| 
       24 
35 
     | 
    
         
             
                  def install!
         
     | 
| 
       25 
     | 
    
         
            -
                    return if  
     | 
| 
      
 36 
     | 
    
         
            +
                    return if self.class.installed?
         
     | 
| 
       26 
37 
     | 
    
         | 
| 
       27 
     | 
    
         
            -
                     
     | 
| 
      
 38 
     | 
    
         
            +
                    self.class.mark_installed!
         
     | 
| 
       28 
39 
     | 
    
         | 
| 
       29 
40 
     | 
    
         
             
                    attach_to_rails_application_config!
         
     | 
| 
       30 
41 
     | 
    
         
             
                    install_controller!
         
     |