rabbitmq 1.1.6 → 1.1.7
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 +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61e9902c2879005d809db69838f9df9fdd4e98f2
|
4
|
+
data.tar.gz: 6bbb9be877be0f402cae44b69d3eb08ba86f4aa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaa9700afe3266b5dd5635c6b24f146a806c8335ca81939a67b848e00ec602eb12af8a2422289d88cd489ed70a4aa007854459091f3d8f97839b090a8955c252
|
7
|
+
data.tar.gz: 0b1fcfcbf0417afcb536a1f9083924f064180d57a5bf602ecf82ab5639dd76642911cb0c3fa0ac0f3903f2aa4361601e0b680cd106b3ecb375217c0b1f8e64ef
|
@@ -36,8 +36,8 @@ module RabbitMQ
|
|
36
36
|
|
37
37
|
def apply(value)
|
38
38
|
self[:kind], self[:value] = case value
|
39
|
-
when ::String; [:
|
40
|
-
when ::Symbol; [:
|
39
|
+
when ::String; [:utf8, FieldValueValue.new(Bytes.from_s(value.encode(Encoding::UTF_8)).pointer)]
|
40
|
+
when ::Symbol; [:utf8, FieldValueValue.new(Bytes.from_s(value.to_s.encode!(Encoding::UTF_8)).pointer)]
|
41
41
|
when ::Array; [:array, FieldValueValue.new(Array.from_a(value).pointer)]
|
42
42
|
when ::Hash; [:table, FieldValueValue.new(Table.from(value).pointer)]
|
43
43
|
when ::Fixnum; [:i64, (v=FieldValueValue.new; v[:i64]=value; v)]
|