autocorrect-rb 2.8.5-aarch64-linux → 2.9.1-aarch64-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: b300dd728db9d6dc578862084910c44a4291de2281f262697a424efe7aa36f60
4
- data.tar.gz: 7b65f1ac7ff4074fa344e520fd7c0299eac76604040fe08983a25523ba1df9c1
3
+ metadata.gz: 480041f14f24ab1be1c3cf47086743f3c3202ef9f3172bb2e93417ebbdd34346
4
+ data.tar.gz: 4e3857a509e5ce2cc96d9a7f9de1a24b997ec0cbcbf27ffa3bdc3df274253dcc
5
5
  SHA512:
6
- metadata.gz: 18ca4b26df1d7d82ab4e75fdbe8c95fb3cfc9ff2098b479da917ad48c70ef147ed3b0307318df6a8eaa76ba657e494427898ed7b489dea19009159c17d6b1954
7
- data.tar.gz: d2d3f915d057c28ec035bf373da640ae37ba79ac9e8ed3972c7010013b3a914ba05150dcc67024a8c0d201e0ad02d539c3a933ae0fbd0c251d69bebe95d2c25e
6
+ metadata.gz: 4fc8c65dddcc6c48a79cada3a7cf31425fcbd99b427330e00b8c14e26bdd61595f4305e411b3040688e77decc812122f3e1987d9ae7327a3636d4d1a58d1ad88
7
+ data.tar.gz: e698ee6d8d589f3d27820b15589c9ca1a11801257ceef70e6a22758b0653b82ac9ef6e13e276a6fb1922a861f849ae52703505b4ed7b564c76e1912cd4769e8a
@@ -1,7 +1,7 @@
1
1
  [package]
2
2
  edition = "2021"
3
3
  name = "autocorrect-rb"
4
- version = "2.8.5"
4
+ version = "2.9.1"
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.4"
13
+ magnus = "0.6"
14
+ rb-sys = { version = "*", default-features = false, features = ["stable-api-compiled-fallback"] }
@@ -1,4 +1,4 @@
1
- use magnus::{define_class, function, method, Error, Module, Object};
1
+ use magnus::{define_class, function, method, Error, IntoValue, Module, Object};
2
2
 
3
3
  #[derive(Debug, Clone)]
4
4
  pub struct LineResult {
@@ -74,10 +74,11 @@ impl LintResult {
74
74
  hash.aset("filepath", self.filepath())?;
75
75
  hash.aset(
76
76
  "lines",
77
- self.lines()
78
- .iter()
79
- .map(|l| l.to_hash().unwrap())
80
- .collect::<Vec<magnus::RHash>>(),
77
+ magnus::RArray::from_iter(
78
+ self.lines()
79
+ .iter()
80
+ .map(|l| l.to_hash().unwrap().into_value()),
81
+ ),
81
82
  )?;
82
83
  hash.aset("error", self.error())?;
83
84
  Ok(hash)
@@ -137,13 +138,13 @@ pub fn load_config(config_str: String) {
137
138
 
138
139
  #[magnus::init(name = "autocorrect")]
139
140
  fn init() -> Result<(), Error> {
140
- let class = define_class("AutoCorrect", Default::default())?;
141
+ let class = define_class("AutoCorrect", magnus::class::object())?;
141
142
  class.define_singleton_method("format", function!(format, 1))?;
142
143
  class.define_singleton_method("format_for", function!(format_for, 2))?;
143
144
  class.define_singleton_method("lint_for", function!(lint_for, 2))?;
144
145
  class.define_singleton_method("load_config", function!(load_config, 1))?;
145
146
 
146
- let ignorer_class = class.define_class("Ignorer", Default::default())?;
147
+ let ignorer_class = class.define_class("Ignorer", magnus::class::object())?;
147
148
  ignorer_class.define_singleton_method("new", function!(Ignorer::new, 1))?;
148
149
  ignorer_class.define_method("ignored?", method!(Ignorer::is_ignored, 1))?;
149
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.8.5
4
+ version: 2.9.1
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-07 00:00:00.000000000 Z
11
+ date: 2024-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys
@@ -40,6 +40,7 @@ files:
40
40
  - lib/autocorrect-rb.rb
41
41
  - lib/autocorrect/3.1/autocorrect.so
42
42
  - lib/autocorrect/3.2/autocorrect.so
43
+ - lib/autocorrect/3.3/autocorrect.so
43
44
  homepage: https://github.com/huacnlee/autocorrect
44
45
  licenses:
45
46
  - MIT
@@ -55,7 +56,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
56
  version: '3.1'
56
57
  - - "<"
57
58
  - !ruby/object:Gem::Version
58
- version: 3.3.dev
59
+ version: 3.4.dev
59
60
  required_rubygems_version: !ruby/object:Gem::Requirement
60
61
  requirements:
61
62
  - - ">="