ru_token 0.1.1 → 0.1.4

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: de568748c96f4bf2a10834fb2b0fe6fb8b61d08bf7346fc2b548f670c288073a
4
- data.tar.gz: 82faf4029e6f550dcad8770ac7b9f616c0380e813983b3e61cdb6e2b6475de0c
3
+ metadata.gz: e897566a4b98c9426b317af0be78057572d638d1c9e487e762f61d4e5d294fa3
4
+ data.tar.gz: 4817abb3728a559b74dedbfba48e10c1a809f696e28a8bdef517498ac21f70a0
5
5
  SHA512:
6
- metadata.gz: f4187bbc733caac2d5adf803be6907b864434fddc3e80ecf17db3ea202423e1ba6dd08afbaa5f752645af9e7ec5cc448fb756322664777d16d27fd2423322a83
7
- data.tar.gz: f477e3522f689998fd84c6eb48869fd1caf10d7725e3cbc36cf6c70fd62b7785b88d8332cf338198eb30001d00051262faad0a1c45a70c0b51e3e447ed3a87ee
6
+ metadata.gz: d152bcdf654b504c37538595b1f9acadade6066682a60e5763fff5fbeecdf1ee69d8dee93f954b234338ba0b1a5b9413bee1d9233587f190b0a4a151306203c0
7
+ data.tar.gz: 5677dbb0e27105dcc26e0a50b5c31c81ca6c4e171980129cc09dd309005efefc6107e6caa986be7a47c2f85f22886cae8b4669d815a47590481dc58c0cce9c43
data/CHANGELOG.md CHANGED
@@ -7,6 +7,25 @@ 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.4] - 2025-07-30
12
+ ### Changed
13
+ - Removed test runners from release process.
14
+
15
+ ---
16
+ ## [0.1.3] - 2025-07-30
17
+ ### Changed
18
+ - Update release process to properly pre-compile native gems.
19
+
20
+ ---
21
+ ## [0.1.2] - 2025-07-30
22
+
23
+ ### Changed
24
+ - Revamped the Linux publishing workflow to use the `oxidize-rb/actions/cross-gem` action. This produces highly portable "fat" gems for Linux, resulting in several key improvements:
25
+ - Pre-compiled gems are now provided for both `glibc` (standard Linux) and `musl` (Alpine Linux) systems.
26
+ - Both Intel (`x86_64`) and ARM (`aarch64`) architectures are now supported for both `glibc` and `musl`.
27
+ - Linux gems are now compatible with a much wider range of distributions, including older enterprise versions.
28
+
10
29
  ---
11
30
  ## [0.1.1] - 2025-07-30
12
31
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RuToken
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.4"
5
5
  end
data/ru_token.gemspec ADDED
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/ru_token/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "ru_token"
7
+ spec.version = RuToken::VERSION
8
+ spec.authors = ["Logan Bresnahan"]
9
+ spec.email = ["loganbbres@gmail.com"]
10
+
11
+ spec.summary = "Ruby wrapper for the tiktoken Rust library, providing fast tokenization for OpenAI models."
12
+ spec.description = "RuToken is a Ruby gem that wraps the tiktoken Rust library, enabling fast and efficient tokenization for OpenAI models. It supports multiple models including o200k_base, cl100k_base, p50k_base, and r50k_base."
13
+ spec.homepage = "https://github.com/LoganBresnahan/ru_token"
14
+ spec.license = "GPL-3.0-or-later"
15
+ spec.required_ruby_version = ">= 2.7.0"
16
+ spec.required_rubygems_version = ">= 3.0.0"
17
+
18
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = spec.homepage
21
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(__dir__) do
26
+ `git ls-files -z`.split("\x0").reject do |f|
27
+ (File.expand_path(f) == __FILE__) ||
28
+ f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor Gemfile])
29
+ end
30
+ end
31
+ spec.bindir = "exe"
32
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
33
+ spec.require_paths = ["lib"]
34
+ spec.extensions = ["ext/ru_token/Cargo.toml"]
35
+
36
+ # Development dependencies are managed here for the gem.
37
+ spec.add_development_dependency "bundler", ">= 2.0"
38
+ spec.add_development_dependency "rake", "~> 13.0"
39
+ spec.add_development_dependency "rake-compiler"
40
+
41
+ # For more information and examples about making a new gem, check out our
42
+ # guide at: https://bundler.io/guides/creating_gem.html
43
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ru_token
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logan Bresnahan
@@ -69,12 +69,12 @@ files:
69
69
  - LICENSE
70
70
  - README.md
71
71
  - Rakefile
72
- - ext/ru_token/.cargo/config.toml
73
72
  - ext/ru_token/Cargo.toml
74
73
  - ext/ru_token/extconf.rb
75
74
  - ext/ru_token/src/lib.rs
76
75
  - lib/ru_token.rb
77
76
  - lib/ru_token/version.rb
77
+ - ru_token.gemspec
78
78
  - sig/ru_token.rbs
79
79
  homepage: https://github.com/LoganBresnahan/ru_token
80
80
  licenses:
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  - !ruby/object:Gem::Version
100
100
  version: 3.0.0
101
101
  requirements: []
102
- rubygems_version: 3.3.26
102
+ rubygems_version: 3.1.6
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Ruby wrapper for the tiktoken Rust library, providing fast tokenization for
@@ -1,9 +0,0 @@
1
- # This file tells Rust's build system (Cargo) how to cross-compile.
2
-
3
- # Configuration for the aarch64-linux target
4
- [target.aarch64-unknown-linux-gnu]
5
- linker = "aarch64-linux-gnu-gcc"
6
-
7
- # Configuration for the x86_64-linux target
8
- [target.x86_64-unknown-linux-gnu]
9
- linker = "gcc"