foobara-rails-command-connector 0.0.6 → 0.1.1
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 +9 -1
 - data/src/rails_command_connector.rb +13 -5
 - metadata +33 -7
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 6d427529c9c4b2f848ae1dd10ecd6f04999a604d79a6d6c6c30b12deb96c27d5
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 5526f63690249568e3e8a8f2af59a1555ef936ffc12d8da2f2ae599e8ac51882
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: b53c24eece295f5fd47348952376131100bbf922e8091780a252a149e305d217e96e45585f42b7a741af25126c68c1815b1137842f36f87e292a8964179e04ac
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 246f70192a198dfd98379fd7b6e8ca7f8a6b00de8094f37b07228f4f226737f8d5e97ba8de9ed26fa2b9364cefd27aaba4bd36212dd0100a5036ec5f10b826ca
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,6 +1,14 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ## [0.1.1] - 2025-10-26
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            - Only install the first RailsCommandConnector to support multiple
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            ## [0.1.0] - 2025-08-22
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            - Mark as compatible with newer versions of foobara-rack-connector
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
       1 
9 
     | 
    
         
             
            ## [0.0.6] - 2025-03-28
         
     | 
| 
       2 
10 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            - 
         
     | 
| 
      
 11 
     | 
    
         
            +
            - Add support for manipulating cookies
         
     | 
| 
       4 
12 
     | 
    
         | 
| 
       5 
13 
     | 
    
         
             
            ## [0.0.5] - 2025-01-28
         
     | 
| 
       6 
14 
     | 
    
         | 
| 
         @@ -7,7 +7,15 @@ module Foobara 
     | 
|
| 
       7 
7 
     | 
    
         
             
                  class << self
         
     | 
| 
       8 
8 
     | 
    
         
             
                    # TODO: push this up the stack
         
     | 
| 
       9 
9 
     | 
    
         
             
                    def supported_actions
         
     | 
| 
       10 
     | 
    
         
            -
                       
     | 
| 
      
 10 
     | 
    
         
            +
                      [:run, :help, :describe, :list, :manifest]
         
     | 
| 
      
 11 
     | 
    
         
            +
                    end
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
                    def installed?
         
     | 
| 
      
 14 
     | 
    
         
            +
                      @installed
         
     | 
| 
      
 15 
     | 
    
         
            +
                    end
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
                    def mark_installed!
         
     | 
| 
      
 18 
     | 
    
         
            +
                      @installed = true
         
     | 
| 
       11 
19 
     | 
    
         
             
                    end
         
     | 
| 
       12 
20 
     | 
    
         
             
                  end
         
     | 
| 
       13 
21 
     | 
    
         | 
| 
         @@ -22,9 +30,9 @@ module Foobara 
     | 
|
| 
       22 
30 
     | 
    
         
             
                  end
         
     | 
| 
       23 
31 
     | 
    
         | 
| 
       24 
32 
     | 
    
         
             
                  def install!
         
     | 
| 
       25 
     | 
    
         
            -
                    return if  
     | 
| 
      
 33 
     | 
    
         
            +
                    return if self.class.installed?
         
     | 
| 
       26 
34 
     | 
    
         | 
| 
       27 
     | 
    
         
            -
                     
     | 
| 
      
 35 
     | 
    
         
            +
                    self.class.mark_installed!
         
     | 
| 
       28 
36 
     | 
    
         | 
| 
       29 
37 
     | 
    
         
             
                    attach_to_rails_application_config!
         
     | 
| 
       30 
38 
     | 
    
         
             
                    install_controller!
         
     | 
| 
         @@ -42,9 +50,9 @@ module Foobara 
     | 
|
| 
       42 
50 
     | 
    
         
             
                    Rails.application.routes.draw do
         
     | 
| 
       43 
51 
     | 
    
         
             
                      connector.supported_actions.each do |action|
         
     | 
| 
       44 
52 
     | 
    
         
             
                        match "#{prefix}/#{action}/*args", to: "foobara/rails##{action}",
         
     | 
| 
       45 
     | 
    
         
            -
                                                           via:  
     | 
| 
      
 53 
     | 
    
         
            +
                                                           via: [:get, :post, :patch, :put, :delete]
         
     | 
| 
       46 
54 
     | 
    
         
             
                        match "#{prefix}/#{action}", to: "foobara/rails##{action}",
         
     | 
| 
       47 
     | 
    
         
            -
                                                     via:  
     | 
| 
      
 55 
     | 
    
         
            +
                                                     via: [:get, :post, :patch, :put, :delete],
         
     | 
| 
       48 
56 
     | 
    
         
             
                                                     defaults: { args: "" }
         
     | 
| 
       49 
57 
     | 
    
         
             
                      end
         
     | 
| 
       50 
58 
     | 
    
         
             
                    end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,28 +1,54 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: foobara-rails-command-connector
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Miles Georgi
         
     | 
| 
       8 
8 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       9 
9 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       10 
     | 
    
         
            -
            date:  
     | 
| 
      
 10 
     | 
    
         
            +
            date: 1980-01-02 00:00:00.000000000 Z
         
     | 
| 
       11 
11 
     | 
    
         
             
            dependencies:
         
     | 
| 
      
 12 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 13 
     | 
    
         
            +
              name: foobara
         
     | 
| 
      
 14 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 15 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 16 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 17 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 18 
     | 
    
         
            +
                    version: 0.1.1
         
     | 
| 
      
 19 
     | 
    
         
            +
                - - "<"
         
     | 
| 
      
 20 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 21 
     | 
    
         
            +
                    version: 2.0.0
         
     | 
| 
      
 22 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 23 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 24 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 25 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 26 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 27 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 28 
     | 
    
         
            +
                    version: 0.1.1
         
     | 
| 
      
 29 
     | 
    
         
            +
                - - "<"
         
     | 
| 
      
 30 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 31 
     | 
    
         
            +
                    version: 2.0.0
         
     | 
| 
       12 
32 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       13 
33 
     | 
    
         
             
              name: foobara-rack-connector
         
     | 
| 
       14 
34 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       15 
35 
     | 
    
         
             
                requirements:
         
     | 
| 
       16 
     | 
    
         
            -
                - - " 
     | 
| 
      
 36 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 37 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 38 
     | 
    
         
            +
                    version: 0.1.0
         
     | 
| 
      
 39 
     | 
    
         
            +
                - - "<"
         
     | 
| 
       17 
40 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       18 
     | 
    
         
            -
                    version: 0.0 
     | 
| 
      
 41 
     | 
    
         
            +
                    version: 2.0.0
         
     | 
| 
       19 
42 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       20 
43 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       21 
44 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       22 
45 
     | 
    
         
             
                requirements:
         
     | 
| 
       23 
     | 
    
         
            -
                - - " 
     | 
| 
      
 46 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 47 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 48 
     | 
    
         
            +
                    version: 0.1.0
         
     | 
| 
      
 49 
     | 
    
         
            +
                - - "<"
         
     | 
| 
       24 
50 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       25 
     | 
    
         
            -
                    version: 0.0 
     | 
| 
      
 51 
     | 
    
         
            +
                    version: 2.0.0
         
     | 
| 
       26 
52 
     | 
    
         
             
            email:
         
     | 
| 
       27 
53 
     | 
    
         
             
            - azimux@gmail.com
         
     | 
| 
       28 
54 
     | 
    
         
             
            executables: []
         
     | 
| 
         @@ -60,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       60 
86 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       61 
87 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       62 
88 
     | 
    
         
             
            requirements: []
         
     | 
| 
       63 
     | 
    
         
            -
            rubygems_version: 3.6. 
     | 
| 
      
 89 
     | 
    
         
            +
            rubygems_version: 3.6.9
         
     | 
| 
       64 
90 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       65 
91 
     | 
    
         
             
            summary: Exposes Foobara commands through Rails router
         
     | 
| 
       66 
92 
     | 
    
         
             
            test_files: []
         
     |