mdspell 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -14
- data/spec/examples.cache +53 -53
- data/spec/examples/complete.md +2 -0
- data/spec/examples/simple.md +1 -1
- data/spec/mdspell/text_line_spec.rb +11 -10
- metadata +44 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76fce7bcf792008fa30cdef08b20b6b34bfde6f0
|
4
|
+
data.tar.gz: 17eae24804cfd3b23b00d1a266a121adc640c6ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c95025b63bd24fc8343aa3d03e5ccc91bbc7238db2f7b6517d7e1457b90bde303294889cd9c345c25e7a91e939f6f0e8e55c01c6f951f168950ff413639b4b7a
|
7
|
+
data.tar.gz: 3af1fcef362cbf899f5809c99e79515163f81ddb6fa40405fbdb4daa643e67e79f62160c3cfdf739af0a46a104450eb6ea2088a1e1a6075f6196a703dbe2cad7
|
data/README.md
CHANGED
@@ -18,6 +18,8 @@ To install from [rubygems.org](http://rubygems.org/), run:
|
|
18
18
|
|
19
19
|
```console
|
20
20
|
$ gem install mdspell
|
21
|
+
Successfully installed mdspell-0.1.3
|
22
|
+
1 gem installed
|
21
23
|
```
|
22
24
|
|
23
25
|
On top of that, make sure that [GNU Aspell](http://aspell.net/) is installed on the system:
|
@@ -31,22 +33,20 @@ $ sudo pacman -S aspell
|
|
31
33
|
|
32
34
|
## Usage
|
33
35
|
|
34
|
-
To spell-check markdown files, simply run `mdspell` with the
|
36
|
+
To spell-check markdown files, simply run `mdspell` with the filename (or directory) as
|
37
|
+
a parameter. For each spelling error found, MdSpell will display the misspelled word, filename
|
38
|
+
and line number:
|
35
39
|
|
36
40
|
```console
|
37
|
-
$ mdspell README.md
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
For each spelling error found, MdSpell will display the misspelled word, filename and line number:
|
47
|
-
|
48
|
-
```console
|
49
|
-
./README.md:10: actualy
|
41
|
+
$ mdspell README.md spec
|
42
|
+
README.md:19: MD014 Dollar signs used before commands without showing output
|
43
|
+
README.md:36: MD014 Dollar signs used before commands without showing output
|
44
|
+
README.md:42: MD014 Dollar signs used before commands without showing output
|
45
|
+
spec/examples/with_errors.md:1: mispelled
|
46
|
+
spec/examples/with_errors.md:3: qiute
|
47
|
+
spec/examples/with_errors.md:3: actualy
|
48
|
+
spec/examples/with_errors.md:5: tobe
|
49
|
+
spec/examples/complete.md:24: Unordered
|
50
50
|
```
|
51
51
|
|
52
52
|
## MIT Licensed
|
data/spec/examples.cache
CHANGED
@@ -1,58 +1,58 @@
|
|
1
1
|
example_id | status | run_time |
|
2
2
|
--------------------------------------------- | ------ | --------------- |
|
3
|
-
./spec/mdspell/cli_spec.rb[1:1] | passed | 0.
|
4
|
-
./spec/mdspell/cli_spec.rb[1:2] | passed | 0.
|
3
|
+
./spec/mdspell/cli_spec.rb[1:1] | passed | 0.00017 seconds |
|
4
|
+
./spec/mdspell/cli_spec.rb[1:2] | passed | 0.0001 seconds |
|
5
5
|
./spec/mdspell/cli_spec.rb[1:3:1] | passed | 0.00017 seconds |
|
6
|
-
./spec/mdspell/cli_spec.rb[1:4:1:1] | passed | 0.
|
7
|
-
./spec/mdspell/cli_spec.rb[1:4:2:1] | passed | 0.
|
8
|
-
./spec/mdspell/cli_spec.rb[1:4:3:1] | passed | 0.
|
9
|
-
./spec/mdspell/configuration_spec.rb[1:1:1] | passed | 0.
|
10
|
-
./spec/mdspell/configuration_spec.rb[1:1:2:1] | passed | 0.
|
11
|
-
./spec/mdspell/configuration_spec.rb[1:1:2:2] | passed | 0.
|
12
|
-
./spec/mdspell/configuration_spec.rb[1:1:3:1] | passed | 0.
|
13
|
-
./spec/mdspell/configuration_spec.rb[1:2:1] | passed | 0.
|
14
|
-
./spec/mdspell/configuration_spec.rb[1:2:2:1] | passed | 0.
|
15
|
-
./spec/mdspell/configuration_spec.rb[1:2:2:2] | passed | 0.
|
6
|
+
./spec/mdspell/cli_spec.rb[1:4:1:1] | passed | 0.00069 seconds |
|
7
|
+
./spec/mdspell/cli_spec.rb[1:4:2:1] | passed | 0.00234 seconds |
|
8
|
+
./spec/mdspell/cli_spec.rb[1:4:3:1] | passed | 0.00073 seconds |
|
9
|
+
./spec/mdspell/configuration_spec.rb[1:1:1] | passed | 0.00055 seconds |
|
10
|
+
./spec/mdspell/configuration_spec.rb[1:1:2:1] | passed | 0.00041 seconds |
|
11
|
+
./spec/mdspell/configuration_spec.rb[1:1:2:2] | passed | 0.00066 seconds |
|
12
|
+
./spec/mdspell/configuration_spec.rb[1:1:3:1] | passed | 0.00046 seconds |
|
13
|
+
./spec/mdspell/configuration_spec.rb[1:2:1] | passed | 0.00045 seconds |
|
14
|
+
./spec/mdspell/configuration_spec.rb[1:2:2:1] | passed | 0.00056 seconds |
|
15
|
+
./spec/mdspell/configuration_spec.rb[1:2:2:2] | passed | 0.00045 seconds |
|
16
16
|
./spec/mdspell/configuration_spec.rb[1:3:1] | passed | 0.00039 seconds |
|
17
|
-
./spec/mdspell/configuration_spec.rb[1:3:2:1] | passed | 0.
|
18
|
-
./spec/mdspell/configuration_spec.rb[1:3:2:2] | passed | 0.
|
19
|
-
./spec/mdspell/configuration_spec.rb[1:4:1] | passed | 0.
|
20
|
-
./spec/mdspell/configuration_spec.rb[1:4:2:1] | passed | 0.
|
21
|
-
./spec/mdspell/configuration_spec.rb[1:4:2:2] | passed | 0.
|
22
|
-
./spec/mdspell/spell_checker_spec.rb[1:1:1] | passed | 0.
|
23
|
-
./spec/mdspell/spell_checker_spec.rb[1:1:2] | passed | 0.
|
24
|
-
./spec/mdspell/spell_checker_spec.rb[1:1:3] | passed | 0.
|
25
|
-
./spec/mdspell/spell_checker_spec.rb[1:2:1] | passed | 0.
|
26
|
-
./spec/mdspell/spell_checker_spec.rb[1:2:2] | passed | 0.
|
27
|
-
./spec/mdspell/spell_checker_spec.rb[1:2:3] | passed | 0.
|
28
|
-
./spec/mdspell/spell_checker_spec.rb[1:3:1] | passed | 0.
|
29
|
-
./spec/mdspell/spell_checker_spec.rb[1:3:2:1] | passed | 0.
|
30
|
-
./spec/mdspell/spell_checker_spec.rb[1:4:1] | passed | 0.
|
31
|
-
./spec/mdspell/spell_checker_spec.rb[1:5:1] | passed | 0.
|
32
|
-
./spec/mdspell/spell_checker_spec.rb[1:5:2] | passed | 0.
|
33
|
-
./spec/mdspell/spell_checker_spec.rb[1:5:3] | passed | 0.
|
34
|
-
./spec/mdspell/text_line_spec.rb[1:1:1] | passed | 0.
|
35
|
-
./spec/mdspell/text_line_spec.rb[1:1:2] | passed | 0.
|
36
|
-
./spec/mdspell/text_line_spec.rb[1:1:3] | passed | 0.
|
37
|
-
./spec/mdspell/text_line_spec.rb[1:1:4] | passed | 0.
|
38
|
-
./spec/mdspell/text_line_spec.rb[1:2:1] | passed | 0.
|
39
|
-
./spec/mdspell/text_line_spec.rb[1:3:1] | passed | 0.
|
40
|
-
./spec/mdspell/text_line_spec.rb[1:4:1] | passed | 0.
|
41
|
-
./spec/mdspell/text_line_spec.rb[1:5:1] | passed | 0.
|
42
|
-
./spec/mdspell/text_line_spec.rb[1:6:1] | passed | 0.
|
43
|
-
./spec/mdspell/text_line_spec.rb[1:6:2:1] | passed | 0.
|
44
|
-
./spec/mdspell/text_line_spec.rb[1:6:3:1] | passed | 0.
|
45
|
-
./spec/mdspell/text_line_spec.rb[1:6:3:2] | passed | 0.
|
46
|
-
./spec/mdspell/text_line_spec.rb[1:6:4:1] | passed | 0.
|
47
|
-
./spec/mdspell/text_line_spec.rb[1:7:1] | passed | 0.
|
48
|
-
./spec/mdspell/text_line_spec.rb[1:7:2] | passed | 0.
|
49
|
-
./spec/mdspell/typo_spec.rb[1:1:1] | passed | 0.
|
50
|
-
./spec/mdspell/typo_spec.rb[1:1:2] | passed | 0.
|
17
|
+
./spec/mdspell/configuration_spec.rb[1:3:2:1] | passed | 0.00062 seconds |
|
18
|
+
./spec/mdspell/configuration_spec.rb[1:3:2:2] | passed | 0.00039 seconds |
|
19
|
+
./spec/mdspell/configuration_spec.rb[1:4:1] | passed | 0.00049 seconds |
|
20
|
+
./spec/mdspell/configuration_spec.rb[1:4:2:1] | passed | 0.00056 seconds |
|
21
|
+
./spec/mdspell/configuration_spec.rb[1:4:2:2] | passed | 0.00058 seconds |
|
22
|
+
./spec/mdspell/spell_checker_spec.rb[1:1:1] | passed | 0.00092 seconds |
|
23
|
+
./spec/mdspell/spell_checker_spec.rb[1:1:2] | passed | 0.00059 seconds |
|
24
|
+
./spec/mdspell/spell_checker_spec.rb[1:1:3] | passed | 0.00088 seconds |
|
25
|
+
./spec/mdspell/spell_checker_spec.rb[1:2:1] | passed | 0.00014 seconds |
|
26
|
+
./spec/mdspell/spell_checker_spec.rb[1:2:2] | passed | 0.00011 seconds |
|
27
|
+
./spec/mdspell/spell_checker_spec.rb[1:2:3] | passed | 0.00075 seconds |
|
28
|
+
./spec/mdspell/spell_checker_spec.rb[1:3:1] | passed | 0.00158 seconds |
|
29
|
+
./spec/mdspell/spell_checker_spec.rb[1:3:2:1] | passed | 0.00474 seconds |
|
30
|
+
./spec/mdspell/spell_checker_spec.rb[1:4:1] | passed | 0.00131 seconds |
|
31
|
+
./spec/mdspell/spell_checker_spec.rb[1:5:1] | passed | 0.0104 seconds |
|
32
|
+
./spec/mdspell/spell_checker_spec.rb[1:5:2] | passed | 0.01091 seconds |
|
33
|
+
./spec/mdspell/spell_checker_spec.rb[1:5:3] | passed | 0.04828 seconds |
|
34
|
+
./spec/mdspell/text_line_spec.rb[1:1:1] | passed | 0.0002 seconds |
|
35
|
+
./spec/mdspell/text_line_spec.rb[1:1:2] | passed | 0.00014 seconds |
|
36
|
+
./spec/mdspell/text_line_spec.rb[1:1:3] | passed | 0.00041 seconds |
|
37
|
+
./spec/mdspell/text_line_spec.rb[1:1:4] | passed | 0.00132 seconds |
|
38
|
+
./spec/mdspell/text_line_spec.rb[1:2:1] | passed | 0.00015 seconds |
|
39
|
+
./spec/mdspell/text_line_spec.rb[1:3:1] | passed | 0.00009 seconds |
|
40
|
+
./spec/mdspell/text_line_spec.rb[1:4:1] | passed | 0.00014 seconds |
|
41
|
+
./spec/mdspell/text_line_spec.rb[1:5:1] | passed | 0.00021 seconds |
|
42
|
+
./spec/mdspell/text_line_spec.rb[1:6:1] | passed | 0.00188 seconds |
|
43
|
+
./spec/mdspell/text_line_spec.rb[1:6:2:1] | passed | 0.00064 seconds |
|
44
|
+
./spec/mdspell/text_line_spec.rb[1:6:3:1] | passed | 0.00025 seconds |
|
45
|
+
./spec/mdspell/text_line_spec.rb[1:6:3:2] | passed | 0.00021 seconds |
|
46
|
+
./spec/mdspell/text_line_spec.rb[1:6:4:1] | passed | 0.00017 seconds |
|
47
|
+
./spec/mdspell/text_line_spec.rb[1:7:1] | passed | 0.00018 seconds |
|
48
|
+
./spec/mdspell/text_line_spec.rb[1:7:2] | passed | 0.04356 seconds |
|
49
|
+
./spec/mdspell/typo_spec.rb[1:1:1] | passed | 0.00009 seconds |
|
50
|
+
./spec/mdspell/typo_spec.rb[1:1:2] | passed | 0.00012 seconds |
|
51
51
|
./spec/mdspell/typo_spec.rb[1:1:3] | passed | 0.0001 seconds |
|
52
|
-
./spec/mdspell/typo_spec.rb[1:2:1] | passed | 0.
|
53
|
-
./spec/mdspell/typo_spec.rb[1:2:2] | passed | 0.
|
54
|
-
./spec/mdspell/typo_spec.rb[1:2:3] | passed | 0.
|
55
|
-
./spec/mdspell/typo_spec.rb[1:3:1] | passed | 0.
|
56
|
-
./spec/mdspell/typo_spec.rb[1:4:1] | passed | 0.
|
57
|
-
./spec/mdspell/typo_spec.rb[1:5:1] | passed | 0.
|
58
|
-
./spec/mdspell/typo_spec.rb[1:5:2] | passed | 0.
|
52
|
+
./spec/mdspell/typo_spec.rb[1:2:1] | passed | 0.00014 seconds |
|
53
|
+
./spec/mdspell/typo_spec.rb[1:2:2] | passed | 0.00019 seconds |
|
54
|
+
./spec/mdspell/typo_spec.rb[1:2:3] | passed | 0.00014 seconds |
|
55
|
+
./spec/mdspell/typo_spec.rb[1:3:1] | passed | 0.00076 seconds |
|
56
|
+
./spec/mdspell/typo_spec.rb[1:4:1] | passed | 0.00009 seconds |
|
57
|
+
./spec/mdspell/typo_spec.rb[1:5:1] | passed | 0.00035 seconds |
|
58
|
+
./spec/mdspell/typo_spec.rb[1:5:2] | passed | 0.00025 seconds |
|
data/spec/examples/complete.md
CHANGED
data/spec/examples/simple.md
CHANGED
@@ -103,7 +103,7 @@ describe MdSpell::TextLine do
|
|
103
103
|
it 'should find proper lines' do
|
104
104
|
lines = MdSpell::TextLine.scan(complete_md)
|
105
105
|
|
106
|
-
expect(lines).to have(
|
106
|
+
expect(lines).to have(20).items
|
107
107
|
|
108
108
|
expect(lines[0].content).to eq 'First header'
|
109
109
|
expect(lines[1].content).to eq 'Second Header'
|
@@ -115,15 +115,16 @@ describe MdSpell::TextLine do
|
|
115
115
|
expect(lines[7].content).to eq 'Multi-line'
|
116
116
|
expect(lines[8].content).to eq 'paragraph'
|
117
117
|
expect(lines[9].content).to eq 'Block-quote'
|
118
|
-
expect(lines[10].content).to eq '
|
119
|
-
expect(lines[11].content).to eq '
|
120
|
-
expect(lines[12].content).to eq '
|
121
|
-
expect(lines[13].content).to eq '
|
122
|
-
expect(lines[14].content).to eq '
|
123
|
-
expect(lines[15].content).to eq '
|
124
|
-
expect(lines[16].content).to eq '
|
125
|
-
expect(lines[17].content).to eq '
|
126
|
-
expect(lines[18].content).to eq
|
118
|
+
expect(lines[10].content).to eq 'Third paragraph (with parenthesis).'
|
119
|
+
expect(lines[11].content).to eq 'Another block-quote'
|
120
|
+
expect(lines[12].content).to eq 'Nested block-quote'
|
121
|
+
expect(lines[13].content).to eq 'Unordered'
|
122
|
+
expect(lines[14].content).to eq 'List'
|
123
|
+
expect(lines[15].content).to eq 'Ordered'
|
124
|
+
expect(lines[16].content).to eq 'List'
|
125
|
+
expect(lines[17].content).to eq 'Multi-line paragraph'
|
126
|
+
expect(lines[18].content).to eq 'as list item'
|
127
|
+
expect(lines[19].content).to eq "Two quotes: That's one, and here's the other"
|
127
128
|
end
|
128
129
|
end
|
129
130
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mdspell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marek Tuchowski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kramdown
|
@@ -38,6 +38,48 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: mixlib-cli
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.5'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.5'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: mixlib-config
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.2'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rainbow
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.0'
|
41
83
|
description: Check markdown files for spelling errors.
|
42
84
|
email: marek@tuchowski.com.pl
|
43
85
|
executables:
|