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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c456325198969a4aa40e771a0bf1feef897207e
4
- data.tar.gz: c11dbb9c8d964d5432ad94cd40ded34ef3e39511
3
+ metadata.gz: 3b998a195a0aaeb32b2c24895e9dd8749f5462c5
4
+ data.tar.gz: 9e68941aa0f00733cd0369c8e3769b0002e62f3a
5
5
  SHA512:
6
- metadata.gz: 6a938d0d68d31ca20f1ddbd26713f0be5334ff3443a71d1795603780d028700025c9a010e8cb11881c4eac5db5a41cdd156c75365b490e5e576ca8c11f4c1235
7
- data.tar.gz: 38b7605a963eb86d8c736532c85bab45a956a4db056471d910616d336caac9b3f1a7b179d8a62a783840596d94d9e7d686ea01887160c5cb92b8927a4e5c9bef
6
+ metadata.gz: b96a3334af1c4a758c5f57e4d0cc921825fac3bab974d4431669be75fd2056771b9ba724cd71d0f51ec29a8a0235fb959fadf15a88db62ccc913c2329d533d59
7
+ data.tar.gz: ed88e2008f43ba77de7ad12ad2cd60b2784e2b26c0acce61d2e12aa710a0868b1e296077fc4899247ce9f8d499a378e18454181695c812703371cc4fb7b763a7
@@ -1,3 +1,3 @@
1
1
  module MessagePack
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -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.1
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-01 00:00:00.000000000 Z
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