adsp 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/adsp/test/stream/raw/compressor.rb +6 -2
- data/lib/adsp/test/stream/raw/decompressor.rb +6 -2
- data/lib/adsp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b25c9b2938fed09ada6d1803d1fc20039812449294a5a1279d1b043a490d65c8
|
|
4
|
+
data.tar.gz: 3b0ddfbe9c555ad4b2b92c442f105cf5361a9a26eb2cd8abf1fbf018cf442d49
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b32be608441b8882e496f09388b1e1ec442c795d7e5027b5af0525d1f0436045455a217583f7e2c6da33c16b924df2de17d2bda5bebb04c4c345e6bbf5b20ab
|
|
7
|
+
data.tar.gz: dc3a53421fcdd4ef7671b66ea6f73999a61b9a707148a7c0d29335e8e303f4e66bf96708fcb2add2706e81fe47a66b7c833c19c0969cc20e7f784e50af2a4ae7
|
|
@@ -95,7 +95,7 @@ module ADSP
|
|
|
95
95
|
compressed_text = compressed_buffer.string
|
|
96
96
|
|
|
97
97
|
get_compatible_decompressor_options compressor_options do |decompressor_options|
|
|
98
|
-
decompressed_text =
|
|
98
|
+
decompressed_text = string.decompress compressed_text, decompressor_options
|
|
99
99
|
decompressed_text.force_encoding text.encoding
|
|
100
100
|
|
|
101
101
|
assert_equal text, decompressed_text
|
|
@@ -141,7 +141,7 @@ module ADSP
|
|
|
141
141
|
|
|
142
142
|
compressed_text = compressed_buffer.string
|
|
143
143
|
|
|
144
|
-
decompressed_text =
|
|
144
|
+
decompressed_text = string.decompress compressed_text
|
|
145
145
|
decompressed_text.force_encoding text.encoding
|
|
146
146
|
|
|
147
147
|
assert_equal text, decompressed_text
|
|
@@ -165,6 +165,10 @@ module ADSP
|
|
|
165
165
|
def option
|
|
166
166
|
self.class::Option
|
|
167
167
|
end
|
|
168
|
+
|
|
169
|
+
def string
|
|
170
|
+
self.class::String
|
|
171
|
+
end
|
|
168
172
|
end
|
|
169
173
|
end
|
|
170
174
|
end
|
|
@@ -60,7 +60,7 @@ module ADSP
|
|
|
60
60
|
def test_texts
|
|
61
61
|
parallel_compressor_options do |compressor_options|
|
|
62
62
|
TEXTS.each do |text|
|
|
63
|
-
compressed_text =
|
|
63
|
+
compressed_text = string.compress text, compressor_options
|
|
64
64
|
|
|
65
65
|
PORTION_LENGTHS.each do |portion_length|
|
|
66
66
|
get_compatible_decompressor_options compressor_options do |decompressor_options|
|
|
@@ -115,7 +115,7 @@ module ADSP
|
|
|
115
115
|
text = options[:text]
|
|
116
116
|
portion_length = options[:portion_length]
|
|
117
117
|
|
|
118
|
-
compressed_text =
|
|
118
|
+
compressed_text = string.compress text
|
|
119
119
|
|
|
120
120
|
decompressed_buffer = ::StringIO.new
|
|
121
121
|
decompressed_buffer.set_encoding ::Encoding::BINARY
|
|
@@ -165,6 +165,10 @@ module ADSP
|
|
|
165
165
|
def option
|
|
166
166
|
self.class::Option
|
|
167
167
|
end
|
|
168
|
+
|
|
169
|
+
def string
|
|
170
|
+
self.class::String
|
|
171
|
+
end
|
|
168
172
|
end
|
|
169
173
|
end
|
|
170
174
|
end
|
data/lib/adsp/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: adsp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Aladjev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-07-
|
|
11
|
+
date: 2022-07-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: codecov
|