zstd-ruby 1.5.2.0 → 1.5.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/README.md +68 -3
  4. data/Rakefile +8 -2
  5. data/ext/zstdruby/common.h +15 -0
  6. data/ext/zstdruby/main.c +14 -0
  7. data/ext/zstdruby/streaming_compress.c +177 -0
  8. data/ext/zstdruby/streaming_compress.h +5 -0
  9. data/ext/zstdruby/streaming_decompress.c +123 -0
  10. data/ext/zstdruby/zstdruby.c +113 -31
  11. data/lib/zstd-ruby/version.rb +1 -1
  12. data/lib/zstd-ruby.rb +0 -1
  13. data/zstd-ruby.gemspec +1 -1
  14. metadata +7 -36
  15. data/.github/dependabot.yml +0 -8
  16. data/.github/workflows/ruby.yml +0 -35
  17. data/ext/zstdruby/libzstd/.gitignore +0 -3
  18. data/ext/zstdruby/libzstd/BUCK +0 -232
  19. data/ext/zstdruby/libzstd/Makefile +0 -357
  20. data/ext/zstdruby/libzstd/README.md +0 -217
  21. data/ext/zstdruby/libzstd/deprecated/zbuff.h +0 -214
  22. data/ext/zstdruby/libzstd/deprecated/zbuff_common.c +0 -26
  23. data/ext/zstdruby/libzstd/deprecated/zbuff_compress.c +0 -167
  24. data/ext/zstdruby/libzstd/deprecated/zbuff_decompress.c +0 -75
  25. data/ext/zstdruby/libzstd/dll/example/Makefile +0 -48
  26. data/ext/zstdruby/libzstd/dll/example/README.md +0 -63
  27. data/ext/zstdruby/libzstd/dll/example/build_package.bat +0 -20
  28. data/ext/zstdruby/libzstd/dll/example/fullbench-dll.sln +0 -25
  29. data/ext/zstdruby/libzstd/dll/example/fullbench-dll.vcxproj +0 -181
  30. data/ext/zstdruby/libzstd/legacy/zstd_legacy.h +0 -415
  31. data/ext/zstdruby/libzstd/legacy/zstd_v01.c +0 -2158
  32. data/ext/zstdruby/libzstd/legacy/zstd_v01.h +0 -94
  33. data/ext/zstdruby/libzstd/legacy/zstd_v02.c +0 -3518
  34. data/ext/zstdruby/libzstd/legacy/zstd_v02.h +0 -93
  35. data/ext/zstdruby/libzstd/legacy/zstd_v03.c +0 -3160
  36. data/ext/zstdruby/libzstd/legacy/zstd_v03.h +0 -93
  37. data/ext/zstdruby/libzstd/legacy/zstd_v04.c +0 -3647
  38. data/ext/zstdruby/libzstd/legacy/zstd_v04.h +0 -142
  39. data/ext/zstdruby/libzstd/legacy/zstd_v05.c +0 -4050
  40. data/ext/zstdruby/libzstd/legacy/zstd_v05.h +0 -162
  41. data/ext/zstdruby/libzstd/legacy/zstd_v06.c +0 -4154
  42. data/ext/zstdruby/libzstd/legacy/zstd_v06.h +0 -172
  43. data/ext/zstdruby/libzstd/legacy/zstd_v07.c +0 -4541
  44. data/ext/zstdruby/libzstd/legacy/zstd_v07.h +0 -187
  45. data/ext/zstdruby/libzstd/libzstd.mk +0 -203
  46. data/ext/zstdruby/libzstd/libzstd.pc.in +0 -16
  47. data/ext/zstdruby/libzstd/module.modulemap +0 -25
  48. data/ext/zstdruby/zstdruby.h +0 -6
data/zstd-ruby.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  #end
25
25
 
26
26
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
- f.match(%r{^(test|spec|features|benchmarks|zstd)/})
27
+ f.match(%r{^(test|spec|features|benchmarks|zstd|.github)/})
28
28
  end
29
29
  spec.bindir = "exe"
30
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zstd-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2.0
4
+ version: 1.5.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - SpringMT
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-13 00:00:00.000000000 Z
11
+ date: 2022-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,8 +75,6 @@ extensions:
75
75
  - ext/zstdruby/extconf.rb
