adsp 1.0.8 → 1.0.9
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76986bd130e6f8be968c9eae50c27fa1553fbab26d5b700fddba8ce6aa1961b0
|
4
|
+
data.tar.gz: 3f121ccf11e15403ceb6ef8094a02bbf290f10a7e6ee432b62a755dd011fbc7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 001ac1c10e745c59ef0fc09ab7abffd6a69efdddd59eab469fbe133e09258fce077bce35e6601c0567fbfe3677a82b495b742dc4efc91420119864ab316f50ae
|
7
|
+
data.tar.gz: eb84851b4c42596d45ff5c7b682d1dd0482032fd26a31bb8b3b3928442050d858983049da33e25420498816fa327d316706f414570bb7efd822313cfddaa5eed
|
@@ -330,7 +330,7 @@ module ADSP
|
|
330
330
|
end
|
331
331
|
|
332
332
|
def test_eof
|
333
|
-
compressed_text =
|
333
|
+
compressed_text = string.compress "ab"
|
334
334
|
instance = target.new ::StringIO.new(compressed_text)
|
335
335
|
|
336
336
|
refute_predicate instance, :eof?
|
@@ -581,7 +581,7 @@ module ADSP
|
|
581
581
|
|
582
582
|
protected def nonblock_test(server, text, portion_length, compressor_options = {}, &_block)
|
583
583
|
port = server.addr[1]
|
584
|
-
compressed_text =
|
584
|
+
compressed_text = string.compress text, compressor_options
|
585
585
|
|
586
586
|
processor = proc do |decompressor_options|
|
587
587
|
decompressed_text = ::TCPSocket.open "localhost", port do |socket|
|
@@ -618,11 +618,11 @@ module ADSP
|
|
618
618
|
# -----
|
619
619
|
|
620
620
|
protected def get_archive(text, compressor_options = {})
|
621
|
-
|
621
|
+
string.compress text, compressor_options
|
622
622
|
end
|
623
623
|
|
624
624
|
protected def write_archive(archive_path, text, compressor_options = {})
|
625
|
-
compressed_text =
|
625
|
+
compressed_text = string.compress text, compressor_options
|
626
626
|
::File.write archive_path, compressed_text, :mode => "wb"
|
627
627
|
end
|
628
628
|
|
@@ -641,6 +641,10 @@ module ADSP
|
|
641
641
|
def option
|
642
642
|
self.class::Option
|
643
643
|
end
|
644
|
+
|
645
|
+
def string
|
646
|
+
self.class::String
|
647
|
+
end
|
644
648
|
end
|
645
649
|
end
|
646
650
|
end
|
@@ -401,7 +401,7 @@ module ADSP
|
|
401
401
|
# -----
|
402
402
|
|
403
403
|
protected def write_archive(archive_path, text, compressor_options = {})
|
404
|
-
compressed_text =
|
404
|
+
compressed_text = string.compress text, compressor_options
|
405
405
|
::File.write archive_path, compressed_text, :mode => "wb"
|
406
406
|
end
|
407
407
|
|
@@ -420,6 +420,10 @@ module ADSP
|
|
420
420
|
protected def option
|
421
421
|
self.class::Option
|
422
422
|
end
|
423
|
+
|
424
|
+
protected def string
|
425
|
+
self.class::String
|
426
|
+
end
|
423
427
|
end
|
424
428
|
end
|
425
429
|
end
|
@@ -587,7 +587,7 @@ module ADSP
|
|
587
587
|
end
|
588
588
|
|
589
589
|
protected def check_text(text, compressed_text, decompressor_options = {})
|
590
|
-
decompressed_text =
|
590
|
+
decompressed_text = string.decompress compressed_text, decompressor_options
|
591
591
|
decompressed_text.force_encoding text.encoding
|
592
592
|
|
593
593
|
assert_equal text, decompressed_text
|
@@ -608,6 +608,10 @@ module ADSP
|
|
608
608
|
protected def option
|
609
609
|
self.class::Option
|
610
610
|
end
|
611
|
+
|
612
|
+
protected def string
|
613
|
+
self.class::String
|
614
|
+
end
|
611
615
|
end
|
612
616
|
end
|
613
617
|
end
|
@@ -245,7 +245,7 @@ module ADSP
|
|
245
245
|
end
|
246
246
|
|
247
247
|
protected def check_text(text, compressed_text, decompressor_options)
|
248
|
-
decompressed_text =
|
248
|
+
decompressed_text = string.decompress compressed_text, decompressor_options
|
249
249
|
decompressed_text.force_encoding text.encoding
|
250
250
|
|
251
251
|
assert_equal text, decompressed_text
|
@@ -266,6 +266,10 @@ module ADSP
|
|
266
266
|
protected def option
|
267
267
|
self.class::Option
|
268
268
|
end
|
269
|
+
|
270
|
+
protected def string
|
271
|
+
self.class::String
|
272
|
+
end
|
269
273
|
end
|
270
274
|
end
|
271
275
|
end
|
data/lib/adsp/version.rb
CHANGED