transit-ruby 0.8.569-java → 0.8.572-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/lib/transit.jar +0 -0
- data/lib/transit/marshaler/base.rb +0 -8
- data/spec/transit/writer_spec.rb +16 -1
- 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: bd9efa9d2e7a8bda1da0e2e5070ad44075049766
|
4
|
+
data.tar.gz: bf3e8d7779391c62a6558015e4663efa214cc145
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 404a8b0a1b058825ebc0bd1f181823f977d9c9818dd05923331e3a2e6041caeb8c8a04ffd12f70aba0fd35d1e8c0815b79b8b67aaf422d8c08bbda254f82d989
|
7
|
+
data.tar.gz: a365ea8f732d373ad6bb323bba1a5541da81d071dc44da584b389b6a4380dc063ba670c1766ec0d37c1efa8b7a08c72780e6544833fd460b90fcee80e6c7f393
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,18 @@
|
|
1
|
+
### 0.8.569 / 2014-12-03
|
2
|
+
|
3
|
+
* ByteArray#to_s forces default encoding for platform
|
4
|
+
* fixes rare bug in which trying to print binary data nested within
|
5
|
+
decoded binary data raises an encoding incompatibility error.
|
6
|
+
|
7
|
+
### 0.8.567 / 2014-09-21
|
8
|
+
|
9
|
+
* restore newline suppression when writing in json mode
|
10
|
+
* helpful error message when nested object has no handler
|
11
|
+
|
1
12
|
### 0.8.560 (java platform only) / 2014-09-12
|
2
13
|
|
3
14
|
* Bump dependency on transit-java to 0.8.269
|
4
|
-
|
15
|
+
* fixes bug which turned an empty set into an array
|
5
16
|
|
6
17
|
### 0.8.552 (java platform only) / 2014-09-12
|
7
18
|
|
data/lib/transit.jar
CHANGED
Binary file
|
@@ -78,14 +78,6 @@ module Transit
|
|
78
78
|
as_map_key ? emit_string(ESC, "?", handler.string_rep(b), true, cache) : emit_value(b)
|
79
79
|
end
|
80
80
|
|
81
|
-
def emit_int(tag, i, as_map_key, cache)
|
82
|
-
if as_map_key || i > @max_int || i < @min_int
|
83
|
-
emit_string(ESC, tag, i, as_map_key, cache)
|
84
|
-
else
|
85
|
-
emit_value(i, as_map_key)
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
81
|
def emit_double(d, as_map_key, cache)
|
90
82
|
as_map_key ? emit_string(ESC, "d", d, true, cache) : emit_value(d)
|
91
83
|
end
|
data/spec/transit/writer_spec.rb
CHANGED
@@ -175,6 +175,11 @@ module Transit
|
|
175
175
|
writer.write("this")
|
176
176
|
assert { JSON.parse(io.string) == ["~#'", "this"] }
|
177
177
|
end
|
178
|
+
|
179
|
+
it "writes an int map-key as an encoded string" do
|
180
|
+
writer.write({1 => :one})
|
181
|
+
assert { io.string =~ /~i1/ }
|
182
|
+
end
|
178
183
|
end
|
179
184
|
|
180
185
|
describe "JSON_VERBOSE" do
|
@@ -214,10 +219,15 @@ module Transit
|
|
214
219
|
writer.write("this")
|
215
220
|
assert { JSON.parse(io.string) == {"~#'" => "this"} }
|
216
221
|
end
|
222
|
+
|
223
|
+
it "writes an int map-key as an encoded string" do
|
224
|
+
writer.write({1 => :one})
|
225
|
+
assert { io.string =~ /~i1/ }
|
226
|
+
end
|
217
227
|
end
|
218
228
|
|
219
229
|
# JRuby skips these 3 examples since they use raw massage pack
|
220
|
-
# api. Also, JRuby doesn't
|
230
|
+
# api. Also, JRuby doesn't have good counterpart.
|
221
231
|
describe "MESSAGE_PACK", :unless => Transit::jruby? do
|
222
232
|
let(:writer) { Writer.new(:msgpack, io) }
|
223
233
|
|
@@ -235,6 +245,11 @@ module Transit
|
|
235
245
|
writer.write("this")
|
236
246
|
assert { MessagePack::Unpacker.new(StringIO.new(io.string)).read == ["~#'", "this"] }
|
237
247
|
end
|
248
|
+
|
249
|
+
it "writes an int map-key as an int" do
|
250
|
+
writer.write({1 => :one})
|
251
|
+
assert { io.string.each_char.drop(1).first == "\u0001" }
|
252
|
+
end
|
238
253
|
end
|
239
254
|
|
240
255
|
describe "ints" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transit-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.572
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Russ Olsen
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2015-01-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|