autocorrect-rb 2.9.0-arm64-darwin → 2.9.1.pre.rc1-arm64-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: 333f65082a8ce2add7e247fd735eae8d1a6b602a899d1cfcaa8253c6f0bd4a69
4
- data.tar.gz: be2596b0c7d72c9c0b9ce4dbafff92293ae8edf651149e81a4716853298568b7
3
+ metadata.gz: 20aaf9320b6ead8e19ef6375e4ec59c640e41a7a60701c1b52362f71d945319c
4
+ data.tar.gz: 17c78d09d4b97f75bcc3b2f0f5f49a25dba0b078603ef38676c47e14c7e291da
5
5
  SHA512:
6
- metadata.gz: 6527df3ba81bc9ce92f1d7971f2fd5926beec0e503be30703775bebc9fea72e9fb319738e8e56b4a359968a45db4be99ca1416b36ab901095691fb268693b98c
7
- data.tar.gz: b4485c5b56887aa21b749835aa9bbb7444dc0a5a63ed4d1ef8bd5d366182a2b05e2e5dcb0243e2fc8d3280bccd1368ef37e273b273263c64ee1e9c9513421515
6
+ metadata.gz: b32414a091f8354f029b2f39beb3823c3bc291b9f446eca8f03074af6f120154417eec1587183acfd6d9b90642b109766fcde17e389be9a3d3daaa138901d5bb
7
+ data.tar.gz: 9c73e1b3944d9a5cc5ebc686570229c2d7549c1eaf8fcb6108108f43d1e65ef5c59128fdf5cfaed4764d48861c53b6c0d942dd11c89acb8482cb60dfeccfd62a
@@ -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
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.rc1
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: 2023-12-05 00:00:00.000000000 Z
11
+ date: 2023-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys
@@ -38,7 +38,6 @@ 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.bundle
42
41
  - lib/autocorrect/3.2/autocorrect.bundle
43
42
  homepage: https://github.com/huacnlee/autocorrect
44
43
  licenses:
@@ -52,15 +51,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
52
51
  requirements:
53
52
  - - ">="
54
53
  - !ruby/object:Gem::Version
55
- version: '3.1'
54
+ version: '3.2'
56
55
  - - "<"
57
56
  - !ruby/object:Gem::Version
58
57
  version: 3.3.dev
59
58
  required_rubygems_version: !ruby/object:Gem::Requirement
60
59
  requirements:
61
- - - ">="
60
+ - - ">"
62
61
  - !ruby/object:Gem::Version
63
- version: '0'
62
+ version: 1.3.1
64
63
  requirements: []
65
64
  rubygems_version: 3.4.4
66
65
  signing_key:
Binary file