76
76
  extra_rdoc_files: []
77
77
  files:
78
- - ".github/dependabot.yml"
79
- - ".github/workflows/ruby.yml"
80
78
  - ".gitignore"
81
79
  - ".gitmodules"
82
80
  - ".rspec"
@@ -87,11 +85,8 @@ files:
87
85
  - Rakefile
88
86
  - bin/console
89
87
  - bin/setup
88
+ - ext/zstdruby/common.h
90
89
  - ext/zstdruby/extconf.rb
91
- - ext/zstdruby/libzstd/.gitignore
92
- - ext/zstdruby/libzstd/BUCK
93
- - ext/zstdruby/libzstd/Makefile
94
- - ext/zstdruby/libzstd/README.md
95
90
  - ext/zstdruby/libzstd/common/bitstream.h
96
91
  - ext/zstdruby/libzstd/common/compiler.h
97
92
  - ext/zstdruby/libzstd/common/cpu.h
@@ -150,44 +145,20 @@ files:
150
145
  - ext/zstdruby/libzstd/decompress/zstd_decompress_block.c
151
146
  - ext/zstdruby/libzstd/decompress/zstd_decompress_block.h
152
147
  - ext/zstdruby/libzstd/decompress/zstd_decompress_internal.h
153
- - ext/zstdruby/libzstd/deprecated/zbuff.h
154
- - ext/zstdruby/libzstd/deprecated/zbuff_common.c
155
- - ext/zstdruby/libzstd/deprecated/zbuff_compress.c
156
- - ext/zstdruby/libzstd/deprecated/zbuff_decompress.c
157
148
  - ext/zstdruby/libzstd/dictBuilder/cover.c
158
149
  - ext/zstdruby/libzstd/dictBuilder/cover.h
159
150
  - ext/zstdruby/libzstd/dictBuilder/divsufsort.c
160
151
  - ext/zstdruby/libzstd/dictBuilder/divsufsort.h
161
152
  - ext/zstdruby/libzstd/dictBuilder/fastcover.c
162
153
  - ext/zstdruby/libzstd/dictBuilder/zdict.c
163
- - ext/zstdruby/libzstd/dll/example/Makefile
164
- - ext/zstdruby/libzstd/dll/example/README.md
165
- - ext/zstdruby/libzstd/dll/example/build_package.bat
166
- - ext/zstdruby/libzstd/dll/example/fullbench-dll.sln
167
- - ext/zstdruby/libzstd/dll/example/fullbench-dll.vcxproj
168
- - ext/zstdruby/libzstd/legacy/zstd_legacy.h
169
- - ext/zstdruby/libzstd/legacy/zstd_v01.c
170
- - ext/zstdruby/libzstd/legacy/zstd_v01.h
171
- - ext/zstdruby/libzstd/legacy/zstd_v02.c
172
- - ext/zstdruby/libzstd/legacy/zstd_v02.h
173
- - ext/zstdruby/libzstd/legacy/zstd_v03.c
174
- - ext/zstdruby/libzstd/legacy/zstd_v03.h
175
- - ext/zstdruby/libzstd/legacy/zstd_v04.c
176
- - ext/zstdruby/libzstd/legacy/zstd_v04.h
177
- - ext/zstdruby/libzstd/legacy/zstd_v05.c
178
- - ext/zstdruby/libzstd/legacy/zstd_v05.h
179
- - ext/zstdruby/libzstd/legacy/zstd_v06.c
180
- - ext/zstdruby/libzstd/legacy/zstd_v06.h
181
- - ext/zstdruby/libzstd/legacy/zstd_v07.c
182
- - ext/zstdruby/libzstd/legacy/zstd_v07.h
183
- - ext/zstdruby/libzstd/libzstd.mk
184
- - ext/zstdruby/libzstd/libzstd.pc.in
185
- - ext/zstdruby/libzstd/module.modulemap
186
154
  - ext/zstdruby/libzstd/zdict.h
187
155
  - ext/zstdruby/libzstd/zstd.h
188
156
  - ext/zstdruby/libzstd/zstd_errors.h
157
+ - ext/zstdruby/main.c
158
+ - ext/zstdruby/streaming_compress.c
159
+ - ext/zstdruby/streaming_compress.h
160
+ - ext/zstdruby/streaming_decompress.c
189
161
  - ext/zstdruby/zstdruby.c
