kilden 0.1.0.alpha.3 → 0.1.0
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 +26 -1
- data/README.md +1 -1
- data/lib/kilden/canonical_json.rb +7 -2
- data/lib/kilden/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: c9acce05a4b8741ddcbb867f4d0b2f53154c13c25c72d4c0c4df28ea5298de3f
|
|
4
|
+
data.tar.gz: 2578a206645032f52b53a72bae70ed4fb25ca5f343c65634bb19d2ba9e2a6812
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0f34bd269740b6b9fa865db8772763fdbeb470344b2f92a97b6e620c202e7d82327bbc96e49befdc0eac1daf7125aa2a30569be622c74935111ea4c1b4bb120
|
|
7
|
+
data.tar.gz: 6553132a2647d8988b98369025f2041a3299826dea48c8dc18d8099303cfa1bb16d0d3671148cdb913a3bdc01418f0670894db2c1532cf943ad4814a937e2ab2
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.0] - 2026-07-16
|
|
11
|
+
|
|
12
|
+
First stable release. The public surface and the twelve behavior contracts of
|
|
13
|
+
[kilden-sdk-spec](https://github.com/kildenhq/kilden-sdk-spec) are now frozen
|
|
14
|
+
under semver: no breaking changes without a major bump.
|
|
15
|
+
|
|
16
|
+
Graduating out of prerelease also means a plain `gem "kilden"` resolves here —
|
|
17
|
+
Bundler ignores prereleases unless the version is spelled out in full.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- `IdentitySigner` escapes the JS line separators U+2028/U+2029 the way Go's
|
|
22
|
+
`encoding/json` does (spec §6.1). This only affects byte-identity with the
|
|
23
|
+
frozen vectors and the other SDKs — tokens signed by the previous release
|
|
24
|
+
verify fine, since the signature covers the payload as transmitted.
|
|
25
|
+
|
|
26
|
+
### Verified
|
|
27
|
+
|
|
28
|
+
- End-to-end against production ingest, not just the spec's mock server:
|
|
29
|
+
`track`, `identify` and `alias` land with `source=server`, `verified=true`;
|
|
30
|
+
`IdentitySigner` tokens are accepted by the enricher (a no-token control
|
|
31
|
+
lands `verified=false`); `enabled?` reflects live flag changes.
|
|
32
|
+
|
|
10
33
|
## [0.1.0.alpha.3] - 2026-07-14
|
|
11
34
|
|
|
12
35
|
### Changed
|
|
@@ -42,6 +65,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
42
65
|
- Vector runners for the three kilden-sdk-spec vector files, wired into CI
|
|
43
66
|
against the spec's mock capture server.
|
|
44
67
|
|
|
45
|
-
[Unreleased]: https://github.com/kildenhq/kilden-sdk-ruby/compare/v0.1.0
|
|
68
|
+
[Unreleased]: https://github.com/kildenhq/kilden-sdk-ruby/compare/v0.1.0...HEAD
|
|
69
|
+
[0.1.0]: https://github.com/kildenhq/kilden-sdk-ruby/compare/v0.1.0-alpha.3...v0.1.0
|
|
70
|
+
[0.1.0.alpha.3]: https://github.com/kildenhq/kilden-sdk-ruby/compare/v0.1.0-alpha.2...v0.1.0-alpha.3
|
|
46
71
|
[0.1.0.alpha.2]: https://github.com/kildenhq/kilden-sdk-ruby/compare/v0.1.0-alpha.1...v0.1.0-alpha.2
|
|
47
72
|
[0.1.0.alpha.1]: https://github.com/kildenhq/kilden-sdk-ruby/releases/tag/v0.1.0-alpha.1
|
data/README.md
CHANGED
|
@@ -142,7 +142,7 @@ in CI. Behavior changes land in the spec first.
|
|
|
142
142
|
|
|
143
143
|
## Community
|
|
144
144
|
|
|
145
|
-
- [Docs](https://
|
|
145
|
+
- [Docs](https://kilden.io/docs)
|
|
146
146
|
- [Discussions](https://github.com/kildenhq/kilden-sdk-ruby/discussions)
|
|
147
147
|
for questions — answers stay searchable.
|
|
148
148
|
|
|
@@ -10,7 +10,12 @@ module Kilden
|
|
|
10
10
|
# encoding/json does — the platform's reference generator.
|
|
11
11
|
# @api private
|
|
12
12
|
module CanonicalJSON
|
|
13
|
-
|
|
13
|
+
# &, <, > plus the JS line separators U+2028/U+2029, escaped the way
|
|
14
|
+
# Go's encoding/json does (SPEC §6.1).
|
|
15
|
+
GO_ESCAPES = {
|
|
16
|
+
"&" => "\\u0026", "<" => "\\u003c", ">" => "\\u003e",
|
|
17
|
+
"\u2028" => "\\u2028", "\u2029" => "\\u2029"
|
|
18
|
+
}.freeze
|
|
14
19
|
|
|
15
20
|
module_function
|
|
16
21
|
|
|
@@ -36,7 +41,7 @@ module Kilden
|
|
|
36
41
|
end
|
|
37
42
|
|
|
38
43
|
def string(value)
|
|
39
|
-
JSON.generate(value).gsub(/[
|
|
44
|
+
JSON.generate(value).gsub(/[&<>\u2028\u2029]/, GO_ESCAPES)
|
|
40
45
|
end
|
|
41
46
|
end
|
|
42
47
|
end
|
data/lib/kilden/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kilden
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Freshwork
|
|
@@ -39,7 +39,7 @@ metadata:
|
|
|
39
39
|
homepage_uri: https://github.com/kildenhq/kilden-sdk-ruby
|
|
40
40
|
source_code_uri: https://github.com/kildenhq/kilden-sdk-ruby
|
|
41
41
|
changelog_uri: https://github.com/kildenhq/kilden-sdk-ruby/blob/main/CHANGELOG.md
|
|
42
|
-
documentation_uri: https://
|
|
42
|
+
documentation_uri: https://kilden.io/docs
|
|
43
43
|
bug_tracker_uri: https://github.com/kildenhq/kilden-sdk-ruby/issues
|
|
44
44
|
rubygems_mfa_required: 'true'
|
|
45
45
|
rdoc_options: []
|