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 +4 -4
- data/lib/rabbitmq/ffi/ext/field_value.rb +2 -2
- 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: 1749ac3c7bfd2721f2f9f48c5ba5ede63a2d0deb
|
4
|
+
data.tar.gz: 305c391b8dcfd9ae007e4b8c5851d7ff078212fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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.
|
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-
|
11
|
+
date: 2015-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|