osv 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1671e82e2f6ef7e401e69fd4c30ae527a1606b6dd495bf631a3c44b336f4ef2e
4
+ data.tar.gz: 9d790124a6ba8fd9414525f1691880f96e0d3e2f6a4fc5ccb85cebcedb333d8c
5
+ SHA512:
6
+ metadata.gz: 92b99239fb1ee85f1c99b7573c52d3f334a0d92b337245440246427d44854aa43162e52d5b6f15998ddeb7a15985d0c4a48230149babafbcb4715d71dac6c2e6
7
+ data.tar.gz: 51e048de674bb2718a9bfee89966191ad2942640d3f15113b57272e026fd8e7966e00c5185d569a0b6b161717ef0b2c66a5e9d0e0cb9a48684e1bb7ddc9b3423
data/Cargo.lock ADDED
@@ -0,0 +1,433 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 3
4
+
5
+ [[package]]
6
+ name = "aho-corasick"
7
+ version = "1.1.3"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
10
+ dependencies = [
11
+ "memchr",
12
+ ]
13
+
14
+ [[package]]
15
+ name = "bindgen"
16
+ version = "0.69.5"
17
+ source = "registry+https://github.com/rust-lang/crates.io-index"
18
+ checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
19
+ dependencies = [
20
+ "bitflags",
21
+ "cexpr",
22
+ "clang-sys",
23
+ "itertools",
24
+ "lazy_static",
25
+ "lazycell",
26
+ "proc-macro2",
27
+ "quote",
28
+ "regex",
29
+ "rustc-hash",
30
+ "shlex",
31
+ "syn",
32
+ ]
33
+
34
+ [[package]]
35
+ name = "bitflags"
36
+ version = "2.6.0"
37
+ source = "registry+https://github.com/rust-lang/crates.io-index"
38
+ checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
39
+
40
+ [[package]]
41
+ name = "cexpr"
42
+ version = "0.6.0"
43
+ source = "registry+https://github.com/rust-lang/crates.io-index"
44
+ checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
45
+ dependencies = [
46
+ "nom",
47
+ ]
48
+
49
+ [[package]]
50
+ name = "cfg-if"
51
+ version = "1.0.0"
52
+ source = "registry+https://github.com/rust-lang/crates.io-index"
53
+ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
54
+
55
+ [[package]]
56
+ name = "clang-sys"
57
+ version = "1.8.1"
58
+ source = "registry+https://github.com/rust-lang/crates.io-index"
59
+ checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
60
+ dependencies = [
61
+ "glob",
62
+ "libc",
63
+ "libloading",
64
+ ]
65
+
66
+ [[package]]
67
+ name = "csv"
68
+ version = "1.3.1"
69
+ source = "registry+https://github.com/rust-lang/crates.io-index"
70
+ checksum = "acdc4883a9c96732e4733212c01447ebd805833b7275a73ca3ee080fd77afdaf"
71
+ dependencies = [
72
+ "csv-core",
73
+ "itoa",
74
+ "ryu",
75
+ "serde",
76
+ ]
77
+
78
+ [[package]]
79
+ name = "csv-core"
80
+ version = "0.1.11"
81
+ source = "registry+https://github.com/rust-lang/crates.io-index"
82
+ checksum = "5efa2b3d7902f4b634a20cae3c9c4e6209dc4779feb6863329607560143efa70"
83
+ dependencies = [
84
+ "memchr",
85
+ ]
86
+
87
+ [[package]]
88
+ name = "either"
89
+ version = "1.13.0"
90
+ source = "registry+https://github.com/rust-lang/crates.io-index"
91
+ checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
92
+
93
+ [[package]]
94
+ name = "glob"
95
+ version = "0.3.1"
96
+ source = "registry+https://github.com/rust-lang/crates.io-index"
97
+ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
98
+
99
+ [[package]]
100
+ name = "itertools"
101
+ version = "0.12.1"
102
+ source = "registry+https://github.com/rust-lang/crates.io-index"
103
+ checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
104
+ dependencies = [
105
+ "either",
106
+ ]
107
+
108
+ [[package]]
109
+ name = "itoa"
110
+ version = "1.0.14"
111
+ source = "registry+https://github.com/rust-lang/crates.io-index"
112
+ checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674"
113
+
114
+ [[package]]
115
+ name = "lazy_static"
116
+ version = "1.5.0"
117
+ source = "registry+https://github.com/rust-lang/crates.io-index"
118
+ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
119
+
120
+ [[package]]
121
+ name = "lazycell"
122
+ version = "1.3.0"
123
+ source = "registry+https://github.com/rust-lang/crates.io-index"
124
+ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
125
+
126
+ [[package]]
127
+ name = "libc"
128
+ version = "0.2.169"
129
+ source = "registry+https://github.com/rust-lang/crates.io-index"
130
+ checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
131
+
132
+ [[package]]
133
+ name = "libloading"
134
+ version = "0.8.6"
135
+ source = "registry+https://github.com/rust-lang/crates.io-index"
136
+ checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"
137
+ dependencies = [
138
+ "cfg-if",
139
+ "windows-targets",
140
+ ]
141
+
142
+ [[package]]
143
+ name = "magnus"
144
+ version = "0.6.4"
145
+ source = "registry+https://github.com/rust-lang/crates.io-index"
146
+ checksum = "b1597ef40aa8c36be098249e82c9a20cf7199278ac1c1a1a995eeead6a184479"
147
+ dependencies = [
148
+ "magnus-macros",
149
+ "rb-sys",
150
+ "rb-sys-env",
151
+ "seq-macro",
152
+ ]
153
+
154
+ [[package]]
155
+ name = "magnus"
156
+ version = "0.7.1"
157
+ source = "registry+https://github.com/rust-lang/crates.io-index"
158
+ checksum = "3d87ae53030f3a22e83879e666cb94e58a7bdf31706878a0ba48752994146dab"
159
+ dependencies = [
160
+ "magnus-macros",
161
+ "rb-sys",
162
+ "rb-sys-env",
163
+ "seq-macro",
164
+ ]
165
+
166
+ [[package]]
167
+ name = "magnus-macros"
168
+ version = "0.6.0"
169
+ source = "registry+https://github.com/rust-lang/crates.io-index"
170
+ checksum = "5968c820e2960565f647819f5928a42d6e874551cab9d88d75e3e0660d7f71e3"
171
+ dependencies = [
172
+ "proc-macro2",
173
+ "quote",
174
+ "syn",
175
+ ]
176
+
177
+ [[package]]
178
+ name = "memchr"
179
+ version = "2.7.4"
180
+ source = "registry+https://github.com/rust-lang/crates.io-index"
181
+ checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
182
+
183
+ [[package]]
184
+ name = "minimal-lexical"
185
+ version = "0.2.1"
186
+ source = "registry+https://github.com/rust-lang/crates.io-index"
187
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
188
+
189
+ [[package]]
190
+ name = "nom"
191
+ version = "7.1.3"
192
+ source = "registry+https://github.com/rust-lang/crates.io-index"
193
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
194
+ dependencies = [
195
+ "memchr",
196
+ "minimal-lexical",
197
+ ]
198
+
199
+ [[package]]
200
+ name = "osv"
201
+ version = "0.1.0"
202
+ dependencies = [
203
+ "csv",
204
+ "magnus 0.7.1",
205
+ "rb-sys",
206
+ "serde",
207
+ "serde_magnus",
208
+ ]
209
+
210
+ [[package]]
211
+ name = "proc-macro2"
212
+ version = "1.0.92"
213
+ source = "registry+https://github.com/rust-lang/crates.io-index"
214
+ checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0"
215
+ dependencies = [
216
+ "unicode-ident",
217
+ ]
218
+
219
+ [[package]]
220
+ name = "quote"
221
+ version = "1.0.37"
222
+ source = "registry+https://github.com/rust-lang/crates.io-index"
223
+ checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
224
+ dependencies = [
225
+ "proc-macro2",
226
+ ]
227
+
228
+ [[package]]
229
+ name = "rb-sys"
230
+ version = "0.9.103"
231
+ source = "registry+https://github.com/rust-lang/crates.io-index"
232
+ checksum = "91dbe37ab6ac2fba187480fb6544b92445e41e5c6f553bf0c33743f3c450a1df"
233
+ dependencies = [
234
+ "rb-sys-build",
235
+ ]
236
+
237
+ [[package]]
238
+ name = "rb-sys-build"
239
+ version = "0.9.103"
240
+ source = "registry+https://github.com/rust-lang/crates.io-index"
241
+ checksum = "c4d56a49dcb646b70b758789c0d16c055a386a4f2a3346333abb69850fa860ce"
242
+ dependencies = [
243
+ "bindgen",
244
+ "lazy_static",
245
+ "proc-macro2",
246
+ "quote",
247
+ "regex",
248
+ "shell-words",
249
+ "syn",
250
+ ]
251
+
252
+ [[package]]
253
+ name = "rb-sys-env"
254
+ version = "0.1.2"
255
+ source = "registry+https://github.com/rust-lang/crates.io-index"
256
+ checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
257
+
258
+ [[package]]
259
+ name = "regex"
260
+ version = "1.11.1"
261
+ source = "registry+https://github.com/rust-lang/crates.io-index"
262
+ checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
263
+ dependencies = [
264
+ "aho-corasick",
265
+ "memchr",
266
+ "regex-automata",
267
+ "regex-syntax",
268
+ ]
269
+
270
+ [[package]]
271
+ name = "regex-automata"
272
+ version = "0.4.9"
273
+ source = "registry+https://github.com/rust-lang/crates.io-index"
274
+ checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
275
+ dependencies = [
276
+ "aho-corasick",
277
+ "memchr",
278
+ "regex-syntax",
279
+ ]
280
+
281
+ [[package]]
282
+ name = "regex-syntax"
283
+ version = "0.8.5"
284
+ source = "registry+https://github.com/rust-lang/crates.io-index"
285
+ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
286
+
287
+ [[package]]
288
+ name = "rustc-hash"
289
+ version = "1.1.0"
290
+ source = "registry+https://github.com/rust-lang/crates.io-index"
291
+ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
292
+
293
+ [[package]]
294
+ name = "ryu"
295
+ version = "1.0.18"
296
+ source = "registry+https://github.com/rust-lang/crates.io-index"
297
+ checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
298
+
299
+ [[package]]
300
+ name = "seq-macro"
301
+ version = "0.3.5"
302
+ source = "registry+https://github.com/rust-lang/crates.io-index"
303
+ checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4"
304
+
305
+ [[package]]
306
+ name = "serde"
307
+ version = "1.0.216"
308
+ source = "registry+https://github.com/rust-lang/crates.io-index"
309
+ checksum = "0b9781016e935a97e8beecf0c933758c97a5520d32930e460142b4cd80c6338e"
310
+ dependencies = [
311
+ "serde_derive",
312
+ ]
313
+
314
+ [[package]]
315
+ name = "serde_derive"
316
+ version = "1.0.216"
317
+ source = "registry+https://github.com/rust-lang/crates.io-index"
318
+ checksum = "46f859dbbf73865c6627ed570e78961cd3ac92407a2d117204c49232485da55e"
319
+ dependencies = [
320
+ "proc-macro2",
321
+ "quote",
322
+ "syn",
323
+ ]
324
+
325
+ [[package]]
326
+ name = "serde_magnus"
327
+ version = "0.8.1"
328
+ source = "registry+https://github.com/rust-lang/crates.io-index"
329
+ checksum = "76c20da583b5e1016e9199ef5f3260f7a8d1b253307d232600f6b12737262dbd"
330
+ dependencies = [
331
+ "magnus 0.6.4",
332
+ "serde",
333
+ "tap",
334
+ ]
335
+
336
+ [[package]]
337
+ name = "shell-words"
338
+ version = "1.1.0"
339
+ source = "registry+https://github.com/rust-lang/crates.io-index"
340
+ checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
341
+
342
+ [[package]]
343
+ name = "shlex"
344
+ version = "1.3.0"
345
+ source = "registry+https://github.com/rust-lang/crates.io-index"
346
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
347
+
348
+ [[package]]
349
+ name = "syn"
350
+ version = "2.0.90"
351
+ source = "registry+https://github.com/rust-lang/crates.io-index"
352
+ checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31"
353
+ dependencies = [
354
+ "proc-macro2",
355
+ "quote",
356
+ "unicode-ident",
357
+ ]
358
+
359
+ [[package]]
360
+ name = "tap"
361
+ version = "1.0.1"
362
+ source = "registry+https://github.com/rust-lang/crates.io-index"
363
+ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369"
364
+
365
+ [[package]]
366
+ name = "unicode-ident"
367
+ version = "1.0.14"
368
+ source = "registry+https://github.com/rust-lang/crates.io-index"
369
+ checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83"
370
+
371
+ [[package]]
372
+ name = "windows-targets"
373
+ version = "0.52.6"
374
+ source = "registry+https://github.com/rust-lang/crates.io-index"
375
+ checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
376
+ dependencies = [
377
+ "windows_aarch64_gnullvm",
378
+ "windows_aarch64_msvc",
379
+ "windows_i686_gnu",
380
+ "windows_i686_gnullvm",
381
+ "windows_i686_msvc",
382
+ "windows_x86_64_gnu",
383
+ "windows_x86_64_gnullvm",
384
+ "windows_x86_64_msvc",
385
+ ]
386
+
387
+ [[package]]
388
+ name = "windows_aarch64_gnullvm"
389
+ version = "0.52.6"
390
+ source = "registry+https://github.com/rust-lang/crates.io-index"
391
+ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
392
+
393
+ [[package]]
394
+ name = "windows_aarch64_msvc"
395
+ version = "0.52.6"
396
+ source = "registry+https://github.com/rust-lang/crates.io-index"
397
+ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
398
+
399
+ [[package]]
400
+ name = "windows_i686_gnu"
401
+ version = "0.52.6"
402
+ source = "registry+https://github.com/rust-lang/crates.io-index"
403
+ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
404
+
405
+ [[package]]
406
+ name = "windows_i686_gnullvm"
407
+ version = "0.52.6"
408
+ source = "registry+https://github.com/rust-lang/crates.io-index"
409
+ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
410
+
411
+ [[package]]
412
+ name = "windows_i686_msvc"
413
+ version = "0.52.6"
414
+ source = "registry+https://github.com/rust-lang/crates.io-index"
415
+ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
416
+
417
+ [[package]]
418
+ name = "windows_x86_64_gnu"
419
+ version = "0.52.6"
420
+ source = "registry+https://github.com/rust-lang/crates.io-index"
421
+ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
422
+
423
+ [[package]]
424
+ name = "windows_x86_64_gnullvm"
425
+ version = "0.52.6"
426
+ source = "registry+https://github.com/rust-lang/crates.io-index"
427
+ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
428
+
429
+ [[package]]
430
+ name = "windows_x86_64_msvc"
431
+ version = "0.52.6"
432
+ source = "registry+https://github.com/rust-lang/crates.io-index"
433
+ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
data/Cargo.toml ADDED
@@ -0,0 +1,3 @@
1
+ [workspace]
2
+ members = ["./ext/osv"]
3
+ resolver = "2"
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rb_sys", "~> 0.9.56"
4
+ gem "rake"
5
+ gem "rake-compiler", "1.2.0"
6
+
7
+ gem "minitest", "~> 5.0", group: :test
data/Rakefile ADDED
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rake/testtask"
4
+ require "rake/extensiontask"
5
+
6
+ task default: :test
7
+
8
+ Rake::ExtensionTask.new("osv") do |c|
9
+ c.lib_dir = "lib/osv"
10
+ c.ext_dir = "ext/osv"
11
+ end
12
+
13
+ task :dev do
14
+ ENV["RB_SYS_CARGO_PROFILE"] = "dev"
15
+ end
16
+
17
+ Rake::TestTask.new do |t|
18
+ t.deps << :dev << :compile
19
+ t.test_files = FileList[File.expand_path("test/*_test.rb", __dir__)]
20
+ t.libs << "lib"
21
+ t.libs << "test"
22
+ end
@@ -0,0 +1,4 @@
1
+ require "mkmf"
2
+ require "rb_sys/mkmf"
3
+
4
+ create_rust_makefile("osv/osv")
@@ -0,0 +1,3 @@
1
+ module OSV
2
+ VERSION = "0.1.0"
3
+ end
data/lib/osv.rb ADDED
@@ -0,0 +1,5 @@
1
+ require_relative "osv/version"
2
+ require_relative "osv/osv"
3
+
4
+ module OSV
5
+ end
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: osv
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Nathan Jaremko
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-12-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rb_sys
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.9.39
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.9.39
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake-compiler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.2.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.2.0
41
+ description:
42
+ email:
43
+ - nathan@jaremko.ca
44
+ executables: []
45
+ extensions:
46
+ - ext/osv/extconf.rb
47
+ extra_rdoc_files: []
48
+ files:
49
+ - Cargo.lock
50
+ - Cargo.toml
51
+ - Gemfile
52
+ - Rakefile
53
+ - ext/osv/extconf.rb
54
+ - lib/osv.rb
55
+ - lib/osv/version.rb
56
+ homepage: https://github.com/njaremko/osv
57
+ licenses:
58
+ - NONE
59
+ metadata:
60
+ homepage_uri: https://github.com/njaremko/osv
61
+ source_code_uri: https://github.com/njaremko/osv
62
+ post_install_message:
63
+ rdoc_options: []
64
+ require_paths:
65
+ - lib
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 3.1.0
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ requirements: []
77
+ rubygems_version: 3.4.10
78
+ signing_key:
79
+ specification_version: 4
80
+ summary: CSV parser for Ruby
81
+ test_files: []