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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ffe8e3eece47523f1bb5a677adf303c69b6c1ef
4
- data.tar.gz: 062ccbc11797034cd01118cacd248fd6ad34109e
3
+ metadata.gz: 392e9d855319d4d23abbd43c12932480857be977
4
+ data.tar.gz: 261063589e891676943f98a1429a984de59c11f9
5
5
  SHA512:
6
- metadata.gz: 039159dff82b06db27b0a194f26f37e2216ed560d6a47f86d959d9311e240c2a3a911e7caa73d734f9c4ecad8431aa0c04996b56d6533395827af99d49cd25b8
7
- data.tar.gz: d1c728b53972d9e4043dbb396b3e2eaf60e17006975f2667ecc02e0a7c8a8db664ddcd3593c9ca022679dfaf1d535a89481bbf195ca215a8501bbfc6a69df2b3
6
+ metadata.gz: 8b784e6a0f3f7d1b7de9fceececf8fb96baa10f2c34bcd78df6d0c8c86483a2e7edf5866add7357ab58e8e8b19b615effa9eb8633e743d39347ae62c04d52acd
7
+ data.tar.gz: 112fb318896f313aaf75116ca135b33653a6bc0663dd33f77f5b5ec47c871ab1f3c9e44df0e6b2bf0ba2aafc7ae2d70097f62bab278ec237cb5bd3fdf4a92af8
@@ -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.to_i
21
+ @ts = Time.now.to_f
22
22
  @pub = "#{routing_key}:#{Socket.gethostname()}:#{Process::pid}"
23
23
  @version = @@message_version
24
24
  @payload = payload
@@ -1,3 +1,3 @@
1
1
  module Banter
2
- VERSION = "2.0.3"
2
+ VERSION = "2.1.0"
3
3
  end
@@ -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.3
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-08 00:00:00.000000000 Z
14
+ date: 2016-04-22 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler