fastlane-plugin-android_testlab_script_swit 0.1.70 → 0.1.71
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
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: f593ca762d36b46747fe86989df904189bfbc4ecdc41364dbab1c25a6a54c7f6
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 2e794388fc79040791752cbdae0413bf31836bb7e2dc80265c33aa963c32c322
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: e3daf646754270f04700706dbd601c1fd65cbd09e49623f9414d9d6727aff2a96b05c80d0bc065b76be31e812a19e9168cc363afd6b24e6912206d52bfe2e1fa
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: d0cda2d82a0c187c1dac48fa51f6ade98c72e85b8310b29e88bc74e41d0accdd4399fab895f4409d506821eaa0cf68c42d22b29ccc7118e03e297be9864e8d58
         
     | 
    
        data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
    CHANGED
    
    | 
         @@ -86,23 +86,26 @@ module Fastlane 
     | 
|
| 
       86 
86 
     | 
    
         
             
            #          end
         
     | 
| 
       87 
87 
     | 
    
         
             
            #        end
         
     | 
| 
       88 
88 
     | 
    
         | 
| 
       89 
     | 
    
         
            -
                    payload_string =  
     | 
| 
      
 89 
     | 
    
         
            +
                    payload_string = [
         
     | 
| 
       90 
90 
     | 
    
         
             
                        {"type" => "rt_section", "indent" => 1, "elements" => [{"type" => "rt_text", "content" => "Device#{index + 1}"}]},
         
     | 
| 
       91 
91 
     | 
    
         
             
                        {"type" => "rt_section", "indent" => 2, "elements" => [{"type" => "rt_text", "content" => "model : #{device[:model]}"}]},
         
     | 
| 
       92 
92 
     | 
    
         
             
                        {"type" => "rt_section", "indent" => 2, "elements" => [{"type" => "rt_text", "content" => "model : #{device[:version]}"}]},
         
     | 
| 
       93 
93 
     | 
    
         
             
                        {"type" => "rt_section", "indent" => 2, "elements" => [{"type" => "rt_text", "content" => "model : #{device[:locale]}"}]},
         
     | 
| 
       94 
94 
     | 
    
         
             
                        {"type" => "rt_section", "indent" => 2, "elements" => [{"type" => "rt_text", "content" => "model : #{device[:orientation]}"}]},
         
     | 
| 
       95 
95 
     | 
    
         
             
                        {"type" => "rt_section", "indent" => 2, "elements" => [{"type" => "rt_text", "content" => "model : #{outcome}"}]}
         
     | 
| 
       96 
     | 
    
         
            -
                     
     | 
| 
      
 96 
     | 
    
         
            +
                    ]
         
     | 
| 
       97 
97 
     | 
    
         | 
| 
       98 
     | 
    
         
            -
                    # 원래  
     | 
| 
      
 98 
     | 
    
         
            +
                    # 원래 하던 행위
         
     | 
| 
       99 
99 
     | 
    
         
             
            #        payload_string = params[:swit_webhook_payload]
         
     | 
| 
       100 
100 
     | 
    
         | 
| 
      
 101 
     | 
    
         
            +
                    # 앞뒤 지우기
         
     | 
| 
      
 102 
     | 
    
         
            +
                    payload_string = payload_string.to_json
         
     | 
| 
      
 103 
     | 
    
         
            +
                    
         
     | 
| 
       101 
104 
     | 
    
         
             
                    # Remove the closing square bracket from the original payload and add a comma
         
     | 
| 
       102 
105 
     | 
    
         
             
                    swit_webhook_payload = params[:swit_webhook_payload][0..-2] + ','
         
     | 
| 
       103 
106 
     | 
    
         | 
| 
       104 
107 
     | 
    
         
             
                    # Add the additional payload and close the square bracket
         
     | 
| 
       105 
     | 
    
         
            -
                    swit_webhook_payload += payload_string[1 
     | 
| 
      
 108 
     | 
    
         
            +
                    swit_webhook_payload += payload_string[1..]
         
     | 
| 
       106 
109 
     | 
    
         | 
| 
       107 
110 
     | 
    
         
             
                    # Swit Message
         
     | 
| 
       108 
111 
     | 
    
         
             
                    HTTParty.post(params[:swit_webhook_url], body: { body_text: params[:swit_webhook_payload] }.to_json, headers: { 'Content-Type' => 'application/json' })
         
     |