autocorrect-rb 2.1.1.beta1-arm64-darwin → 2.1.2-arm64-darwin

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -23
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d36227abeba9434414b3eeb6de4daf775df08923daa8503d3d1cf5814877667
4
- data.tar.gz: cff464fe5e391efdbb2e8ae4cafa14786759ada4ce164a68052929c4fee04262
3
+ metadata.gz: 99fc97e0ed6f234d74f09dc82197598f694e87fc39ab8b61da02ebb254e5d53a
4
+ data.tar.gz: ba59bed68a882fd5d223ad450f63182609c6ac11740b400ea5f9ae8579cb5606
5
5
  SHA512:
6
- metadata.gz: 2178ed9511fcdeb9efba1fa57ad2fc0ab2c9dd96c0cb118f32aacaccb7f77966dff1db796c16144bb5efde2deada7b59901385fc31b927d9e361a3a6c5eff124
7
- data.tar.gz: 20bf3930b581255a8fec5a896fbe4e6f905f0436035823f21831a55bf00f7f2babba407ef55a67e79b650a7d01c0b5a79130f97a0ecfaaa34e3a194001dc30bd
6
+ metadata.gz: cdf7d269e269b2c28aebad49aed58030ea814c2587ce2b42a4571910cd3f93f2715aa370d056b27241620dba6b7cb7810dcf851b012f02f7294be5779232007e
7
+ data.tar.gz: dbab1ab4e961eab0fd580c9070f42db8d3bcce41b0f7f1d6ed0dbf1cb69bbf53927b607c9e2b604b0535eba766207a2433f04b93de35c41645091a4d791bfc53
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # AutoCorrect for Node.js
1
+ # AutoCorrect for Ruby
2
2
 
3
- The Native Node.js version of [AutoCorrect](https://github.com/huacnlee/autocorrect) built on [NAPI.RS](https://napi.rs).
3
+ The Native Ruby version of [AutoCorrect](https://github.com/huacnlee/autocorrect).
4
4
 
5
5
  - Rust - [autocorrect](https://github.com/huacnlee/autocorrect)
6
- - Ruby - [autocorrect-rb](https://github.com/huacnlee/autocorrect/tree/main/autocorrect-py)
6
+ - Ruby - [autocorrect-rb](https://github.com/huacnlee/autocorrect/tree/main/autocorrect-rb)
7
7
  - Go - [autocorrect-go](https://github.com/longbridgeapp/autocorrect)
8
8
  - Python - [autocorrect-py](https://github.com/huacnlee/autocorrect/tree/main/autocorrect-py)
9
9
  - Node.js - [autocorrect-node](https://github.com/huacnlee/autocorrect/tree/main/autocorrect-node)
@@ -12,28 +12,29 @@ The Native Node.js version of [AutoCorrect](https://github.com/huacnlee/autocorr
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- $ yarn add autocorrect-node
15
+ $ bundle add autocorrect-rb
16
16
  ```
17
17
 
18
18
  ## Usage
19
19
 
20
- ```js
21
- const autocorrect = require('autocorrect-node');
22
-
23
- const out = autocorrect.format('Hello你好.');
24
- console.log(out);
25
- // Hello 你好。
26
-
27
- out = autocorrect.formatFor("let title = 'Hello你好。'", 'js');
28
- // let title = 'Hello 你好。'
29
-
30
- const result = autocorrect.lintFor("let title = 'Hello你好。'", 'js');
31
- console.log(result);
32
- // {
33
- // filepath: 'js',
34
- // lines: [
35
- // { l: 1, c: 13, new: "'Hello 你好。'", old: "'Hello你好。'", severity: 1 }
36
- // ],
37
- // error: ''
38
- // }
20
+ ```rb
21
+ require('autocorrect-rb');
22
+
23
+ out = AutoCorrect.format('Hello你好.')
24
+ puts out
25
+ # Hello 你好。
26
+
27
+ out = AutoCorrect.format_for("title = 'Hello你好。'", 'rb')
28
+ puts out
29
+ # title = 'Hello 你好。'
30
+
31
+ result = AutoCorrect.lint_lor("title = 'Hello你好。'", 'rb')
32
+ puts result
33
+ # {
34
+ # filepath: 'rb',
35
+ # lines: [
36
+ # { l: 1, c: 13, new: "'Hello 你好。'", old: "'Hello你好。'", severity: 1 }
37
+ # ],
38
+ # error: ''
39
+ # }
39
40
  ```
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autocorrect-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1.beta1
4
+ version: 2.1.2
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Jason Lee
@@ -56,9 +56,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
56
56
  version: 3.2.dev
57
57
  required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 1.3.1
61
+ version: '0'
62
62
  requirements: []
63
63
  rubygems_version: 3.4.0.dev
64
64
  signing_key: