omnizip 0.3.39 → 0.3.41

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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Omnizip
4
- VERSION = "0.3.39"
4
+ VERSION = "0.3.41"
5
5
  end
@@ -340,7 +340,7 @@ Zstandard offers fast compression with good ratios, using the native library.
340
340
 
341
341
  [source,ruby]
342
342
  ----
343
- algorithm = Omnizip::AlgorithmRegistry.get(:zstd).new(level: 3)
343
+ algorithm = Omnizip::AlgorithmRegistry.get(:zstandard).new(level: 3)
344
344
  algorithm.compress(input, output)
345
345
  ----
346
346
 
@@ -246,7 +246,7 @@ end
246
246
 
247
247
  # List all available
248
248
  algorithms = Omnizip::AlgorithmRegistry.available
249
- # => [:lzma, :lzma2, :bzip2, :ppmd7, :ppmd8, :deflate, :deflate64, :zstd]
249
+ # => [:lzma, :lzma2, :bzip2, :ppmd7, :ppmd8, :deflate, :deflate64, :zstandard]
250
250
  ----
251
251
 
252
252
  === Adding New Algorithms
@@ -329,7 +329,7 @@ Zstandard supports levels 1-22:
329
329
 
330
330
  [source,ruby]
331
331
  ----
332
- zstd = Omnizip::AlgorithmRegistry.get(:zstd).new(level: 3)
332
+ zstd = Omnizip::AlgorithmRegistry.get(:zstandard).new(level: 3)
333
333
  zstd.compress(input, output)
334
334
  ----
335
335
 
@@ -63,7 +63,7 @@ require 'omnizip'
63
63
 
64
64
  # Check available algorithms
65
65
  puts Omnizip::AlgorithmRegistry.available.inspect
66
- # => [:lzma, :lzma2, :bzip2, :ppmd7, :ppmd8, :deflate, :deflate64, :zstd]
66
+ # => [:lzma, :lzma2, :bzip2, :ppmd7, :ppmd8, :deflate, :deflate64, :zstandard]
67
67
 
68
68
  # Get version
69
69
  puts Omnizip::VERSION
@@ -302,7 +302,7 @@ def compare_algorithms(data, algorithms)
302
302
  end
303
303
 
304
304
  data = File.read('test_file.dat')
305
- compare_algorithms(data, [:deflate, :lzma, :bzip2, :zstd])
305
+ compare_algorithms(data, [:deflate, :lzma, :bzip2, :zstandard])
306
306
  ----
307
307
 
308
308
  === Example 3: Memory Leak Detection
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnizip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.39
4
+ version: 0.3.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-08-28 00:00:00.000000000 Z
11
+ date: 2026-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -333,6 +333,7 @@ files:
333
333
  - lib/omnizip/buffer.rb
334
334
  - lib/omnizip/buffer/memory_archive.rb
335
335
  - lib/omnizip/buffer/memory_extractor.rb
336
+ - lib/omnizip/buffer/seven_zip_bridge.rb
336
337
  - lib/omnizip/checksum_registry.rb
337
338
  - lib/omnizip/checksums.rb
338
339
  - lib/omnizip/checksums/crc32.rb