rabbitmq 1.1.2 → 1.1.3

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: c4bf61759469222424a6d549a210f5d3a7dd2eb0
4
- data.tar.gz: 8ac327d4b4f978ca866efe8569d466496590fd87
3
+ metadata.gz: 1749ac3c7bfd2721f2f9f48c5ba5ede63a2d0deb
4
+ data.tar.gz: 305c391b8dcfd9ae007e4b8c5851d7ff078212fa
5
5
  SHA512:
6
- metadata.gz: 6806f9974abfb05a2a15db52732b1409080342bb9a0ef3e9f00c93b9e3731e4025a54d9766df8cff489f621a65959bff8af0a1c90ba03672fc5328188a15df06
7
- data.tar.gz: c33de036488f6f50e58f17c393a00232cce16491ee65fb255e5f0804d5401c10998e9ba6b5c603cc3449f48107d86fb4be8c577d697d362da23b52c393140e77
6
+ metadata.gz: e9fd333f784c4c909446db25edff71e15789550c1a0b9a815279070c3b0800a339a4cb26a5a2611ee6cf7cdb1078ea566f9ffe05a155cb44971b0c08471cee40
7
+ data.tar.gz: 17339c5fce83ae1335ee8151bceea6d50002536299d1b44fbc8f722b8dc3eb324ccd61e565bbcb8eb4acebee0808d16f2a2fb765538c442351be55de4a67fcfe
@@ -17,7 +17,7 @@ module RabbitMQ
17
17
  result = case kind
18
18
  when :bytes; value.to_s(free)
19
19
  when :utf8; value.to_s(free).force_encoding(Encoding::UTF_8)
20
- when :timestamp; Time.at(value / 1000.0)
20
+ when :timestamp; Time.at(value).utc
21
21
  when :table; value.to_h(free)
22
22
  when :array; value.to_a(free)
23
23
  else value
@@ -42,7 +42,7 @@ module RabbitMQ
42
42
  when ::Hash; [:table, FieldValueValue.new(Table.from(value).pointer)]
43
43
  when ::Fixnum; [:i64, (v=FieldValueValue.new; v[:i64]=value; v)]
44
44
  when ::Float; [:f64, (v=FieldValueValue.new; v[:f64]=value; v)]
45
- when ::Time; [:timestamp, (v=FieldValueValue.new; v[:u64]=value.to_i*1000; v)]
45
+ when ::Time; [:timestamp, (v=FieldValueValue.new; v[:u64]=value.to_i; v)]
46
46
  when true; [:boolean, (v=FieldValueValue.new; v[:boolean]=true; v)]
47
47
  when false; [:boolean, (v=FieldValueValue.new; v[:boolean]=false; v)]
48
48
  else raise NotImplementedError, "#{self.class}.from(#<#{value.class}>)"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbitmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe McIlvain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-05 00:00:00.000000000 Z
11
+ date: 2015-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi