msgpack 0.6.1-java → 0.6.2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/msgpack/version.rb +1 -1
- data/spec/format_spec.rb +19 -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: 3b998a195a0aaeb32b2c24895e9dd8749f5462c5
|
4
|
+
data.tar.gz: 9e68941aa0f00733cd0369c8e3769b0002e62f3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b96a3334af1c4a758c5f57e4d0cc921825fac3bab974d4431669be75fd2056771b9ba724cd71d0f51ec29a8a0235fb959fadf15a88db62ccc913c2329d533d59
|
7
|
+
data.tar.gz: ed88e2008f43ba77de7ad12ad2cd60b2784e2b26c0acce61d2e12aa710a0868b1e296077fc4899247ce9f8d499a378e18454181695c812703371cc4fb7b763a7
|
data/lib/msgpack/version.rb
CHANGED
data/spec/format_spec.rb
CHANGED
@@ -126,6 +126,25 @@ describe MessagePack do
|
|
126
126
|
v.should == "\xE3\x81\x82".force_encoding('UTF-8')
|
127
127
|
end
|
128
128
|
|
129
|
+
it "symbol to str" do
|
130
|
+
v = pack_unpack(:a)
|
131
|
+
v.should == "a".force_encoding('UTF-8')
|
132
|
+
end
|
133
|
+
|
134
|
+
it "symbol to str with encoding" do
|
135
|
+
a = "\xE3\x81\x82".force_encoding('UTF-8')
|
136
|
+
v = pack_unpack(a.encode('Shift_JIS').to_sym)
|
137
|
+
v.encoding.should == Encoding::UTF_8
|
138
|
+
v.should == a
|
139
|
+
end
|
140
|
+
|
141
|
+
it "symbol to bin" do
|
142
|
+
a = "\xE3\x81\x82".force_encoding('ASCII-8BIT')
|
143
|
+
v = pack_unpack(a.to_sym)
|
144
|
+
v.encoding.should == Encoding::ASCII_8BIT
|
145
|
+
v.should == a
|
146
|
+
end
|
147
|
+
|
129
148
|
it "bin 8" do
|
130
149
|
check_bin 2, (1<<8)-1
|
131
150
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: msgpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-07-
|
12
|
+
date: 2015-07-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|