ru_token 0.1.17-aarch64-linux-musl → 0.1.20-aarch64-linux-musl

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: 848f1769c7306d345e50baac96c091906933c1c89ca722f76f64cae4bd96e9b3
4
- data.tar.gz: e1ff929ed48572e6f8082fb76beae4420129d2375a645f462132d680704251c3
3
+ metadata.gz: 0eccfc0ee3a4acc809226e09d30f3644362309c597c728d1638775f33153f7a4
4
+ data.tar.gz: d68128ac79dd1799e99841f07d207152d5629cc0cc379cd3e0aca6c4115a3e07
5
5
  SHA512:
6
- metadata.gz: 6c7bf253f4c3e7ae1db523563bfc60c94706dca9b39b88f10d7009c204621876d2e61597bc8f71ba1edb1bd2591f8a3b5ebe0b71f4a6abb3f9bb8edd6816c0c7
7
- data.tar.gz: 5d18b618635f156e4a193e8417aeccbfc4d650069b381045fa5a02a2d52600437d130da08a690259a7e5b8b4e926bbd35e5c66684e5cffa2b29bb16576cfacd5
6
+ metadata.gz: '085dfee3cdfba2c759b3ff213b2b21c257d95a15d87928515531c5fcd4594c89c28766fe0b523675efdf5fcece462018e0fd837505008e0cf793dd104138f1b5'
7
+ data.tar.gz: fcdc7543bc324027807dda8cf69620294de29794db689d89daf19b1c007c26a239493383227fb60c1bf75846fc321632601c0d926ddf8e9293f1d3dcef98be0f
data/CHANGELOG.md CHANGED
@@ -7,6 +7,22 @@ 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
+
21
+ ---
22
+ ## [0.1.18] - 2025-07-31
23
+ ### Change
24
+ - Update README
25
+
10
26
  ---
11
27
  ## [0.1.17] - 2025-07-31
12
28
  ### 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
+
11
+ [https://rubygems.org/gems/ru_token](https://rubygems.org/gems/ru_token)
10
12
 
11
- Simple API: A clean and straightforward interface for counting tokens.
13
+ ## Install
12
14
 
13
- Extensive Model Support: Includes tokenizers for all modern and legacy OpenAI models, recognizing dozens of model aliases automatically.
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,10 +65,12 @@ 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`
69
+
70
+ ## Contributing
61
71
 
62
- Contributing
63
72
  Bug reports and pull requests are welcome on GitHub at https://github.com/LoganBresnahan/ru_token.
64
73
 
65
- License
74
+ ## License
75
+
66
76
  The gem is available as open source under the terms of the MIT License.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RuToken
4
- VERSION = "0.1.17"
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.17
4
+ version: 0.1.20
5
5
  platform: aarch64-linux-musl
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