Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ jobs:
- run: bundle exec rake build
- run: bundle exec rake spec
lint:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/cross_compile.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/tag_and_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Tag and Release

on:
workflow_dispatch:
push:
branches:
- main
paths:
- "lib/tiktoken_ruby/version.rb"
pull_request_target:
types:
- closed

permissions:
pull-requests: write
contents: write
id-token: write
actions: write

jobs:
ruby:
uses: gjtorikian/actions/.github/workflows/ruby_gem_release.yml@main
secrets:
gh_token: ${{ secrets.GITHUB_TOKEN }}
with:
gem_name: tiktoken_ruby
version_filepath: lib/tiktoken_ruby/version.rb
oxidized: true
prepare: ${{ github.event_name == 'push' }}
release: ${{ github.event_name == 'workflow_dispatch' || ((github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'release'))) }}
oidc_role_to_assume: rg_oidc_akr_3jwh8zr6mroh6nafxc7s
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[github-actions-workflow]": {
"editor.defaultFormatter": "redhat.vscode-yaml"
}
}
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
tiktoken_ruby (0.0.13)
tiktoken_ruby (0.0.14)
rb_sys (~> 0.9)

GEM
Expand Down
2 changes: 1 addition & 1 deletion lib/tiktoken_ruby/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Tiktoken
VERSION = "0.0.13"
VERSION = "0.0.14"
end
43 changes: 0 additions & 43 deletions script/release

This file was deleted.

2 changes: 1 addition & 1 deletion tiktoken_ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
"count the number of tokens in text before sending it to OpenAI APIs."
spec.homepage = "https://github.com/IAPark/tiktoken_ruby"
spec.license = "MIT"
spec.required_ruby_version = ">= 3.1.0"
spec.required_ruby_version = ">= 3.2.0"
spec.required_rubygems_version = ">= 3.4.0"
spec.platform = Gem::Platform::RUBY

Expand Down