tiktoken_ruby 0.0.1 → 0.0.2

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: 81166d50bf3f152dd63a68d0d40f364b8232c906d8e4534f6c47360ea72f99a7
4
- data.tar.gz: 93b7db86bfd25bc04dffd1c7568b95ac7421c0445865c86776a4a6b58248fbd5
3
+ metadata.gz: 417d96c1d3bb9bac547fb3cc632e061894e13e7d7673a74e08ddc33d33bc3cbb
4
+ data.tar.gz: b27d96b688bc4fa5f31cdecfaa629306e262bd34960a25bda93e7b8364e69c57
5
5
  SHA512:
6
- metadata.gz: '03950362233a94958d1811f183e5151d4f52d38b11c913810e819bba78728d9c89b0cf49489346b19a3d735cf67efa2e4718a34cea9d3e65166e333d115c2536'
7
- data.tar.gz: 9ee22a55ee71ec3e75fa6090984faa1f9b565532331fa91e6295ab0760264f75d94aee1688e59bc2191aeac8e90423a2ac48d73dfa3e7c833966532adae67788
6
+ metadata.gz: 03cdce8758407d412fe29e580ed5caed455d8153923c982b60ed0440f3537f73034c121fa758e01b86354368443ff2e1f2ed4b255833ccf385d99ff79f337058
7
+ data.tar.gz: 55b2e0db635609d0f756abef80e761b828eedc345b442b620c086f3e07072895b094a115993d4083633f34511e5a74ff38a2f0187a6308b28abd6f9d5483c016
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tiktoken_ruby (0.0.1)
4
+ tiktoken_ruby (0.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -62,7 +62,6 @@ GEM
62
62
 
63
63
  PLATFORMS
64
64
  arm64-darwin-22
65
- x86_64-linux
66
65
 
67
66
  DEPENDENCIES
68
67
  pry (~> 0.14.2)
@@ -74,4 +73,4 @@ DEPENDENCIES
74
73
  tiktoken_ruby!
75
74
 
76
75
  BUNDLED WITH
77
- 2.4.4
76
+ 2.4.6
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tiktoken
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
data/lib/tiktoken_ruby.rb CHANGED
@@ -2,7 +2,13 @@
2
2
 
3
3
  require_relative "tiktoken_ruby/version"
4
4
  require_relative "tiktoken_ruby/encoding.rb"
5
- require_relative "tiktoken_ruby/tiktoken_ruby"
5
+
6
+ begin
7
+ RUBY_VERSION =~ /(\d+\.\d+)/
8
+ require_relative "tiktoken_ruby/#{$1}/tiktoken_ruby"
9
+ rescue LoadError
10
+ require_relative "tiktoken_ruby/tiktoken_ruby"
11
+ end
6
12
 
7
13
  module Tiktoken
8
14
  class Error < StandardError; end
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/IAPark/tiktoken_ruby"
14
14
  spec.license = "MIT"
15
15
  spec.required_ruby_version = ">= 2.6.0"
16
- spec.required_rubygems_version = ">= 3.3.11"
16
+ spec.required_rubygems_version = ">= 3.1.0"
17
17
  spec.platform = Gem::Platform::RUBY
18
18
 
19
19
  #spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiktoken_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - IAPark
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  requirements:
56
56
  - - ">="
57
57
  - !ruby/object:Gem::Version
58
- version: 3.3.11
58
+ version: 3.1.0
59
59
  requirements: []
60
60
  rubygems_version: 3.4.6
61
61
  signing_key: