fastlane-plugin-testbm 0.1.2 → 0.1.3
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: e80035d2c1d3b6f1c6406f2db35ec480e66376159af37dd102d368d6a2005069
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 1c15dcf171fa55d65c0953cb3419efd4263209db47726ad07360cb538929d39a
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 50fedb7e16bd52f9b317bc227de8d8fe984b9690e6281712ec0e6497efbbf00665fbd4916368152d7a94bb2a3fa5d3adfc77750fd5ab38c9c5e79ac67ed61308
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 88b2d205f9e032e40efb7927271ef594fe8814518f64351f2fb22a95ac68768a2d701f8dea1d823c8296a15f148a2403ab2a8628c83846ac950a8cd32a93605c
         
     | 
| 
         @@ -0,0 +1,67 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'fastlane/action'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            module Fastlane
         
     | 
| 
      
 4 
     | 
    
         
            +
              module Actions
         
     | 
| 
      
 5 
     | 
    
         
            +
                class ChatAction < Action
         
     | 
| 
      
 6 
     | 
    
         
            +
                  def self.run(params)
         
     | 
| 
      
 7 
     | 
    
         
            +
                    slack_icon = params(:slack_icon)
         
     | 
| 
      
 8 
     | 
    
         
            +
                    chat_message = params[:chat_message]
         
     | 
| 
      
 9 
     | 
    
         
            +
                    slack_url = params[:slack_url]
         
     | 
| 
      
 10 
     | 
    
         
            +
                    slack(
         
     | 
| 
      
 11 
     | 
    
         
            +
                      message: chat_message,
         
     | 
| 
      
 12 
     | 
    
         
            +
                      success: true,
         
     | 
| 
      
 13 
     | 
    
         
            +
                      slack_url: slack_url,
         
     | 
| 
      
 14 
     | 
    
         
            +
                      default_payloads: [:lane, :git_branch, :git_author],
         
     | 
| 
      
 15 
     | 
    
         
            +
                      icon_url: slack_icon,
         
     | 
| 
      
 16 
     | 
    
         
            +
                      username: "Bemobile Fastlane Plugin"
         
     | 
| 
      
 17 
     | 
    
         
            +
                    )        
         
     | 
| 
      
 18 
     | 
    
         
            +
                    UI.message("Message sent to Slack!")
         
     | 
| 
      
 19 
     | 
    
         
            +
                  end
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
                  def self.description
         
     | 
| 
      
 22 
     | 
    
         
            +
                    "Returns hello world"
         
     | 
| 
      
 23 
     | 
    
         
            +
                  end
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
                  def self.authors
         
     | 
| 
      
 26 
     | 
    
         
            +
                    ["Bemobile"]
         
     | 
| 
      
 27 
     | 
    
         
            +
                  end
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
                  def self.return_value
         
     | 
| 
      
 30 
     | 
    
         
            +
                    # If your method provides a return value, you can describe here what it does
         
     | 
| 
      
 31 
     | 
    
         
            +
                  end
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
                  def self.details
         
     | 
| 
      
 34 
     | 
    
         
            +
                    # Optional:
         
     | 
| 
      
 35 
     | 
    
         
            +
                    "Just a test plugin"
         
     | 
| 
      
 36 
     | 
    
         
            +
                  end
         
     | 
| 
      
 37 
     | 
    
         
            +
             
     | 
| 
      
 38 
     | 
    
         
            +
                  def self.available_options
         
     | 
| 
      
 39 
     | 
    
         
            +
                    [
         
     | 
| 
      
 40 
     | 
    
         
            +
                      FastlaneCore::ConfigItem.new(key: :chat_message,
         
     | 
| 
      
 41 
     | 
    
         
            +
                                               env_name: "CHAT_MESSAGE",
         
     | 
| 
      
 42 
     | 
    
         
            +
                                            description: "The chat message to be sent to Slack",
         
     | 
| 
      
 43 
     | 
    
         
            +
                                               optional: false,
         
     | 
| 
      
 44 
     | 
    
         
            +
                                                   type: String),
         
     | 
| 
      
 45 
     | 
    
         
            +
                      FastlaneCore::ConfigItem.new(key: :slack_icon,
         
     | 
| 
      
 46 
     | 
    
         
            +
                                                env_name: "SLACK_ICON",
         
     | 
| 
      
 47 
     | 
    
         
            +
                                            description: "The icon to be posted to Slack",
         
     | 
| 
      
 48 
     | 
    
         
            +
                                                optional: false,
         
     | 
| 
      
 49 
     | 
    
         
            +
                                                    type: String),
         
     | 
| 
      
 50 
     | 
    
         
            +
                      FastlaneCore::ConfigItem.new(key: :slack_url,
         
     | 
| 
      
 51 
     | 
    
         
            +
                                                env_name: "SLACK_URL",
         
     | 
| 
      
 52 
     | 
    
         
            +
                                            description: "The webhook's url to where we will post in Slack",
         
     | 
| 
      
 53 
     | 
    
         
            +
                                                optional: false,
         
     | 
| 
      
 54 
     | 
    
         
            +
                                                    type: String),
         
     | 
| 
      
 55 
     | 
    
         
            +
                    ]
         
     | 
| 
      
 56 
     | 
    
         
            +
                  end
         
     | 
| 
      
 57 
     | 
    
         
            +
             
     | 
| 
      
 58 
     | 
    
         
            +
                  def self.is_supported?(platform)
         
     | 
| 
      
 59 
     | 
    
         
            +
                    # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
         
     | 
| 
      
 60 
     | 
    
         
            +
                    # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
         
     | 
| 
      
 61 
     | 
    
         
            +
                    #
         
     | 
| 
      
 62 
     | 
    
         
            +
                    # [:ios, :mac, :android].include?(platform)
         
     | 
| 
      
 63 
     | 
    
         
            +
                    true
         
     | 
| 
      
 64 
     | 
    
         
            +
                  end
         
     | 
| 
      
 65 
     | 
    
         
            +
                end
         
     | 
| 
      
 66 
     | 
    
         
            +
              end
         
     | 
| 
      
 67 
     | 
    
         
            +
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: fastlane-plugin-testbm
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.3
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Bemobile
         
     | 
| 
         @@ -145,6 +145,7 @@ files: 
     | 
|
| 
       145 
145 
     | 
    
         
             
            - LICENSE
         
     | 
| 
       146 
146 
     | 
    
         
             
            - README.md
         
     | 
| 
       147 
147 
     | 
    
         
             
            - lib/fastlane/plugin/testbm.rb
         
     | 
| 
      
 148 
     | 
    
         
            +
            - lib/fastlane/plugin/testbm/actions/chat_action.rb
         
     | 
| 
       148 
149 
     | 
    
         
             
            - lib/fastlane/plugin/testbm/actions/salutation_action.rb
         
     | 
| 
       149 
150 
     | 
    
         
             
            - lib/fastlane/plugin/testbm/actions/testbm_action.rb
         
     | 
| 
       150 
151 
     | 
    
         
             
            - lib/fastlane/plugin/testbm/helper/testbm_helper.rb
         
     |