autocorrect-rb 2.9.0-x86_64-darwin → 2.9.1.pre.rc0-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: 6cf891957de97a18ac955f12ee9956f09e9de4f3ab3bd6431ec3422d2569ee53
4
- data.tar.gz: 3a08d89b047ffd148f7ff0b89ca2ee087a420c3adc6b63a381d0508af2b20523
3
+ metadata.gz: 7dc29d50c991da1cde0e4cebba69888dd95cd000a8883e3dc8d90828b1b86352
4
+ data.tar.gz: edbac6e1d16c608a868e141848cc1de30f0d4e8ab5a5c3d19472686688fe48b8
5
5
  SHA512:
6
- metadata.gz: 95ef9239e9d1882d6f0cdf62a99514d4cc329d31436f1689b18b90be52afb85f2affdf9ada32bf93e4a5e3885f628813f532c958d0d6e1cd719fd569481326f4
7
- data.tar.gz: 1ba9127221fc966acdc8ff0f3911dbca0f213ae8963605905832ef63bbbca2687e4d6ba3ec775a88b3ff0b7619098004c545f4179c1deb7a679dbe8e5aa8c1a7
6
+ metadata.gz: dd119311853fb0ce6ed599673a5849e570ceb6ed6af475c3a74ef6e7639f06f5239d470d89b707c18da3498e9ddc0f1c6316f9794055b31ec220e2e6d9f0b2e0
7
+ data.tar.gz: eaa3718bde0b6e20c7d756637ea4a5d4efd204c8da2adf8a93ba51bcb4d948c84d56fea74b290eb826c0b5378ca968d2b67aab686992c8680bb3dd55b5507e31
@@ -1,7 +1,7 @@
1
1
  [package]
2
2
  edition = "2021"
3
3
  name = "autocorrect-rb"
4
- version = "2.9.0"
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
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.9.0
4
+ version: 2.9.1.pre.rc0
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-05 00:00:00.000000000 Z
11
+ date: 2023-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys
@@ -58,9 +58,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
58
  version: 3.3.dev
59
59
  required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ">="
61
+ - - ">"
62
62
  - !ruby/object:Gem::Version
63
- version: '0'
63
+ version: 1.3.1
64
64
  requirements: []
65
65
  rubygems_version: 3.4.4
66
66
  signing_key: