hey-pubsub 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
  SHA1:
3
- metadata.gz: e7e86cccd486ebf7f99dcb3b3fd054ee87dc643e
4
- data.tar.gz: a93db839d76dd98c5178ad72b4b865ba06e86902
3
+ metadata.gz: 665516fe0d03a52586360e2228a6e6bf6379073b
4
+ data.tar.gz: 7415acab7d51dcd150d778b0665b0c0c789273f0
5
5
  SHA512:
6
- metadata.gz: a97edb277e81c3761a444be82f8507a80c59dd4c259da5dd860ebe32cc855749f202c9a281484c7b5c5b601ddc94d2e58827ba4458a4aa491596ca48a0172562
7
- data.tar.gz: fda8810ce7f36deed31c4c1bd96eb91d8c8dfbfc48f8fe426013d97523164c2ac3e0e24c0c7349fb5d46e433e9f7c8779ac7ff47fa3ebac8b02135cc3ecc6231
6
+ metadata.gz: 27ba1cffb049f0b10e1ac0966892fc4cf2c126cdb600a1bba8a402fcdf2901583d7d99775feae0b34f97b62315c7652fc2235b598151c9bdbd1b43893a683718
7
+ data.tar.gz: c52b94e8b65d86d946411dfe6aeff65a63f94aea0696deca126e304719d666240de38d6bce6d05899356977dab4899ca0b585b55489a68bd40c8f7b8e1c979ed
data/README.md CHANGED
@@ -79,8 +79,8 @@ There are times you'd like sensitive information to be stripped from event paylo
79
79
  requests and responses you should redact credentials before writing to a database or logfile.
80
80
 
81
81
  It's easier to handle this sanitization during publication, since subscribers of the events will likely not know what
82
- values to strip. Hey provides a utility to record these sensitive values and every event published during the life of
83
- the current thread will redact them from their payloads.
82
+ values to strip. Hey provides a utility to record these sensitive values and every event published within a context and
83
+ will redact them from their payloads.
84
84
 
85
85
  You can sanitize data by using the key `sanitize` in your contexts:
86
86
 
@@ -3,7 +3,7 @@ class Hey::Pubsub::Event
3
3
  attr_accessor :name
4
4
 
5
5
  def initialize(name:, started_at: nil, ended_at: nil, metadata: {})
6
- @name = Hey::EventName.new(name).to_s
6
+ @name = name
7
7
  @started_at = started_at
8
8
  @ended_at = ended_at
9
9
  @metadata = metadata
data/lib/hey/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hey
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/lib/hey.rb CHANGED
@@ -23,6 +23,7 @@ module Hey
23
23
 
24
24
  module Behavior
25
25
  def publish!(event_name, payload = {}, &block)
26
+ event_name = Hey::EventName.new(event_name).to_s
26
27
  event = Hey::Pubsub::Event.new(name: event_name, metadata: payload)
27
28
  pubsub_adapter.publish!(event, &block)
28
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hey-pubsub
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
  - ShippingEasy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-04 00:00:00.000000000 Z
11
+ date: 2015-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler