megaphone-client 1.0.0 → 1.0.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 +13 -1
- data/README.md +3 -2
- data/lib/megaphone/client/event.rb +5 -7
- data/lib/megaphone/client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3194e82bf4582a1956b969f23902751161badf46
|
4
|
+
data.tar.gz: 3e604bdf98d9440d551cead5ce2be555f9ced59c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d68dd2886287ff4feeb390bbcffc0b0218769af1e5cbf385a412e72156e75cb3a8ccbe1dd8c287e21f90b9da933ec181a760f9d6c42fc9ca084ccf33eedd7364
|
7
|
+
data.tar.gz: 4b5261feb237c02f1c894bf8141effadf68d4a0ec1e2d5230ff287552ab19f0a43928c364cfe4e7081be84e0289a7290e0c91a4ed544a8315c2587719801654e
|
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](http://keepachangelog.com/en/1.0.0/) and
|
6
6
|
this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [1.0.1] - 2017-09-18
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
|
12
|
+
- Output format to match the [stream-schema v2][stream-schema-v2].
|
13
|
+
|
14
|
+
[stream-schema-v2]: https://github.com/redbubble/megaphone-event-type-registry/blob/master/stream-schema-2.0.0.json
|
15
|
+
|
8
16
|
## [1.0.0] - 2017-08-18
|
9
17
|
|
10
18
|
### Changed
|
@@ -41,6 +49,10 @@ this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
41
49
|
|
42
50
|
- Initial implementation of the `Megaphone::Client.publish!` method
|
43
51
|
|
44
|
-
[1.0.
|
52
|
+
[1.0.1]: https://github.com/redbubble/megaphone-client-ruby/compare/v1.0.1...v1.0.1
|
53
|
+
[1.0.0]: https://github.com/redbubble/megaphone-client-ruby/compare/v0.3.0...v1.0.0
|
54
|
+
[0.3.0]: https://github.com/redbubble/megaphone-client-ruby/compare/v0.2.0...v0.3.0
|
55
|
+
[0.2.0]: https://github.com/redbubble/megaphone-client-ruby/compare/v0.1.2...v0.2.0
|
56
|
+
[0.1.2]: https://github.com/redbubble/megaphone-client-ruby/compare/v0.1.1...v0.1.2
|
45
57
|
[0.1.2]: https://github.com/redbubble/megaphone-client-ruby/compare/v0.1.1...v0.1.2
|
46
58
|
[0.1.1]: https://github.com/redbubble/megaphone-client-ruby/compare/v0.1.0...v0.1.1
|
data/README.md
CHANGED
@@ -3,8 +3,9 @@ Megaphone::Client
|
|
3
3
|
|
4
4
|
[](https://buildkite.com/redbubble/megaphone-client-ruby)
|
5
5
|
[](https://badge.fury.io/rb/megaphone-client)
|
6
|
+

|
6
7
|
|
7
|
-
Send events to Megaphone.
|
8
|
+
Send events to [Megaphone](https://github.com/redbubble/Megaphone).
|
8
9
|
|
9
10
|
Getting Started
|
10
11
|
---------------
|
@@ -27,7 +28,7 @@ In order to be as unobstrusive as possible, this client will append events to lo
|
|
27
28
|
|
28
29
|
That behaviour ensures that unless you want to send events to the Megaphone [streams][stream], you do not need to [start Fluentd][megaphone-fluentd] at all.
|
29
30
|
|
30
|
-
[stream]: https://github.com/redbubble/
|
31
|
+
[stream]: https://github.com/redbubble/megaphone#stream
|
31
32
|
[megaphone-fluentd]: https://github.com/redbubble/megaphone-fluentd-container
|
32
33
|
|
33
34
|
### Publishing events
|
@@ -14,13 +14,11 @@ module Megaphone
|
|
14
14
|
|
15
15
|
def to_hash
|
16
16
|
{
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
partitionKey: @partition_key
|
23
|
-
},
|
17
|
+
schema: @schema,
|
18
|
+
origin: @origin,
|
19
|
+
topic: @topic,
|
20
|
+
subtopic: @subtopic,
|
21
|
+
partitionKey: @partition_key,
|
24
22
|
data: @payload
|
25
23
|
}
|
26
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: megaphone-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Redbubble
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-09-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fluent-logger
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.6.
|
97
|
+
rubygems_version: 2.6.13
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Send events to Megaphone.
|