bullet_train-outgoing_webhooks 1.2.24.1 → 1.2.25

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: 4befa92421eeb2a09947789aad3f98c72a2f9450af96c1aa6f917a8982e830a4
4
- data.tar.gz: d3c60cc750de9ac31746b3c661984d9e07647332b98c177a3ef66592299e7ff8
3
+ metadata.gz: e81637d68e3ae36f5f4fd1723c692b5d58577e5dd66db6b834ec843ed1b036a7
4
+ data.tar.gz: 9c422ab8041f69147fb38c5af3539c8742a2225073f27a70f49bf06455ee170c
5
5
  SHA512:
6
- metadata.gz: 03aecd3d71cf778aee7a02ae9d517f8018b1a2afeaaaae1ff4a9faac611889f0c0d422a3d81636d815fe95384d17206c7d47c289809ac41a338c461fa276cd8d
7
- data.tar.gz: 1dd0006a5425955a5b3d4e99d33d6b95a315de84bd89c8e0dca3e939e18d504fbfcada8b2aaea02bfe2cf785143975dbb245774d7c2ac716dcae41b50d4bb38e
6
+ metadata.gz: f68ed169a9250f8c3d5e73e848125138cec0c4a44cac49d751de96be8ac471ab00e32556e36ad6db471582836a4db38e7b71da2ca7f806da7a8677543e95eaf1
7
+ data.tar.gz: d09b381b296a9ec78084aab2cadfdfd3b1ca6d421e3e7ba75147b4bb963e4b09c6849fb921fbe6a740bc2ecd0ef3600e831f00d899813c876b8904152a940773
@@ -46,8 +46,8 @@ 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
- if uri.path == ""
50
- uri.path = "/"
49
+ unless uri.path.end_with?("/")
50
+ uri.path = uri.path + "/"
51
51
  end
52
52
 
53
53
  http = Net::HTTP.new(hostname, uri.port)
@@ -0,0 +1,5 @@
1
+ class AddApiVersionToWebhooksOutgoingEndpoints < ActiveRecord::Migration[7.0]
2
+ def change
3
+ add_column :webhooks_outgoing_endpoints, :api_version, :integer, null: false, default: 1
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddApiVersionToWebhooksOutgoingEvents < ActiveRecord::Migration[7.0]
2
+ def change
3
+ add_column :webhooks_outgoing_events, :api_version, :integer, null: false, default: 1
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class RemoveDefaultFromWebhooksOutgoingEndpoints < ActiveRecord::Migration[7.0]
2
+ def change
3
+ change_column_default :webhooks_outgoing_endpoints, :api_version, from: 1, to: nil
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class RemoveDefaultFromWebhooksOutgoingEvents < ActiveRecord::Migration[7.0]
2
+ def change
3
+ change_column_default :webhooks_outgoing_events, :api_version, from: 1, to: nil
4
+ end
5
+ end
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module OutgoingWebhooks
3
- VERSION = "1.2.24.1"
3
+ VERSION = "1.2.25"
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.1
4
+ version: 1.2.25
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-07-27 00:00:00.000000000 Z
11
+ date: 2023-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -147,6 +147,10 @@ files:
147
147
  - db/migrate/20211127015712_drop_webhooks_outgoing_endpoint_event_types.rb
148
148
  - db/migrate/20211127015713_drop_webhooks_outgoing_event_types.rb
149
149
  - db/migrate/20221130063357_add_creative_concept_to_endpoints.rb
150
+ - db/migrate/20221230223200_add_api_version_to_webhooks_outgoing_endpoints.rb
151
+ - db/migrate/20221230235326_add_api_version_to_webhooks_outgoing_events.rb
152
+ - db/migrate/20221231003437_remove_default_from_webhooks_outgoing_endpoints.rb
153
+ - db/migrate/20221231003438_remove_default_from_webhooks_outgoing_events.rb
150
154
  - lib/bullet_train/outgoing_webhooks.rb
151
155
  - lib/bullet_train/outgoing_webhooks/engine.rb
152
156
  - lib/bullet_train/outgoing_webhooks/version.rb
@@ -172,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
176
  - !ruby/object:Gem::Version
173
177
  version: '0'
174
178
  requirements: []
175
- rubygems_version: 3.4.10
179
+ rubygems_version: 3.3.7
176
180
  signing_key:
177
181
  specification_version: 4
178
182
  summary: Allow users of your Rails application to subscribe and receive webhooks when