bullet_train-outgoing_webhooks 1.2.24 → 1.2.24.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7df4400b86060c86b60e951cfa9e4955dc7357a7bdbdbd3678dba1009a0f0e22
4
- data.tar.gz: 22ab7c8e7d577dfa2904f38dee58243ee85ec9ad42ccae1899fca01aea03cc7a
3
+ metadata.gz: 135b75b4699116255ec411678cabc3bed1f9c29dfcd562d6e51da2328af48d6c
4
+ data.tar.gz: 94e0e985bdc059d7d7f708f9fdeeeadd19087b56f3f8b77e714b9cdf060d14a8
5
5
  SHA512:
6
- metadata.gz: 0f6e71a71aaf701872a28ccf0b63a6692465eb13eaec6843f099bfdcaf8a7f4b04d9a1229eac2f290d6e0d2bf56c5f58ba9113f53fbbf352b2b8d8368f5d54c5
7
- data.tar.gz: bef56b1fc54f452c6ebb64507a49c43715667efb807b701f771940a2cb3b2b0b9ef108ca09094afe5fe7e0b181f158a3b02131978479e6d200b97eafb7448e49
6
+ metadata.gz: bab3534edee146fe1ba6d764062673f3033abc5991c18706dc48d42804e9272e8d88540def775fc739d59a787f36611d1beed6d9bf46ad9f7d16720355fa5d01
7
+ data.tar.gz: 9bc6ff6167bcee7fea7c5320152ed37920825ae198afb5f05ea4e9bb461465cfcc58964a7241f4da86bb91ddadb4e8e883a97941f0ed542cbc7e4b87ac511cd4
@@ -46,13 +46,13 @@ module Webhooks::Outgoing::DeliveryAttemptSupport
46
46
  end
47
47
 
48
48
  # Net::HTTP will consider the url invalid (and not deliver the webhook) unless it ends with a '/'
49
- unless uri.path.end_with?("/")
50
- uri.path = uri.path + "/"
49
+ if uri.path == ""
50
+ uri.path = "/"
51
51
  end
52
52
 
53
53
  http = Net::HTTP.new(hostname, uri.port)
54
54
  http.use_ssl = true if uri.scheme == "https"
55
- request = Net::HTTP::Post.new(uri.path)
55
+ request = Net::HTTP::Post.new(uri.request_uri)
56
56
  request.add_field("Host", uri.host)
57
57
  request.add_field("Content-Type", "application/json")
58
58
  request.body = delivery.event.payload.to_json
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module OutgoingWebhooks
3
- VERSION = "1.2.24"
3
+ VERSION = "1.2.24.2"
4
4
  end
5
5
  end
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.2
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-04-03 00:00:00.000000000 Z
11
+ date: 2023-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  requirements: []
175
- rubygems_version: 3.4.6
175
+ rubygems_version: 3.4.10
176
176
  signing_key:
177
177
  specification_version: 4
178
178
  summary: Allow users of your Rails application to subscribe and receive webhooks when