autocorrect-rb 2.13.1-arm64-darwin → 2.16.3-arm64-darwin

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: 27526f0d2056f1ca7da341c86cb8a0001e5f6c0e755fc2073de4a64b3cf12fd8
4
- data.tar.gz: 532b62948cb380223edfc2b6c20a32b2a2fe369d1829bb36b6e65d9e9d87c3da
3
+ metadata.gz: bb22b7ec1909152a86b9e0398707b05aa857eef0fce33cc8c88780d6281aaad5
4
+ data.tar.gz: cbcfe69224a9827e5c923b00545d2facec81196170ad828ad52070ba862bd4ae
5
5
  SHA512:
6
- metadata.gz: 73ddf98a9ab081bf6010b467509e32aca0d487fa34eb717d7aa52c5848bea3b7ef4d79d98bd79242f817ebb52cbe688e80f34d60329513d378b5cd640cc4d83b
7
- data.tar.gz: f77e68aa593ce099855bafe2cf833e1f04c7d94f2b90590e7ee28fd80adda8120b9e16dcef069461de079bcb52467ef6176cfe08786ad60bc384974689ea4b32
6
+ metadata.gz: 3e11bf0b817436cbf65ba79734b2dac5b5bd4d23f5fda8c50c246fd9c9e543b3d868984622534bab69b73f4978e719a52a9d77f43fc014fd615fa6ec9dba9c52
7
+ data.tar.gz: 7dfd1954984132536c79b516379ef9d3d1cba5523a3b01c570674480f897f80735f709ebcdf9b5e78665e9cabe00703786e7cb7d6dd6ca22bfe8c85c639f205a
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.1"
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.7"
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
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.1
4
+ version: 2.16.3
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-30 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
@@ -38,8 +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.2/autocorrect.bundle
41
+ - lib/autocorrect/3.3/autocorrect.bundle
42
42
  - lib/autocorrect/3.4/autocorrect.bundle
43
+ - lib/autocorrect/4.0/autocorrect.bundle
43
44
  homepage: https://github.com/huacnlee/autocorrect
44
45
  licenses:
45
46
  - MIT
@@ -52,10 +53,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
52
53
  requirements:
53
54
  - - ">="
54
55
  - !ruby/object:Gem::Version
55
- version: '3.2'
56
+ version: '3.3'
56
57
  - - "<"
57
58
  - !ruby/object:Gem::Version
58
- version: 3.5.dev
59
+ version: 4.1.dev
59
60
  required_rubygems_version: !ruby/object:Gem::Requirement
60
61
  requirements:
61
62
  - - ">="
Binary file