tokenizers 0.3.0-x86_64-darwin → 0.3.1-x86_64-darwin

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: e7fa86d3c3577bafde32ef67fd5a3888c81e010b4a7ea9658b0d46176a58dad7
4
- data.tar.gz: 5b8e89123770e84310d76f3ce6fc2eb0b4ca24c676e2fd61262ba5c78d8b3fe9
3
+ metadata.gz: 7928ceff621b56260459e72c253538d3a3cb7222d93375ffeed3a1a6210fd905
4
+ data.tar.gz: 6bb2b9faad8a62f13a1f84996ef05c2bf23d42724440c6619e6a8363f5716fa5
5
5
  SHA512:
6
- metadata.gz: 97525233b05ed90f540953ad3a4dc1d74aad3263a7cf913976644c7ab803e48e44fbcb37ee3f1c6734b2530ce1a5b734dcd7eb5d95a9ae51c430729d42d755d9
7
- data.tar.gz: 171b94a79c7c76ac9c2e701c3ece322a3dfb220c653736a3e9bfa8c1302b5bdf0478a8c444bd50541baf16f8267879fbc0e284290028656a068844aae2b48336
6
+ metadata.gz: 6eb89ce91e54608e14c56818bb99809260b2dd94c67311c950907680425d6a084c9996b771f020688d217e3b35e066b29e4d0cb05e3c1560c753ff45df18b5b8
7
+ data.tar.gz: 29436c5212e959a3990c9904eabbf5825248661ae829091b24a7d1768d00f1489fdcd4179be6a6c3713c7ef829b6f3c0e278ee912d17e21f9a44fdc4d53fccf8
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-darwin
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