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 +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/lib/ckeditor/webhook.rb +1 -1
- data/lib/ckeditor/webhook/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef8f6eb49dfa6e250f101699978f2bf642674e16794fa86fc1085fd4ebd7f95c
|
|
4
|
+
data.tar.gz: 330faa6171d065e911ecfda3e672e2905ae0ce6120e96d7704f2d2562fd82b9a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2311ab34648d0469656e4013ff908ae50543441d7934edc34d7eefbe1efb142832a4a8742d7145fe3d7b6f3170775603a3016594a9a71fe9fe17bc4199aaf4e
|
|
7
|
+
data.tar.gz: db74afea88c2eb14393456f0b91db602790d6069b9a9b9b201cd87c7f3032f8f22a633d3447a4e5853cf9f99e049fdbf82f72267f330b121da7c69d48a120f1f
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
data/Gemfile.lock
CHANGED
data/lib/ckeditor/webhook.rb
CHANGED
|
@@ -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 =
|
|
43
|
+
path = uri.path + (uri.query.nil? ? "" : "?#{uri.query}" )
|
|
44
44
|
method = method.upcase
|
|
45
45
|
body = payload.to_json
|
|
46
46
|
|
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.
|
|
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-
|
|
11
|
+
date: 2020-10-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|