adsp 1.0.9 → 1.0.10

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: 76986bd130e6f8be968c9eae50c27fa1553fbab26d5b700fddba8ce6aa1961b0
4
- data.tar.gz: 3f121ccf11e15403ceb6ef8094a02bbf290f10a7e6ee432b62a755dd011fbc7d
3
+ metadata.gz: b25c9b2938fed09ada6d1803d1fc20039812449294a5a1279d1b043a490d65c8
4
+ data.tar.gz: 3b0ddfbe9c555ad4b2b92c442f105cf5361a9a26eb2cd8abf1fbf018cf442d49
5
5
  SHA512:
6
- metadata.gz: 001ac1c10e745c59ef0fc09ab7abffd6a69efdddd59eab469fbe133e09258fce077bce35e6601c0567fbfe3677a82b495b742dc4efc91420119864ab316f50ae
7
- data.tar.gz: eb84851b4c42596d45ff5c7b682d1dd0482032fd26a31bb8b3b3928442050d858983049da33e25420498816fa327d316706f414570bb7efd822313cfddaa5eed
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 = String.decompress compressed_text, decompressor_options
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 = String.decompress compressed_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 = String.compress text, compressor_options
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 = String.compress 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
@@ -3,5 +3,5 @@
3
3
 
4
4
  module ADSP
5
5
  # Abstract data stream processor version.
6
- VERSION = "1.0.9".freeze
6
+ VERSION = "1.0.10".freeze
7
7
  end
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.9
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-06 00:00:00.000000000 Z
11
+ date: 2022-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: codecov