tokenizers 0.3.0-x86_64-linux → 0.3.1-x86_64-linux

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: 1dd7a6e80756ca265d9152f6fa371e3debcc65ad511a9049d496bfe9265dd2f7
4
- data.tar.gz: 36bcd374aa6d797fdb44014cc6c6c080042dff9a90c1b28ccebed0fb8d2d68d1
3
+ metadata.gz: 847cd5e1d00044a05114a2425a7cc9071e73df01b4d146045dae2134f0a08185
4
+ data.tar.gz: 90f8b4eb08b6757e6df801d9ccdc85ad34dc67f0904e2ecb33f80882e16fc527
5
5
  SHA512:
6
- metadata.gz: 54b887046decc5dbd22549309b9087f1c79751269202ac1aa6ea04616388dcbbada02b2b926aa3649b9208747811250aad0f56d5cbd751966697b3e4f9c7447c
7
- data.tar.gz: 8d7259138060315e6dd159a8b9b5622e20a366d72e9728e5f0c8a3a986a39b98f388dc779075ef873b18e5648139a1cbbb17e105172fc760967dbe62442ebc10
6
+ metadata.gz: ba707ee494dab6a4c9032b2fde377291a3ca9ecd253dd202bb3b3f7b65ce9b6a2287988810021f8a832ceddc172d134b63c1ea51777ebaecb059864e7ce90ac2
7
+ data.tar.gz: 9a6f3728f80fbc3735ef845e7c938c6e8c43b425cb75941396497cb407070fd5db605b22dc0f09731db39a3d12630a655e617de81e257745528f4b26f3bbd082
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.1 (2022-02-08)
2
+
3
+ - Fixed error with Ruby 2.7
4
+
1
5
  ## 0.3.0 (2022-02-07)
2
6
 
3
7
  - Added support for training tokenizers
data/Cargo.lock CHANGED
@@ -711,7 +711,7 @@ dependencies = [
711
711
 
712
712
  [[package]]
713
713
  name = "tokenizers"
714
- version = "0.2.3"
714
+ version = "0.3.1"
715
715
  dependencies = [
716
716
  "magnus",
717
717
  "onig",
Binary file
Binary file
Binary file
Binary file
@@ -44,7 +44,7 @@ module Tokenizers
44
44
  def cached_path(cache_dir, url, options)
45
45
  fsum = Digest::SHA256.hexdigest(url)
46
46
  meta_paths = Dir[File.join(cache_dir, "#{fsum}.*.meta")]
47
- meta = meta_paths.map { |f| JSON.load_file(f) }.max_by { |m| m["creation_time"] }
47
+ meta = meta_paths.map { |f| JSON.parse(File.read(f)) }.max_by { |m| m["creation_time"] }
48
48
  etag = meta["etag"] if meta
49
49
 
50
50
  if etag
@@ -1,3 +1,3 @@
1
1
  module Tokenizers
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tokenizers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-08 00:00:00.000000000 Z
11
+ date: 2023-02-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org