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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abd5db9516cf5d26ace1790e1267038910af214b3315d157e35df851530b83cb
4
- data.tar.gz: 88541080f80f27a52c8a7eb9bd9a2baf4dc3c67af4ba152bc03150ade1c89f72
3
+ metadata.gz: df7ca54ce72c32b1a0a0b278553f35365bf283af271f98436b4d330f6fb05735
4
+ data.tar.gz: 5a225b39a85ce71779bb7e58c6f6c47eb8a884b813377783d833b27af53cbb9e
5
5
  SHA512:
6
- metadata.gz: bdba999ff6ee22d57a993e7cbff9f1f95c22540973e7af26a58ded2e49e77c9863daedd936255a86c9722598b8fcc442d746c502d9b295f2758e52774aa8fd7c
7
- data.tar.gz: 8917f5a08dbed662c890d0102c9d4be3d24a34d5537804b7ceb563819dd01e36d5b580d5e9f68a20464057620e8f2497558e0e3f1e0faf2afc044d2a4feec7e2
6
+ metadata.gz: d15ec5fee05da4104e7111e237e5bf5e80291d226c51afd90fa580ebed87571140db4b06a17e39a82892489a6a932cb02d594a9cbf047315c5094bb4f25bd99b
7
+ data.tar.gz: 444bd7e59d054395689a3f45beb3c288262e1e9e1903dc565821780ad9929de6aabbdbd9f543506b3cc662a54835892e9b34b9ece259d6f3f27d5642a8f1b75a
@@ -0,0 +1,5 @@
1
+ {
2
+ "[ruby]": {
3
+ "editor.defaultFormatter": "Shopify.ruby-lsp"
4
+ }
5
+ }
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
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.83"
16
+ version = "1.0.95"
17
17
  source = "registry+https://github.com/rust-lang/crates.io-index"
18
- checksum = "25bdb32cbbdce2b519a9cd7df3a678443100e265d5e25ca763b7572a5104f5f3"
18
+ checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04"
19
19
 
20
20
  [[package]]
21
21
  name = "autocfg"
22
- version = "1.3.0"
22
+ version = "1.4.0"
23
23
  source = "registry+https://github.com/rust-lang/crates.io-index"
24
- checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
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.4"
34
+ version = "0.69.5"
35
35
  source = "registry+https://github.com/rust-lang/crates.io-index"
36
- checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0"
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.5.0"
69
+ version = "2.6.0"
70
70
  source = "registry+https://github.com/rust-lang/crates.io-index"
71
- checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1"
71
+ checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
72
72
 
73
73
  [[package]]
74
74
  name = "bstr"
75
- version = "1.9.1"
75
+ version = "1.11.1"
76
76
  source = "registry+https://github.com/rust-lang/crates.io-index"
77
- checksum = "05efc5cfd9110c8416e471df0e96702d58690178e206e61b7173706673c93706"
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.7.0"
101
+ version = "1.8.1"
102
102
  source = "registry+https://github.com/rust-lang/crates.io-index"
103
- checksum = "67523a3b4be3ce1989d607a828d036249522dd9c1c8de7f4dd2dae43a37369d1"
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.11.0"
112
+ version = "1.13.0"
113
113
  source = "registry+https://github.com/rust-lang/crates.io-index"
114
- checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2"
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.1"
128
+ version = "0.3.2"
129
129
  source = "registry+https://github.com/rust-lang/crates.io-index"
130
- checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
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.4.0"
143
+ version = "1.5.0"
144
144
  source = "registry+https://github.com/rust-lang/crates.io-index"
145
- checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
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.154"
155
+ version = "0.2.169"
156
156
  source = "registry+https://github.com/rust-lang/crates.io-index"
157
- checksum = "ae743338b92ff9146ce83992f766a31066a91a8c84a45e0e9f21e7cf6de6d346"
157
+ checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
158
158
 
159
159
  [[package]]
160
160
  name = "libloading"
161
- version = "0.8.3"
161
+ version = "0.8.6"
162
162
  source = "registry+https://github.com/rust-lang/crates.io-index"
163
- checksum = "0c2a198fb6b0eada2a8df47933734e6d35d350665a33a3593d7164fa52c75c19"
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.2"
204
+ version = "2.7.4"
205
205
  source = "registry+https://github.com/rust-lang/crates.io-index"
206
- checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d"
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.2"
226
+ version = "0.12.3"
227
227
  source = "registry+https://github.com/rust-lang/crates.io-index"
228
- checksum = "7e4af0ca4f6caed20e900d564c242b8e5d4903fdacf31d3daf527b66fe6f42fb"
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.82"
249
+ version = "1.0.92"
250
250
  source = "registry+https://github.com/rust-lang/crates.io-index"
251
- checksum = "8ad3d49ab951a01fbaafe34f2ec74122942fe18a3f9814c3268f1bb72042131b"
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.36"
258
+ version = "1.0.38"
259
259
  source = "registry+https://github.com/rust-lang/crates.io-index"
