tiktoken_ruby 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.vscode/settings.json +5 -0
- data/Cargo.lock +69 -69
- data/Gemfile.lock +4 -4
- data/Rakefile +6 -0
- data/lib/tiktoken_ruby/version.rb +1 -1
- data/script/release +33 -0
- metadata +12 -11
- data/tiktoken_ruby.gemspec +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df7ca54ce72c32b1a0a0b278553f35365bf283af271f98436b4d330f6fb05735
|
4
|
+
data.tar.gz: 5a225b39a85ce71779bb7e58c6f6c47eb8a884b813377783d833b27af53cbb9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d15ec5fee05da4104e7111e237e5bf5e80291d226c51afd90fa580ebed87571140db4b06a17e39a82892489a6a932cb02d594a9cbf047315c5094bb4f25bd99b
|
7
|
+
data.tar.gz: 444bd7e59d054395689a3f45beb3c288262e1e9e1903dc565821780ad9929de6aabbdbd9f543506b3cc662a54835892e9b34b9ece259d6f3f27d5642a8f1b75a
|
data/Cargo.lock
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This file is automatically @generated by Cargo.
|
2
2
|
# It is not intended for manual editing.
|
3
|
-
version =
|
3
|
+
version = 4
|
4
4
|
|
5
5
|
[[package]]
|
6
6
|
name = "aho-corasick"
|
@@ -13,15 +13,15 @@ dependencies = [
|
|
13
13
|
|
14
14
|
[[package]]
|
15
15
|
name = "anyhow"
|
16
|
-
version = "1.0.
|
16
|
+
version = "1.0.95"
|
17
17
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
18
|
-
checksum = "
|
18
|
+
checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04"
|
19
19
|
|
20
20
|
[[package]]
|
21
21
|
name = "autocfg"
|
22
|
-
version = "1.
|
22
|
+
version = "1.4.0"
|
23
23
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
24
|
-
checksum = "
|
24
|
+
checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
|
25
25
|
|
26
26
|
[[package]]
|
27
27
|
name = "base64"
|
@@ -31,9 +31,9 @@ checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
|
|
31
31
|
|
32
32
|
[[package]]
|
33
33
|
name = "bindgen"
|
34
|
-
version = "0.69.
|
34
|
+
version = "0.69.5"
|
35
35
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
36
|
-
checksum = "
|
36
|
+
checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
|
37
37
|
dependencies = [
|
38
38
|
"bitflags",
|
39
39
|
"cexpr",
|
@@ -66,15 +66,15 @@ checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb"
|
|
66
66
|
|
67
67
|
[[package]]
|
68
68
|
name = "bitflags"
|
69
|
-
version = "2.
|
69
|
+
version = "2.6.0"
|
70
70
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
71
|
-
checksum = "
|
71
|
+
checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
|
72
72
|
|
73
73
|
[[package]]
|
74
74
|
name = "bstr"
|
75
|
-
version = "1.
|
75
|
+
version = "1.11.1"
|
76
76
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
77
|
-
checksum = "
|
77
|
+
checksum = "786a307d683a5bf92e6fd5fd69a7eb613751668d1d8d67d802846dfe367c62c8"
|
78
78
|
dependencies = [
|
79
79
|
"memchr",
|
80
80
|
"regex-automata",
|
@@ -98,9 +98,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
98
98
|
|
99
99
|
[[package]]
|
100
100
|
name = "clang-sys"
|
101
|
-
version = "1.
|
101
|
+
version = "1.8.1"
|
102
102
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
103
|
-
checksum = "
|
103
|
+
checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
|
104
104
|
dependencies = [
|
105
105
|
"glob",
|
106
106
|
"libc",
|
@@ -109,9 +109,9 @@ dependencies = [
|
|
109
109
|
|
110
110
|
[[package]]
|
111
111
|
name = "either"
|
112
|
-
version = "1.
|
112
|
+
version = "1.13.0"
|
113
113
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
114
|
-
checksum = "
|
114
|
+
checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
|
115
115
|
|
116
116
|
[[package]]
|
117
117
|
name = "fancy-regex"
|
@@ -125,9 +125,9 @@ dependencies = [
|
|
125
125
|
|
126
126
|
[[package]]
|
127
127
|
name = "glob"
|
128
|
-
version = "0.3.
|
128
|
+
version = "0.3.2"
|
129
129
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
130
|
-
checksum = "
|
130
|
+
checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
|
131
131
|
|
132
132
|
[[package]]
|
133
133
|
name = "itertools"
|
@@ -140,9 +140,9 @@ dependencies = [
|
|
140
140
|
|
141
141
|
[[package]]
|
142
142
|
name = "lazy_static"
|
143
|
-
version = "1.
|
143
|
+
version = "1.5.0"
|
144
144
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
145
|
-
checksum = "
|
145
|
+
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
146
146
|
|
147
147
|
[[package]]
|
148
148
|
name = "lazycell"
|
@@ -152,15 +152,15 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
|
152
152
|
|
153
153
|
[[package]]
|
154
154
|
name = "libc"
|
155
|
-
version = "0.2.
|
155
|
+
version = "0.2.169"
|
156
156
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
157
|
-
checksum = "
|
157
|
+
checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
|
158
158
|
|
159
159
|
[[package]]
|
160
160
|
name = "libloading"
|
161
|
-
version = "0.8.
|
161
|
+
version = "0.8.6"
|
162
162
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
163
|
-
checksum = "
|
163
|
+
checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"
|
164
164
|
dependencies = [
|
165
165
|
"cfg-if",
|
166
166
|
"windows-targets",
|
@@ -201,9 +201,9 @@ dependencies = [
|
|
201
201
|
|
202
202
|
[[package]]
|
203
203
|
name = "memchr"
|
204
|
-
version = "2.7.
|
204
|
+
version = "2.7.4"
|
205
205
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
206
|
-
checksum = "
|
206
|
+
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
207
207
|
|
208
208
|
[[package]]
|
209
209
|
name = "minimal-lexical"
|
@@ -223,9 +223,9 @@ dependencies = [
|
|
223
223
|
|
224
224
|
[[package]]
|
225
225
|
name = "parking_lot"
|
226
|
-
version = "0.12.
|
226
|
+
version = "0.12.3"
|
227
227
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
228
|
-
checksum = "
|
228
|
+
checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27"
|
229
229
|
dependencies = [
|
230
230
|
"lock_api",
|
231
231
|
"parking_lot_core",
|
@@ -246,36 +246,36 @@ dependencies = [
|
|
246
246
|
|
247
247
|
[[package]]
|
248
248
|
name = "proc-macro2"
|
249
|
-
version = "1.0.
|
249
|
+
version = "1.0.92"
|
250
250
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
251
|
-
checksum = "
|
251
|
+
checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0"
|
252
252
|
dependencies = [
|
253
253
|
"unicode-ident",
|
254
254
|
]
|
255
255
|
|
256
256
|
[[package]]
|
257
257
|
name = "quote"
|
258
|
-
version = "1.0.
|
258
|
+
version = "1.0.38"
|
259
259
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
260
|
-
checksum = "
|
260
|
+
checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc"
|
261
261
|
dependencies = [
|
262
262
|
"proc-macro2",
|
263
263
|
]
|
264
264
|
|
265
265
|
[[package]]
|
266
266
|
name = "rb-sys"
|
267
|
-
version = "0.9.
|
267
|
+
version = "0.9.105"
|
268
268
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
269
|
-
checksum = "
|
269
|
+
checksum = "4b3a1f3ce8e7c36d777d52fe7a99039fe4fea7c8ec355a4c4f3a17f92a14029f"
|
270
270
|
dependencies = [
|
271
271
|
"rb-sys-build",
|
272
272
|
]
|
273
273
|
|
274
274
|
[[package]]
|
275
275
|
name = "rb-sys-build"
|
276
|
-
version = "0.9.
|
276
|
+
version = "0.9.105"
|
277
277
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
278
|
-
checksum = "
|
278
|
+
checksum = "3e6b246c29c0809e1cbe60a1ba9e093da72a4676d02adc68469297d1e589bbf0"
|
279
279
|
dependencies = [
|
280
280
|
"bindgen",
|
281
281
|
"lazy_static",
|
@@ -294,18 +294,18 @@ checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
|
|
294
294
|
|
295
295
|
[[package]]
|
296
296
|
name = "redox_syscall"
|
297
|
-
version = "0.5.
|
297
|
+
version = "0.5.8"
|
298
298
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
299
|
-
checksum = "
|
299
|
+
checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834"
|
300
300
|
dependencies = [
|
301
301
|
"bitflags",
|
302
302
|
]
|
303
303
|
|
304
304
|
[[package]]
|
305
305
|
name = "regex"
|
306
|
-
version = "1.
|
306
|
+
version = "1.11.1"
|
307
307
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
308
|
-
checksum = "
|
308
|
+
checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
|
309
309
|
dependencies = [
|
310
310
|
"aho-corasick",
|
311
311
|
"memchr",
|
@@ -315,9 +315,9 @@ dependencies = [
|
|
315
315
|
|
316
316
|
[[package]]
|
317
317
|
name = "regex-automata"
|
318
|
-
version = "0.4.
|
318
|
+
version = "0.4.9"
|
319
319
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
320
|
-
checksum = "
|
320
|
+
checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
|
321
321
|
dependencies = [
|
322
322
|
"aho-corasick",
|
323
323
|
"memchr",
|
@@ -326,9 +326,9 @@ dependencies = [
|
|
326
326
|
|
327
327
|
[[package]]
|
328
328
|
name = "regex-syntax"
|
329
|
-
version = "0.8.
|
329
|
+
version = "0.8.5"
|
330
330
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
331
|
-
checksum = "
|
331
|
+
checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
|
332
332
|
|
333
333
|
[[package]]
|
334
334
|
name = "rustc-hash"
|
@@ -350,18 +350,18 @@ checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4"
|
|
350
350
|
|
351
351
|
[[package]]
|
352
352
|
name = "serde"
|
353
|
-
version = "1.0.
|
353
|
+
version = "1.0.217"
|
354
354
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
355
|
-
checksum = "
|
355
|
+
checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70"
|
356
356
|
dependencies = [
|
357
357
|
"serde_derive",
|
358
358
|
]
|
359
359
|
|
360
360
|
[[package]]
|
361
361
|
name = "serde_derive"
|
362
|
-
version = "1.0.
|
362
|
+
version = "1.0.217"
|
363
363
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
364
|
-
checksum = "
|
364
|
+
checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0"
|
365
365
|
dependencies = [
|
366
366
|
"proc-macro2",
|
367
367
|
"quote",
|
@@ -388,9 +388,9 @@ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
|
|
388
388
|
|
389
389
|
[[package]]
|
390
390
|
name = "syn"
|
391
|
-
version = "2.0.
|
391
|
+
version = "2.0.93"
|
392
392
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
393
|
-
checksum = "
|
393
|
+
checksum = "9c786062daee0d6db1132800e623df74274a0a87322d8e183338e01b3d98d058"
|
394
394
|
dependencies = [
|
395
395
|
"proc-macro2",
|
396
396
|
"quote",
|
@@ -423,15 +423,15 @@ dependencies = [
|
|
423
423
|
|
424
424
|
[[package]]
|
425
425
|
name = "unicode-ident"
|
426
|
-
version = "1.0.
|
426
|
+
version = "1.0.14"
|
427
427
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
428
|
-
checksum = "
|
428
|
+
checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83"
|
429
429
|
|
430
430
|
[[package]]
|
431
431
|
name = "windows-targets"
|
432
|
-
version = "0.52.
|
432
|
+
version = "0.52.6"
|
433
433
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
434
|
-
checksum = "
|
434
|
+
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
435
435
|
dependencies = [
|
436
436
|
"windows_aarch64_gnullvm",
|
437
437
|
"windows_aarch64_msvc",
|
@@ -445,48 +445,48 @@ dependencies = [
|
|
445
445
|
|
446
446
|
[[package]]
|
447
447
|
name = "windows_aarch64_gnullvm"
|
448
|
-
version = "0.52.
|
448
|
+
version = "0.52.6"
|
449
449
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
450
|
-
checksum = "
|
450
|
+
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
451
451
|
|
452
452
|
[[package]]
|
453
453
|
name = "windows_aarch64_msvc"
|
454
|
-
version = "0.52.
|
454
|
+
version = "0.52.6"
|
455
455
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
456
|
-
checksum = "
|
456
|
+
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
457
457
|
|
458
458
|
[[package]]
|
459
459
|
name = "windows_i686_gnu"
|
460
|
-
version = "0.52.
|
460
|
+
version = "0.52.6"
|
461
461
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
462
|
-
checksum = "
|
462
|
+
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
463
463
|
|
464
464
|
[[package]]
|
465
465
|
name = "windows_i686_gnullvm"
|
466
|
-
version = "0.52.
|
466
|
+
version = "0.52.6"
|
467
467
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
468
|
-
checksum = "
|
468
|
+
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
469
469
|
|
470
470
|
[[package]]
|
471
471
|
name = "windows_i686_msvc"
|
472
|
-
version = "0.52.
|
472
|
+
version = "0.52.6"
|
473
473
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
474
|
-
checksum = "
|
474
|
+
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
475
475
|
|
476
476
|
[[package]]
|
477
477
|
name = "windows_x86_64_gnu"
|
478
|
-
version = "0.52.
|
478
|
+
version = "0.52.6"
|
479
479
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
480
|
-
checksum = "
|
480
|
+
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
481
481
|
|
482
482
|
[[package]]
|
483
483
|
name = "windows_x86_64_gnullvm"
|
484
|
-
version = "0.52.
|
484
|
+
version = "0.52.6"
|
485
485
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
486
|
-
checksum = "
|
486
|
+
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
487
487
|
|
488
488
|
[[package]]
|
489
489
|
name = "windows_x86_64_msvc"
|
490
|
-
version = "0.52.
|
490
|
+
version = "0.52.6"
|
491
491
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
492
|
-
checksum = "
|
492
|
+
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
tiktoken_ruby (0.0.
|
5
|
-
rb_sys (
|
4
|
+
tiktoken_ruby (0.0.10)
|
5
|
+
rb_sys (>= 0.9.87)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -22,7 +22,7 @@ GEM
|
|
22
22
|
rake (13.1.0)
|
23
23
|
rake-compiler (1.2.5)
|
24
24
|
rake
|
25
|
-
rb_sys (0.9.
|
25
|
+
rb_sys (0.9.105)
|
26
26
|
regexp_parser (2.9.0)
|
27
27
|
rexml (3.2.6)
|
28
28
|
rspec (3.12.0)
|
@@ -89,4 +89,4 @@ DEPENDENCIES
|
|
89
89
|
yard-doctest
|
90
90
|
|
91
91
|
BUNDLED WITH
|
92
|
-
2.
|
92
|
+
2.5.18
|
data/Rakefile
CHANGED
@@ -21,3 +21,9 @@ end
|
|
21
21
|
task build: :compile
|
22
22
|
|
23
23
|
task default: %i[compile spec standard]
|
24
|
+
|
25
|
+
# Packaging default (non-precompiled) gem
|
26
|
+
require "rubygems/package_task"
|
27
|
+
gem_path = Gem::PackageTask.new(GEMSPEC).define
|
28
|
+
desc "Package the Ruby gem"
|
29
|
+
task "package" => [gem_path]
|
data/script/release
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
set -e
|
4
|
+
|
5
|
+
if [ -z "${TIKTOKEN_PUBLISH_KEY}" ]; then
|
6
|
+
echo "Error: TIKTOKEN_PUBLISH_KEY is not set. This is the RubyGems API key to push the gem."
|
7
|
+
exit 1
|
8
|
+
fi
|
9
|
+
|
10
|
+
version=$(grep VERSION lib/tiktoken_ruby/version.rb | head -n 1 | cut -d'"' -f2)
|
11
|
+
echo "Building tiktoken_ruby v$version"
|
12
|
+
|
13
|
+
targets=(
|
14
|
+
"arm64-darwin"
|
15
|
+
"x86_64-darwin"
|
16
|
+
"aarch64-linux"
|
17
|
+
"x86_64-linux"
|
18
|
+
"x86_64-linux-musl"
|
19
|
+
"arm-linux"
|
20
|
+
"x64-mingw-ucrt"
|
21
|
+
)
|
22
|
+
|
23
|
+
# for target in "${targets[@]}"; do
|
24
|
+
# bundle exec rb-sys-dock -p "$target" --ruby-versions 3.2 --build
|
25
|
+
# done
|
26
|
+
|
27
|
+
for gem in pkg/tiktoken_ruby-"$version"-*.gem ; do
|
28
|
+
GEM_HOST_API_KEY="${TIKTOKEN_PUBLISH_KEY}" gem push "$gem" --host https://rubygems.org
|
29
|
+
done
|
30
|
+
|
31
|
+
# last but not least, the uncompiled gem
|
32
|
+
bundle exec rake package
|
33
|
+
GEM_HOST_API_KEY="${TIKTOKEN_PUBLISH_KEY}" gem push "pkg/tiktoken_ruby-$version.gem" --host https://rubygems.org
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiktoken_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IAPark
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rb_sys
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.9.87
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.9.87
|
27
27
|
description: An unofficial Ruby wrapper for Tiktoken, a BPE tokenizer written by and
|
@@ -36,6 +36,7 @@ extra_rdoc_files: []
|
|
36
36
|
files:
|
37
37
|
- ".rspec"
|
38
38
|
- ".standard.yml"
|
39
|
+
- ".vscode/settings.json"
|
39
40
|
- Cargo.lock
|
40
41
|
- Cargo.toml
|
41
42
|
- Gemfile
|
@@ -51,8 +52,8 @@ files:
|
|
51
52
|
- lib/tiktoken_ruby.rb
|
52
53
|
- lib/tiktoken_ruby/encoding.rb
|
53
54
|
- lib/tiktoken_ruby/version.rb
|
55
|
+
- script/release
|
54
56
|
- sig/tiktoken_ruby.rbs
|
55
|
-
- tiktoken_ruby.gemspec
|
56
57
|
homepage: https://github.com/IAPark/tiktoken_ruby
|
57
58
|
licenses:
|
58
59
|
- MIT
|
@@ -60,7 +61,7 @@ metadata:
|
|
60
61
|
homepage_uri: https://github.com/IAPark/tiktoken_ruby
|
61
62
|
source_code_uri: https://github.com/IAPark/tiktoken_ruby
|
62
63
|
documentation_uri: https://rubydoc.info/github/IAPark/tiktoken_ruby/main
|
63
|
-
post_install_message:
|
64
|
+
post_install_message:
|
64
65
|
rdoc_options: []
|
65
66
|
require_paths:
|
66
67
|
- lib
|
@@ -68,15 +69,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
69
|
requirements:
|
69
70
|
- - ">="
|
70
71
|
- !ruby/object:Gem::Version
|
71
|
-
version:
|
72
|
+
version: 3.1.0
|
72
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
74
|
requirements:
|
74
75
|
- - ">="
|
75
76
|
- !ruby/object:Gem::Version
|
76
|
-
version: 3.
|
77
|
+
version: 3.4.0
|
77
78
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
79
|
-
signing_key:
|
79
|
+
rubygems_version: 3.5.23
|
80
|
+
signing_key:
|
80
81
|
specification_version: 4
|
81
82
|
summary: Ruby wrapper for Tiktoken
|
82
83
|
test_files: []
|
data/tiktoken_ruby.gemspec
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "lib/tiktoken_ruby/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "tiktoken_ruby"
|
7
|
-
spec.version = Tiktoken::VERSION
|
8
|
-
spec.authors = ["IAPark"]
|
9
|
-
spec.email = ["isaac.a.park@gmail.com"]
|
10
|
-
spec.summary = "Ruby wrapper for Tiktoken"
|
11
|
-
spec.description = "An unofficial Ruby wrapper for Tiktoken, " \
|
12
|
-
"a BPE tokenizer written by and used by OpenAI. It can be used to " \
|
13
|
-
"count the number of tokens in text before sending it to OpenAI APIs."
|
14
|
-
spec.homepage = "https://github.com/IAPark/tiktoken_ruby"
|
15
|
-
spec.license = "MIT"
|
16
|
-
spec.required_ruby_version = ">= 2.7.0"
|
17
|
-
spec.required_rubygems_version = ">= 3.1.0"
|
18
|
-
spec.platform = Gem::Platform::RUBY
|
19
|
-
|
20
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
21
|
-
spec.metadata["source_code_uri"] = "https://github.com/IAPark/tiktoken_ruby"
|
22
|
-
spec.metadata["documentation_uri"] = "https://rubydoc.info/github/IAPark/tiktoken_ruby/main"
|
23
|
-
spec.files = Dir.chdir(__dir__) do
|
24
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
25
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
|
26
|
-
end
|
27
|
-
end
|
28
|
-
spec.bindir = "exe"
|
29
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
30
|
-
spec.require_paths = ["lib"]
|
31
|
-
spec.extensions = ["ext/tiktoken_ruby/extconf.rb"]
|
32
|
-
spec.add_dependency "rb_sys", "= 0.9.87"
|
33
|
-
end
|