autocorrect-rb 2.13.0-x86_64-linux → 2.16.3-x86_64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16895f628e8d443bf3ceafc0ba4610cdd01fdab1102788622efee713d14e2d67
4
- data.tar.gz: eb1b436a743e3901161929062bc724cf239519c6b2b760951bb4eb43120101fd
3
+ metadata.gz: d7799fb915af49c4b995deff1064be16f86d58fbf4e04c69a528fcafde4c3e8a
4
+ data.tar.gz: 7b92dafc85592a3e593f122638f6fe623f25734200f1ca34ad37d10d28a3b146
5
5
  SHA512:
6
- metadata.gz: d26846e68ef59ebc415d2a1cc6940699ab5e4f16cf6a8b90b551302b44de82889c08ddfebd9a3459d410773783c90a21412dbae17d8ccad71076007660f04099
7
- data.tar.gz: 47daff7c1c1b37456730dc16eebfed37deae6004a6ef7b8a3123533f83d7f4a4e6b0b41b3f4a813e7137cb4d32fdc836d82dd625093b145a8f11932f45a2b7d8
6
+ metadata.gz: 7b46fde9335b3bdfd381fb8754c21acfe8e0ea8edb16179199706ad27984e99bf51f0e43313d02037fb3f0bdb7804656ef72c99d0d04a0af1586fe50a72a6049
7
+ data.tar.gz: c43cdc3a2c7d5698736f9f845df3c2b034c951bd1ee383ca437304c5e690288a0c606b3a5dd28e71bb378ae1e113e4bc74f4a3c8914252d91e1a3afa0a53ddfb
data/README.md CHANGED
@@ -99,13 +99,13 @@ Calculating -------------------------------------
99
99
 
100
100
  | Test Case | Duration (Rust) | Duration (Pure Ruby) | Speedup |
101
101
  | ----------- | --------------- | -------------------- | ------- |
102
- | Foramt 50 | 0.008ms | 0.031ms | ~3.8x |
102
+ | Format 50 | 0.008ms | 0.031ms | ~3.8x |
103
103
  | Format 100 | 0.017ms | 0.062ms | ~3.6x |
104
104
  | Format 400 | 0.052ms | 0.2ms | ~3.8x |
105
105
  | Format HTML | 0.183ms | 0.67ms | ~3.6x |
106
106
 
107
107
  > 🎈 Rust version about 3.5 ~ 3.8x fast then Ruby (pure version).
108
- >
108
+ >
109
109
  > By this result, we can see the Ruby version is also fast, but the Rust version is more better.
110
110
 
111
111
  ## Know issues
@@ -1,7 +1,7 @@
1
1
  [package]
2
- edition = "2021"
2
+ edition = "2024"
3
3
  name = "autocorrect-rb"
4
- version = "2.13.0"
4
+ version = "2.16.3"
5
5
 
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7
7
  [lib]
@@ -10,4 +10,5 @@ name = "autocorrect"
10
10
 
11
11
  [dependencies]
12
12
  autocorrect = "2"
13
- magnus = "0.6"
13
+ # Wait 0.9.0
14
+ magnus = { git = "https://github.com/matsadler/magnus.git", rev = "c7e33c181c44860a33e7d8cd8f39090145f061d0" }
@@ -1,4 +1,4 @@
1
- use magnus::{define_class, function, method, Error, IntoValue, Module, Object};
1
+ use magnus::{Error, IntoValue, Module, Object, Ruby, function, method};
2
2
 
3
3
  #[derive(Debug, Clone)]
4
4
  pub struct LineResult {
@@ -137,14 +137,14 @@ pub fn load_config(config_str: String) {
137
137
  }
138
138
 
139
139
  #[magnus::init(name = "autocorrect")]
140
- fn init() -> Result<(), Error> {
141
- let class = define_class("AutoCorrect", magnus::class::object())?;
140
+ fn init(ruby: &Ruby) -> Result<(), Error> {
141
+ let class = ruby.define_class("AutoCorrect", ruby.class_object())?;
142
142
  class.define_singleton_method("format", function!(format, 1))?;
143
143
  class.define_singleton_method("format_for", function!(format_for, 2))?;
144
144
  class.define_singleton_method("lint_for", function!(lint_for, 2))?;
145
145
  class.define_singleton_method("load_config", function!(load_config, 1))?;
146
146
 
147
- let ignorer_class = class.define_class("Ignorer", magnus::class::object())?;
147
+ let ignorer_class = class.define_class("Ignorer", ruby.class_object())?;
148
148
  ignorer_class.define_singleton_method("new", function!(Ignorer::new, 1))?;
149
149
  ignorer_class.define_method("ignored?", method!(Ignorer::is_ignored, 1))?;
150
150
 
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autocorrect-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.0
4
+ version: 2.16.3
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-15 00:00:00.000000000 Z
11
+ date: 2026-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.54
19
+ version: 0.9.105
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.9.54
26
+ version: 0.9.105
27
27
  description: AutoCorrect is a linter and formatter to help you to improve copywriting,
28
28
  correct spaces, words, punctuations between CJK (Chinese, Japanese, Korean).
29
29
  email:
@@ -38,9 +38,9 @@ files:
38
38
  - ext/autocorrect/extconf.rb
39
39
  - ext/autocorrect/src/lib.rs
40
40
  - lib/autocorrect-rb.rb
41
- - lib/autocorrect/3.1/autocorrect.so
42
- - lib/autocorrect/3.2/autocorrect.so
43
41
  - lib/autocorrect/3.3/autocorrect.so
42
+ - lib/autocorrect/3.4/autocorrect.so
43
+ - lib/autocorrect/4.0/autocorrect.so
44
44
  homepage: https://github.com/huacnlee/autocorrect
45
45
  licenses:
46
46
  - MIT
@@ -53,17 +53,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - ">="
55
55
  - !ruby/object:Gem::Version
56
- version: '3.1'
56
+ version: '3.3'
57
57
  - - "<"
58
58
  - !ruby/object:Gem::Version
59
- version: 3.4.dev
59
+ version: 4.1.dev
60
60
  required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  requirements:
62
62
  - - ">="
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  requirements: []
66
- rubygems_version: 3.4.4
66
+ rubygems_version: 3.5.23
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: AutoCorrect is a linter and formatter to help you to improve copywriting.
Binary file
Binary file