260
- checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
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.97"
267
+ version = "0.9.105"
268
268
  source = "registry+https://github.com/rust-lang/crates.io-index"
269
- checksum = "47d30bcad206b51f2f66121190ca678dce1fdf3a2eae0ac5d838d1818b19bdf5"
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.97"
276
+ version = "0.9.105"
277
277
  source = "registry+https://github.com/rust-lang/crates.io-index"
278
- checksum = "3cbd92f281615f3c2dcb9dcb0f0576624752afbf9a7f99173b37c4b55b62dd8a"
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.1"
297
+ version = "0.5.8"
298
298
  source = "registry+https://github.com/rust-lang/crates.io-index"
299
- checksum = "469052894dcb553421e483e4209ee581a45100d31b4018de03e5a7ad86374a7e"
299
+ checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834"
300
300
  dependencies = [
301
301
  "bitflags",
302
302
  ]
303
303
 
304
304
  [[package]]
305
305
  name = "regex"
306
- version = "1.10.4"
306
+ version = "1.11.1"
307
307
  source = "registry+https://github.com/rust-lang/crates.io-index"
308
- checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c"
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.6"
318
+ version = "0.4.9"
319
319
  source = "registry+https://github.com/rust-lang/crates.io-index"
320
- checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea"
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.3"
329
+ version = "0.8.5"
330
330
  source = "registry+https://github.com/rust-lang/crates.io-index"
331
- checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56"
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.202"
353
+ version = "1.0.217"
354
354
  source = "registry+https://github.com/rust-lang/crates.io-index"
355
- checksum = "226b61a0d411b2ba5ff6d7f73a476ac4f8bb900373459cd00fab8512828ba395"
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.202"
362
+ version = "1.0.217"
363
363
  source = "registry+https://github.com/rust-lang/crates.io-index"
364
- checksum = "6048858004bcff69094cd972ed40a32500f153bd3be9f716b2eed2e8217c4838"
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.63"
391
+ version = "2.0.93"
392
392
  source = "registry+https://github.com/rust-lang/crates.io-index"
393
- checksum = "bf5be731623ca1a1fb7d8be6f261a3be6d3e2337b8a1f97be944d020c8fcb704"
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.12"
426
+ version = "1.0.14"
427
427
  source = "registry+https://github.com/rust-lang/crates.io-index"
428
- checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
428
+ checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83"
429
429
 
430
430
  [[package]]
431
431
  name = "windows-targets"
432
- version = "0.52.5"
432
+ version = "0.52.6"
433
433
  source = "registry+https://github.com/rust-lang/crates.io-index"
434
- checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb"
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.5"
448
+ version = "0.52.6"
449
449
  source = "registry+https://github.com/rust-lang/crates.io-index"
450
- checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263"
450
+ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
451
451
 
452
452
  [[package]]
453
453
  name = "windows_aarch64_msvc"
454
- version = "0.52.5"
454
+ version = "0.52.6"
455
455
  source = "registry+https://github.com/rust-lang/crates.io-index"
456
- checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6"
456
+ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
457
457
 
458
458
  [[package]]
459
459
  name = "windows_i686_gnu"
460
- version = "0.52.5"
460
+ version = "0.52.6"
461
461
  source = "registry+https://github.com/rust-lang/crates.io-index"
462
- checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670"
462
+ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
463
463
 
464
464
  [[package]]
465
465
  name = "windows_i686_gnullvm"
466
- version = "0.52.5"
466
+ version = "0.52.6"
467
467
  source = "registry+https://github.com/rust-lang/crates.io-index"
468
- checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9"
468
+ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
469
469
 
470
470
  [[package]]
471
471
  name = "windows_i686_msvc"
472
- version = "0.52.5"
472
+ version = "0.52.6"
473
473
  source = "registry+https://github.com/rust-lang/crates.io-index"
474
- checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf"
474
+ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
475
475
 
476
476
  [[package]]
477
477
  name = "windows_x86_64_gnu"
478
- version = "0.52.5"
478
+ version = "0.52.6"
479
479
  source = "registry+https://github.com/rust-lang/crates.io-index"
480
- checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9"
480
+ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
481
481
 
482
482
  [[package]]
483
483
  name = "windows_x86_64_gnullvm"
484
- version = "0.52.5"
484
+ version = "0.52.6"
485
485
  source = "registry+https://github.com/rust-lang/crates.io-index"
486
- checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596"
486
+ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
487
487
 
488
488
  [[package]]
489
489
  name = "windows_x86_64_msvc"
490
- version = "0.52.5"
490
+ version = "0.52.6"
491
491
  source = "registry+https://github.com/rust-lang/crates.io-index"
492
- checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0"
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.9)
5
- rb_sys (= 0.9.87)
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.87)
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.4.4
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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tiktoken
4
- VERSION = "0.0.9"
4
+ VERSION = "0.0.10"
5
5
  end
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.9
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-05-16 00:00:00.000000000 Z
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: 2.7.0
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.1.0
77
+ version: 3.4.0
77
78
  requirements: []
78
- rubygems_version: 3.4.6
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: []
@@ -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