ckeditor-webhook 0.2.0 → 0.2.1

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: bda944afd5fd2617993aed74fb101655487b058926d5b053ff4578ea61cc737e
4
- data.tar.gz: b8dccf0bd010210d3b0c089ab8c8452574669e6d73c3d50cfc490a641507aefe
3
+ metadata.gz: ef8f6eb49dfa6e250f101699978f2bf642674e16794fa86fc1085fd4ebd7f95c
4
+ data.tar.gz: 330faa6171d065e911ecfda3e672e2905ae0ce6120e96d7704f2d2562fd82b9a
5
5
  SHA512:
6
- metadata.gz: 3f11f2080982005bb9f4e15b48424f5576a582299ffa28fa7432edc8d8afcf2812f1fac27eeeba4abf2aa12e285c5c96f36a0dbd089aa9b8f0c478fb5075d931
7
- data.tar.gz: bc85ba43baf16161eb0b0ea159e4db8637c36b8458fa1dc590eb0b433d863973f48c662e77248db37a5c7f81bb35ca6f7db07d7f2f4a2ccfdc1ca4cd21e31cc4
6
+ metadata.gz: e2311ab34648d0469656e4013ff908ae50543441d7934edc34d7eefbe1efb142832a4a8742d7145fe3d7b6f3170775603a3016594a9a71fe9fe17bc4199aaf4e
7
+ data.tar.gz: db74afea88c2eb14393456f0b91db602790d6069b9a9b9b201cd87c7f3032f8f22a633d3447a4e5853cf9f99e049fdbf82f72267f330b121da7c69d48a120f1f
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 0.2.1 - 2020-10-31
9
+
10
+ - Remove "?" character from `path` if the URL's query string does not exist. This should fix signature verification errors for URLs without a query string.
11
+
12
+ ## 0.2.0 - 2020-10-30
13
+
14
+ - Add `Event#id` method to return a hash based on the event's payload. Provided events' `sent_at` timestamps are separated by at least one millisecond, this should serve as a unique identifier.
15
+
8
16
  ## 0.1.0 - 2020-10-30
9
17
 
10
18
  - Initial release
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ckeditor-webhook (0.1.0)
4
+ ckeditor-webhook (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -40,7 +40,7 @@ module Ckeditor
40
40
  # @see https://ckeditor.com/docs/cs/latest/examples/security/request-signature-nodejs.html
41
41
  def message(method:, url:, timestamp:, payload:)
42
42
  uri = URI.parse(url)
43
- path = "#{uri.path}?#{uri.query}"
43
+ path = uri.path + (uri.query.nil? ? "" : "?#{uri.query}" )
44
44
  method = method.upcase
45
45
  body = payload.to_json
46
46
 
@@ -1,5 +1,5 @@
1
1
  module Ckeditor
2
2
  module Webhook
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ckeditor-webhook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Clayton
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-30 00:00:00.000000000 Z
11
+ date: 2020-10-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: