banter 2.0.3 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/banter/message.rb +1 -1
- data/lib/banter/version.rb +1 -1
- data/spec/banter/message_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 392e9d855319d4d23abbd43c12932480857be977
|
4
|
+
data.tar.gz: 261063589e891676943f98a1429a984de59c11f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b784e6a0f3f7d1b7de9fceececf8fb96baa10f2c34bcd78df6d0c8c86483a2e7edf5866add7357ab58e8e8b19b615effa9eb8633e743d39347ae62c04d52acd
|
7
|
+
data.tar.gz: 112fb318896f313aaf75116ca135b33653a6bc0663dd33f77f5b5ec47c871ab1f3c9e44df0e6b2bf0ba2aafc7ae2d70097f62bab278ec237cb5bd3fdf4a92af8
|
data/lib/banter/message.rb
CHANGED
@@ -18,7 +18,7 @@ module Banter
|
|
18
18
|
|
19
19
|
# Context object should be passed into the call.
|
20
20
|
def serialize(context, routing_key, payload)
|
21
|
-
@ts = Time.now.
|
21
|
+
@ts = Time.now.to_f
|
22
22
|
@pub = "#{routing_key}:#{Socket.gethostname()}:#{Process::pid}"
|
23
23
|
@version = @@message_version
|
24
24
|
@payload = payload
|
data/lib/banter/version.rb
CHANGED
data/spec/banter/message_spec.rb
CHANGED
@@ -15,6 +15,7 @@ describe Banter::Message do
|
|
15
15
|
|
16
16
|
it "should have all the header items" do
|
17
17
|
expect(result[:ts]).not_to be_nil
|
18
|
+
expect(result[:ts].class).to eq(Float)
|
18
19
|
expect(result[:v]).not_to be_nil
|
19
20
|
expect(result[:pub]).not_to be_nil
|
20
21
|
expect(result[:payload]).not_to be_nil
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: banter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Honest Company
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-04-
|
14
|
+
date: 2016-04-22 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|