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 +4 -4
- data/Gemfile.lock +2 -3
- data/lib/tiktoken_ruby/version.rb +1 -1
- data/lib/tiktoken_ruby.rb +7 -1
- data/tiktoken_ruby.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 417d96c1d3bb9bac547fb3cc632e061894e13e7d7673a74e08ddc33d33bc3cbb
|
4
|
+
data.tar.gz: b27d96b688bc4fa5f31cdecfaa629306e262bd34960a25bda93e7b8364e69c57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
76
|
+
2.4.6
|
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
|
-
|
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
|
data/tiktoken_ruby.gemspec
CHANGED
@@ -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.
|
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.
|
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.
|
58
|
+
version: 3.1.0
|
59
59
|
requirements: []
|
60
60
|
rubygems_version: 3.4.6
|
61
61
|
signing_key:
|