gloo 3.6.1 → 3.6.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/lib/VERSION +1 -1
- data/lib/VERSION_NOTES +4 -0
- data/lib/gloo/objs/web/uri.rb +5 -3
- 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: a5821f97e00507549b9270307c7965649e57f9b2db2ddca0c443fa5705fe4e50
         | 
| 4 | 
            +
              data.tar.gz: 31fc695bb6f0e367cc8a034a35c6548eb958db3946f874b80bde1748c9691c6f
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 6ca5dcd7554a5f640a8ec16512de56bfe76638de1a87f7267fafd57b727cb3a3044d77ad0f099cb4d390c90ec8b0dd6e30b3ce7eb3875731c2082fb6ba626f43
         | 
| 7 | 
            +
              data.tar.gz: 99acc770c29d36ed41e117f5b0ca4ceb20dcefa6bb6115d16116f890502dcdf8cae49f92cbb1ce4724261939be602edab8e516519a3dfddc9c6a5e3aa5f48c99
         | 
    
        data/lib/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            3.6. | 
| 1 | 
            +
            3.6.2
         | 
    
        data/lib/VERSION_NOTES
    CHANGED
    
    
    
        data/lib/gloo/objs/web/uri.rb
    CHANGED
    
    | @@ -138,7 +138,7 @@ module Gloo | |
| 138 138 | 
             
                  def msg_open
         | 
| 139 139 | 
             
                    return unless value
         | 
| 140 140 |  | 
| 141 | 
            -
                    Gloo::Objs::Uri.open_url value
         | 
| 141 | 
            +
                    Gloo::Objs::Uri.open_url value, @engine
         | 
| 142 142 | 
             
                  end
         | 
| 143 143 |  | 
| 144 144 |  | 
| @@ -149,16 +149,18 @@ module Gloo | |
| 149 149 | 
             
                  # 
         | 
| 150 150 | 
             
                  # Open the given URL with platform command.
         | 
| 151 151 | 
             
                  # 
         | 
| 152 | 
            -
                  def self.open_url url
         | 
| 152 | 
            +
                  def self.open_url( url, engine=nil )
         | 
| 153 153 | 
             
                    cmd = Gloo::Core::GlooSystem.open_for_platform
         | 
| 154 154 | 
             
                    cmd_with_param = "#{cmd} \"#{url}\""
         | 
| 155 155 |  | 
| 156 156 | 
             
                    if OS.mac?
         | 
| 157 | 
            +
                      engine.log.warn 'Opening URL.' if engine
         | 
| 158 | 
            +
             | 
| 157 159 | 
             
                      `#{cmd_with_param}`
         | 
| 158 160 | 
             
                    else
         | 
| 159 161 | 
             
                      # This does not work in Linux or in WSL on Windows:
         | 
| 160 162 | 
             
                      # exec cmd_with_param
         | 
| 161 | 
            -
                       | 
| 163 | 
            +
                      engine.log.warn 'Opening URL not supported on this platform.' if engine
         | 
| 162 164 | 
             
                    end
         | 
| 163 165 | 
             
                  end
         | 
| 164 166 |  |