190
- - ext/zstdruby/zstdruby.h
191
162
  - lib/zstd-ruby.rb
192
163
  - lib/zstd-ruby/version.rb
193
164
  - zstd-ruby.gemspec
@@ -1,8 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: bundler
4
- directory: "/"
5
- schedule:
6
- interval: weekly
7
- time: "20:00"
8
- open-pull-requests-limit: 10
@@ -1,35 +0,0 @@
1
- # This workflow uses actions that are not certified by GitHub.
2
- # They are provided by a third-party and are governed by
3
- # separate terms of service, privacy policy, and support
4
- # documentation.
5
- # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
- # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
-
8
- name: Ruby
9
-
10
- on: [push, pull_request]
11
-
12
- jobs:
13
- test:
14
-
15
- runs-on: ubuntu-latest
16
- strategy:
17
- matrix:
18
- ruby-version: ['2.6', '2.7', '3.0', '3.1']
19
-
20
- steps:
21
- - uses: actions/checkout@v2
22
- - name: Set up Ruby
23
- # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
24
- # change this to (see https://github.com/ruby/setup-ruby#versioning):
25
- # uses: ruby/setup-ruby@v1
26
- uses: ruby/setup-ruby@168d6a54b412713c0ed60998a78093a270ca8d84
27
- with:
28
- ruby-version: ${{ matrix.ruby-version }}
29
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
30
- - name: Install dependencies
31
- run: bundle install
32
- - name: Compile
33
- run: bundle exec rake compile
34
- - name: Run tests
35
- run: bundle exec rspec
@@ -1,3 +0,0 @@
1
- # make install artefact
2
- libzstd.pc
3
- libzstd-nomt
@@ -1,232 +0,0 @@
1
- cxx_library(
2
- name='zstd',
3
- header_namespace='',
4
- exported_headers=['zstd.h'],
5
- visibility=['PUBLIC'],
6
- deps=[
7
- ':common',
8
- ':compress',
9
- ':decompress',
10
- ':deprecated',
11
- ],
12
- )
13
-
14
- cxx_library(
15
- name='compress',
16
- header_namespace='',
17
- visibility=['PUBLIC'],
18
- exported_headers=subdir_glob([
19
- ('compress', 'zstd*.h'),
20
- ]),
21
- srcs=glob(['compress/zstd*.c', 'compress/hist.c']),
22
- deps=[':common'],
23
- )
24
-
25
- cxx_library(
26
- name='decompress',
27
- header_namespace='',
28
- visibility=['PUBLIC'],
29
- headers=subdir_glob([
30
- ('decompress', '*_impl.h'),
31
- ]),
32
- srcs=glob(['decompress/zstd*.c']),
33
- deps=[
34
- ':common',
35
- ':legacy',
36
- ],
37
- )
38
-
39
- cxx_library(
40
- name='deprecated',
41
- header_namespace='',
42
- visibility=['PUBLIC'],
43
- exported_headers=subdir_glob([
44
- ('deprecated', '*.h'),
45
- ]),
46
- srcs=glob(['deprecated/*.c']),
47
- deps=[':common'],
48
- )
49
-
50
- cxx_library(
51
- name='legacy',
52
- header_namespace='',
53
- visibility=['PUBLIC'],
54
- exported_headers=subdir_glob([
55
- ('legacy', '*.h'),
56
- ]),
57
- srcs=glob(['legacy/*.c']),
58
- deps=[':common'],
59
- exported_preprocessor_flags=[
60
- '-DZSTD_LEGACY_SUPPORT=4',
61
- ],
62
- )
63
-
64
- cxx_library(
65
- name='zdict',
66
- header_namespace='',
67
- visibility=['PUBLIC'],
68
- exported_headers=['zdict.h'],
69
- headers=subdir_glob([
70
- ('dictBuilder', 'divsufsort.h'),
71
- ('dictBuilder', 'cover.h'),
72
- ]),
73
- srcs=glob(['dictBuilder/*.c']),
74
- deps=[':common'],
75
- )
76
-
77
- cxx_library(
78
- name='compiler',
79
- header_namespace='',
80
- visibility=['PUBLIC'],
81
- exported_headers=subdir_glob([
82
- ('common', 'compiler.h'),
83
- ]),
84
- )
85
-
86
- cxx_library(
87
- name='cpu',
88
- header_namespace='',
89
- visibility=['PUBLIC'],
90
- exported_headers=subdir_glob([
91
- ('common', 'cpu.h'),
92
- ]),
93
- )
94
-
95
- cxx_library(
96
- name='bitstream',
97
- header_namespace='',
98
- visibility=['PUBLIC'],
99
- exported_headers=subdir_glob([
100
- ('common', 'bitstream.h'),
101
- ]),
102
- )
103
-
104
- cxx_library(
105
- name='entropy',
106
- header_namespace='',
107
- visibility=['PUBLIC'],
108
- exported_headers=subdir_glob([
109
- ('common', 'fse.h'),
110
- ('common', 'huf.h'),
111
- ]),
112
- srcs=[
113
- 'common/entropy_common.c',
114
- 'common/fse_decompress.c',
115
- 'compress/fse_compress.c',
116
- 'compress/huf_compress.c',
117
- 'decompress/huf_decompress.c',
118
- ],
119
- deps=[
120
- ':debug',
121
- ':bitstream',
122
- ':compiler',
123
- ':errors',
124
- ':mem',
125
- ],
126
- )
127
-
128
- cxx_library(
129
- name='errors',
130
- header_namespace='',
131
- visibility=['PUBLIC'],
132
- exported_headers=[
133
- 'zstd_errors.h',
134
- 'common/error_private.h',
135
- ]
136
- srcs=['common/error_private.c'],
137
- )
138
-
139
- cxx_library(
140
- name='mem',
141
- header_namespace='',
142
- visibility=['PUBLIC'],
143
- exported_headers=subdir_glob([
144
- ('common', 'mem.h'),
145
- ]),
146
- )
147
-
148
- cxx_library(
149
- name='pool',
150
- header_namespace='',
151
- visibility=['PUBLIC'],
152
- exported_headers=subdir_glob([
153
- ('common', 'pool.h'),
154
- ]),
155
- srcs=['common/pool.c'],
156
- deps=[
157
- ':threading',
158
- ':zstd_common',
159
- ],
160
- )
161
-
162
- cxx_library(
163
- name='threading',
164
- header_namespace='',
165
- visibility=['PUBLIC'],
166
- exported_headers=subdir_glob([
167
- ('common', 'threading.h'),
168
- ]),
169
- srcs=['common/threading.c'],
170
- exported_preprocessor_flags=[
171
- '-DZSTD_MULTITHREAD',
172
- ],
173
- exported_linker_flags=[
174
- '-pthread',
175
- ],
176
- )
177
-
178
- cxx_library(
179
- name='xxhash',
180
- header_namespace='',
181
- visibility=['PUBLIC'],
182
- exported_headers=subdir_glob([
183
- ('common', 'xxhash.h'),
184
- ]),
185
- srcs=['common/xxhash.c'],
186
- exported_preprocessor_flags=[
187
- '-DXXH_NAMESPACE=ZSTD_',
188
- ],
189
- )
190
-
191
- cxx_library(
192
- name='zstd_common',
193
- header_namespace='',
194
- visibility=['PUBLIC'],
195
- exported_headers=subdir_glob([
196
- ('', 'zstd.h'),
197
- ('common', 'zstd_internal.h'),
198
- ]),
199
- srcs=['common/zstd_common.c'],
200
- deps=[
201
- ':compiler',
202
- ':errors',
203
- ':mem',
204
- ],
205
- )
206
-
207
- cxx_library(
208
- name='debug',
209
- header_namespace='',
210
- visibility=['PUBLIC'],
211
- exported_headers=subdir_glob([
212
- ('common', 'debug.h'),
213
- ]),
214
- srcs=['common/debug.c'],
215
- )
216
-
217
- cxx_library(
218
- name='common',
219
- deps=[
220
- ':debug',
221
- ':bitstream',
222
- ':compiler',
223
- ':cpu',
224
- ':entropy',
225
- ':errors',
226
- ':mem',
227
- ':pool',
228
- ':threading',
229
- ':xxhash',
230
- ':zstd_common',
231
- ]
232
- )