megaphone-client 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea3788fe007c5771e476cbc5adfde59a540f4f43
4
- data.tar.gz: c3e00fbf0225d7c439684c84da295af81f5ab51e
3
+ metadata.gz: 3194e82bf4582a1956b969f23902751161badf46
4
+ data.tar.gz: 3e604bdf98d9440d551cead5ce2be555f9ced59c
5
5
  SHA512:
6
- metadata.gz: 1ed95ea4cee223e4f658badb1f29e99f7ae82610359fba6489d5cdbe656cd2f52b1c82a019dd1f5d60f8bf08b088b3add9c38f9c36fef52c876f7a2d40e80e65
7
- data.tar.gz: a2aaa416a658986540e7e1d6062c971101287c6913e91840bb0a8e735bc97779ed9094486cab054b7e3440d40035a88709ddb54762660a82ca805efceec7d770
6
+ metadata.gz: d68dd2886287ff4feeb390bbcffc0b0218769af1e5cbf385a412e72156e75cb3a8ccbe1dd8c287e21f90b9da933ec181a760f9d6c42fc9ca084ccf33eedd7364
7
+ data.tar.gz: 4b5261feb237c02f1c894bf8141effadf68d4a0ec1e2d5230ff287552ab19f0a43928c364cfe4e7081be84e0289a7290e0c91a4ed544a8315c2587719801654e
@@ -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.0]: https://github.com/redbubble/megaphone-client-ruby/compare/v0.1.2...v1.0.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
  [![Build Status](https://badge.buildkite.com/9f4fdb370f5f295ee6bf3d68937b1be2d7cf9bf65b2c7b4213.svg?branch=master)](https://buildkite.com/redbubble/megaphone-client-ruby)
5
5
  [![Gem Version](https://badge.fury.io/rb/megaphone-client.svg)](https://badge.fury.io/rb/megaphone-client)
6
+ ![Megaphone](https://img.shields.io/badge/Megaphone-2.0.0-blue.svg)
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/com/megaphone#stream
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
- meta: {
18
- schema: @schema,
19
- origin: @origin,
20
- topic: @topic,
21
- subtopic: @subtopic,
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
@@ -1,5 +1,5 @@
1
1
  module Megaphone
2
2
  class Client
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  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.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-08-18 00:00:00.000000000 Z
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.12
97
+ rubygems_version: 2.6.13
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Send events to Megaphone.