tokenizers 0.1.0 → 0.1.1

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: 0ebf55c36c1e0f55d94f5ee321a3c9f00122126912b3dfa0b52f947f172344f5
4
- data.tar.gz: 47288dd344a36f5f3a27e206300ae11c0ec5cc1f4fbf1945a3cb3718f3e13128
3
+ metadata.gz: 6aeb772fccbd1a8ae0991f31b47bbb51fc74b97c51ea085bafa4951797f3e994
4
+ data.tar.gz: 342e05d37471d31f6738fef1a50e5f50d521fc10173723d79156bb689cbfdbe9
5
5
  SHA512:
6
- metadata.gz: 5ab6931f3a1eef124c5f071604f860ee86341ba8a50fdb1e79d13f751a8fae9c435baae3b5ea7fd34bceba2b960d368d04740922c8515ae8d3e33b5c6bdf1c22
7
- data.tar.gz: c39ad4aef20f1ec8890bc0a0138a80b82724f49a689224cb6e02658120b84a38aa33f771c757fe3259a2ff70d9d6a1183afcbd76f9ba5335e46ccbd455eea84f
6
+ metadata.gz: 38ac5e532c3b17130c30dd010bc109689036f8a363790bfb39a858f126154c04c81325732bbd0c4ad4aca808c8e48b6c0c1b5f2ce5b043f42c92c5409b7b0c6e
7
+ data.tar.gz: 8164092df944f67ddfb1c85c61dadd62a0bf731332f9c1fa64d8ee7daf58710688116dddf3caf2fedd60fedd1b5b76cfd632c83a880e4e19b1e2061174baea3f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.1 (2022-06-29)
2
+
3
+ - Fixed error with installation
4
+
1
5
  ## 0.1.0 (2022-03-19)
2
6
 
3
7
  - First release
data/Cargo.lock CHANGED
@@ -1254,9 +1254,9 @@ dependencies = [
1254
1254
 
1255
1255
  [[package]]
1256
1256
  name = "rutie"
1257
- version = "0.8.3"
1257
+ version = "0.8.4"
1258
1258
  source = "registry+https://github.com/rust-lang/crates.io-index"
1259
- checksum = "0d81d2a2dec78b6202e8058dea842a39a65135ce8915e66e40d3935f12e52346"
1259
+ checksum = "5d97db4cbb9739b48364c38cc9a6ebabdc07b42bd87b60ab448e1f29eaebb2ac"
1260
1260
  dependencies = [
1261
1261
  "lazy_static",
1262
1262
  "libc",
data/Cargo.toml CHANGED
@@ -10,5 +10,5 @@ crate-type = ["cdylib"]
10
10
 
11
11
  [dependencies]
12
12
  lazy_static = "1"
13
- rutie = "0.8.3"
13
+ rutie = "0.8.4"
14
14
  tokenizers = "0.11"
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Tokenizers
1
+ # Tokenizers Ruby
2
2
 
3
3
  :slightly_smiling_face: Fast state-of-the-art [tokenizers](https://github.com/huggingface/tokenizers) for Ruby
4
4
 
@@ -12,7 +12,7 @@ Add this line to your application’s Gemfile:
12
12
  gem "tokenizers"
13
13
  ```
14
14
 
15
- Note: Rust is currently required for installation.
15
+ Note: Rust and pkg-config are currently required for installation, and it can take 5-10 minutes to compile the extension.
16
16
 
17
17
  ## Getting Started
18
18
 
@@ -1,7 +1,10 @@
1
+ require "pathname"
2
+
3
+ dest = Pathname.new(__dir__).relative_path_from(Pathname.pwd).join("../../lib/tokenizers/ext.#{RbConfig::CONFIG["DLEXT"]}")
4
+
1
5
  File.write "Makefile", <<~EOS
2
6
  install:
3
- \tcargo build --release
4
- \tmv target/release/libtokenizers.#{RbConfig::CONFIG["SOEXT"]} lib/tokenizers/ext.#{RbConfig::CONFIG["DLEXT"]}
7
+ \tcargo build --release --target-dir target
8
+ \tmv target/release/libtokenizers.#{RbConfig::CONFIG["SOEXT"]} #{dest}
5
9
  clean:
6
- \tcargo clean
7
10
  EOS
@@ -1,3 +1,3 @@
1
1
  module Tokenizers
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-19 00:00:00.000000000 Z
11
+ date: 2022-06-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org