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.
- checksums.yaml +4 -4
- data/README.md +24 -23
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99fc97e0ed6f234d74f09dc82197598f694e87fc39ab8b61da02ebb254e5d53a
|
4
|
+
data.tar.gz: ba59bed68a882fd5d223ad450f63182609c6ac11740b400ea5f9ae8579cb5606
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdf7d269e269b2c28aebad49aed58030ea814c2587ce2b42a4571910cd3f93f2715aa370d056b27241620dba6b7cb7810dcf851b012f02f7294be5779232007e
|
7
|
+
data.tar.gz: dbab1ab4e961eab0fd580c9070f42db8d3bcce41b0f7f1d6ed0dbf1cb69bbf53927b607c9e2b604b0535eba766207a2433f04b93de35c41645091a4d791bfc53
|
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
# AutoCorrect for
|
1
|
+
# AutoCorrect for Ruby
|
2
2
|
|
3
|
-
The Native
|
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-
|
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
|
-
$
|
15
|
+
$ bundle add autocorrect-rb
|
16
16
|
```
|
17
17
|
|
18
18
|
## Usage
|
19
19
|
|
20
|
-
```
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
out =
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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.
|
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:
|
61
|
+
version: '0'
|
62
62
|
requirements: []
|
63
63
|
rubygems_version: 3.4.0.dev
|
64
64
|
signing_key:
|