bullet_train-outgoing_webhooks 1.2.24.1 → 1.2.24.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: 55cabb2d6dcf3496e4c337faeceb709a40549244cc0fb481d6ea25d47b81b14c
         | 
| 4 | 
            +
              data.tar.gz: e4ece4d24c0398cc7a6c97938b0633f8a2ec8f45481f19ceedb1073f2fab5f1e
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 4f67165cc681481bb3c345c723547f95f1ba79a1dd084a93e4c9961b97e4e714d757462ec7fa8cc3b6f47407b0eb8c1cc864cdf3f558e8a18ce132503679a68c
         | 
| 7 | 
            +
              data.tar.gz: 713323ed16d009216bde8c8d45d7bba9785e496d71b42832350a25c3d1182900a0ef5acefa5c7ac126060bc661609407929da57e384459b8926d0ba7543a07da
         | 
| @@ -51,8 +51,14 @@ module Webhooks::Outgoing::DeliveryAttemptSupport | |
| 51 51 | 
             
                end
         | 
| 52 52 |  | 
| 53 53 | 
             
                http = Net::HTTP.new(hostname, uri.port)
         | 
| 54 | 
            -
                 | 
| 55 | 
            -
             | 
| 54 | 
            +
                if uri.scheme == "https"
         | 
| 55 | 
            +
                  http.use_ssl = true
         | 
| 56 | 
            +
                  if BulletTrain::OutgoingWebhooks.http_verify_mode
         | 
| 57 | 
            +
                    # Developers might need to set this to `OpenSSL::SSL::VERIFY_NONE` in some cases.
         | 
| 58 | 
            +
                    http.verify_mode = BulletTrain::OutgoingWebhooks.http_verify_mode
         | 
| 59 | 
            +
                  end
         | 
| 60 | 
            +
                end
         | 
| 61 | 
            +
                request = Net::HTTP::Post.new(uri.request_uri)
         | 
| 56 62 | 
             
                request.add_field("Host", uri.host)
         | 
| 57 63 | 
             
                request.add_field("Content-Type", "application/json")
         | 
| 58 64 | 
             
                request.body = delivery.event.payload.to_json
         | 
| @@ -10,6 +10,7 @@ module BulletTrain | |
| 10 10 | 
             
                mattr_accessor :parent_class, default: default_for(BulletTrain, :parent_class, "Team")
         | 
| 11 11 | 
             
                mattr_accessor :base_class, default: default_for(BulletTrain, :base_class, "ApplicationRecord")
         | 
| 12 12 | 
             
                mattr_accessor :advanced_hostname_security, default: false
         | 
| 13 | 
            +
                mattr_accessor :http_verify_mode
         | 
| 13 14 |  | 
| 14 15 | 
             
                def self.parent_association
         | 
| 15 16 | 
             
                  parent_class.underscore.to_sym
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: bullet_train-outgoing_webhooks
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.2.24. | 
| 4 | 
            +
              version: 1.2.24.3
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Andrew Culver
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2023- | 
| 11 | 
            +
            date: 2023-08-01 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: standard
         |