ru_token 0.1.18-x86_64-darwin → 0.1.20-x86_64-darwin

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 656f78bcf0c1c152f3741dfef3aae6099b1c0a1808dbd0d4b5f8012096daafa1
4
- data.tar.gz: a55a5b87217c2a2cdc58b515b880cfba6d55a4bd80269dd24892e34995d1efaf
3
+ metadata.gz: 5aef65f29181f3ca27491a97c1e537dfde6e2ca2bc9fafc1c63ee3793ac017ba
4
+ data.tar.gz: 8aba689e05256bc7a1460638e022288679dcb3a8e2ca76b623287cfbd0b886a8
5
5
  SHA512:
6
- metadata.gz: 4ef2e83e76a86dd6caeb7062d6a3d0c698487817439deab043da1ba7699f38d19f8783d84d2dc11f30f7d4d5625f4ea8cc86032c3dc71ecb4aceb87637c8ad8c
7
- data.tar.gz: d9c08dbbce168d9f3c90e4f2c0af6a58c218c2cf2dd85b25094e8a52dd8d64f926378000a90c517584d5cce599f71cd86ecabd97d0aab73c753fdf3fc6e48848
6
+ metadata.gz: ce78b492b4f0727bbadbf7720cb2479a99eb42b0c415daa70e15f92b5583be5d4df860fe347d6b1e0a6a41c53dadd3cb16c3525eb0ee492e4aa3f5941e7877e3
7
+ data.tar.gz: 4df67d36ced56d78685c6568355fd50fe8fdae368613a8f188646706d55180d397c69500657bd3b4df7eb40326c23dab8a88f95e0415fbd78b0d3ad3a341789b
data/CHANGELOG.md CHANGED
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ---
11
+ ## [0.1.20] - 2025-07-31
12
+ ### Change
13
+ - Remove x64-mingw32 from Gemfile.lock
14
+ - Update README
15
+
16
+ ---
17
+ ## [0.1.19] - 2025-07-31
18
+ ### No Change
19
+ - Bumping to retry RubyGems deploy
20
+
10
21
  ---
11
22
  ## [0.1.18] - 2025-07-31
12
23
  ### Change
data/README.md CHANGED
@@ -1,16 +1,24 @@
1
- # RuToken 🦕
1
+ # RuToken [🦕](https://youtu.be/0MX31NTNrho?si=NgLE4-UL3zgiUVd7)
2
+
2
3
  RuToken provides a high-performance, native Ruby interface for counting tokens using the powerful [tiktoken-rs](https://github.com/zurawiki/tiktoken-rs) library. It leverages the speed of Rust to offer a fast and efficient way to calculate token counts for various OpenAI models.
3
4
 
4
5
  The gem ships with pre-compiled native extensions for Linux and macOS, so your end-users don't need a Rust toolchain installed.
5
6
 
6
7
  Supports Ruby >= 2.7.0
7
8
 
8
- Features
9
- High Performance ⚡️: Uses a native Rust implementation for blazing-fast tokenization.
9
+ Extensive Model Support: Includes tokenizers for all modern and legacy OpenAI models, recognizing dozens of model aliases automatically.
10
10
 
11
- Simple API: A clean and straightforward interface for counting tokens.
11
+ [https://rubygems.org/gems/ru_token](https://rubygems.org/gems/ru_token)
12
12
 
13
- Extensive Model Support: Includes tokenizers for all modern and legacy OpenAI models, recognizing dozens of model aliases automatically.
13
+ ## Install
14
+
15
+ #### Gemfile
16
+ `gem 'ru_token', '~> 0.1.20'`
17
+
18
+ #### Command Line
19
+ `gem install ru_token -v '~> 0.1.20'`
20
+
21
+ ## Use
14
22
 
15
23
  ### Count tokens for a specific model (the model keyword is required)
16
24
  ```Ruby
@@ -19,7 +27,7 @@ count = RuToken::Tokenizer.count("hello world!", model: "gpt-4.1")
19
27
 
20
28
  ### The gem recognizes many aliases, including older models
21
29
  ```Ruby
22
- count = RuToken::Tokenizer.count(1234, model: "text-davinci-003")
30
+ count = RuToken::Tokenizer.count("hello world!", model: "text-davinci-003")
23
31
  ```
24
32
 
25
33
  ### The count method calls .to_s on the argument if it is not a string
@@ -57,7 +65,7 @@ Specs:
57
65
  Both:
58
66
  `bundle exec rake`
59
67
 
60
- You can open an interactive console for experimentation with bin/console.
68
+ Interactive console for experimentation: `bin/console`
61
69
 
62
70
  ## Contributing
63
71
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RuToken
4
- VERSION = "0.1.18"
4
+ VERSION = "0.1.20"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ru_token
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.20
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Logan Bresnahan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-07-31 00:00:00.000000000 Z
11
+ date: 2025-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler