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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 498db120436c18f276565d5869d6ae6633bb5874
4
- data.tar.gz: de25d5a7b64c13595b116dc1f468c82fe4c04c9d
3
+ metadata.gz: 76fce7bcf792008fa30cdef08b20b6b34bfde6f0
4
+ data.tar.gz: 17eae24804cfd3b23b00d1a266a121adc640c6ef
5
5
  SHA512:
6
- metadata.gz: ba929dadf2ef521255dc2cea3c5b92c965003ca632d10b99e782c050d7189c122de14a837a8ab73e06b1947fbe59925a086a2dd09d2cc0b0b075f88af22ff4b7
7
- data.tar.gz: 711bdcab6d3c6835deb9afd350df72a3337db5b6406c70b5cb3d263314bd76e29dc9772bcc35e1d976650366f607d379a0c7bfae481f19775a26ea5439f9098b
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 filenames as a parameter:
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
- To check all markdown files within the directory:
41
-
42
- ```console
43
- $ mdspell docs/
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
@@ -1,58 +1,58 @@
1
1
  example_id | status | run_time |
2
2
  --------------------------------------------- | ------ | --------------- |
3
- ./spec/mdspell/cli_spec.rb[1:1] | passed | 0.00011 seconds |
4
- ./spec/mdspell/cli_spec.rb[1:2] | passed | 0.00011 seconds |
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.00042 seconds |
7
- ./spec/mdspell/cli_spec.rb[1:4:2:1] | passed | 0.00124 seconds |
8
- ./spec/mdspell/cli_spec.rb[1:4:3:1] | passed | 0.00058 seconds |
9
- ./spec/mdspell/configuration_spec.rb[1:1:1] | passed | 0.00036 seconds |
10
- ./spec/mdspell/configuration_spec.rb[1:1:2:1] | passed | 0.00044 seconds |
11
- ./spec/mdspell/configuration_spec.rb[1:1:2:2] | passed | 0.00041 seconds |
12
- ./spec/mdspell/configuration_spec.rb[1:1:3:1] | passed | 0.00047 seconds |
13
- ./spec/mdspell/configuration_spec.rb[1:2:1] | passed | 0.00057 seconds |
14
- ./spec/mdspell/configuration_spec.rb[1:2:2:1] | passed | 0.00176 seconds |
15
- ./spec/mdspell/configuration_spec.rb[1:2:2:2] | passed | 0.00039 seconds |
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.00041 seconds |
18
- ./spec/mdspell/configuration_spec.rb[1:3:2:2] | passed | 0.00043 seconds |
19
- ./spec/mdspell/configuration_spec.rb[1:4:1] | passed | 0.00036 seconds |
20
- ./spec/mdspell/configuration_spec.rb[1:4:2:1] | passed | 0.00045 seconds |
21
- ./spec/mdspell/configuration_spec.rb[1:4:2:2] | passed | 0.00051 seconds |
22
- ./spec/mdspell/spell_checker_spec.rb[1:1:1] | passed | 0.00148 seconds |
23
- ./spec/mdspell/spell_checker_spec.rb[1:1:2] | passed | 0.00072 seconds |
24
- ./spec/mdspell/spell_checker_spec.rb[1:1:3] | passed | 0.00301 seconds |
25
- ./spec/mdspell/spell_checker_spec.rb[1:2:1] | passed | 0.00019 seconds |
26
- ./spec/mdspell/spell_checker_spec.rb[1:2:2] | passed | 0.00014 seconds |
27
- ./spec/mdspell/spell_checker_spec.rb[1:2:3] | passed | 0.05121 seconds |
28
- ./spec/mdspell/spell_checker_spec.rb[1:3:1] | passed | 0.00145 seconds |
29
- ./spec/mdspell/spell_checker_spec.rb[1:3:2:1] | passed | 0.00142 seconds |
30
- ./spec/mdspell/spell_checker_spec.rb[1:4:1] | passed | 0.00282 seconds |
31
- ./spec/mdspell/spell_checker_spec.rb[1:5:1] | passed | 0.01528 seconds |
32
- ./spec/mdspell/spell_checker_spec.rb[1:5:2] | passed | 0.00968 seconds |
33
- ./spec/mdspell/spell_checker_spec.rb[1:5:3] | passed | 0.05735 seconds |
34
- ./spec/mdspell/text_line_spec.rb[1:1:1] | passed | 0.00009 seconds |
35
- ./spec/mdspell/text_line_spec.rb[1:1:2] | passed | 0.0001 seconds |
36
- ./spec/mdspell/text_line_spec.rb[1:1:3] | passed | 0.00008 seconds |
37
- ./spec/mdspell/text_line_spec.rb[1:1:4] | passed | 0.00008 seconds |
38
- ./spec/mdspell/text_line_spec.rb[1:2:1] | passed | 0.00014 seconds |
39
- ./spec/mdspell/text_line_spec.rb[1:3:1] | passed | 0.00012 seconds |
40
- ./spec/mdspell/text_line_spec.rb[1:4:1] | passed | 0.00008 seconds |
41
- ./spec/mdspell/text_line_spec.rb[1:5:1] | passed | 0.00011 seconds |
42
- ./spec/mdspell/text_line_spec.rb[1:6:1] | passed | 0.00018 seconds |
43
- ./spec/mdspell/text_line_spec.rb[1:6:2:1] | passed | 0.00011 seconds |
44
- ./spec/mdspell/text_line_spec.rb[1:6:3:1] | passed | 0.00022 seconds |
45
- ./spec/mdspell/text_line_spec.rb[1:6:3:2] | passed | 0.00016 seconds |
46
- ./spec/mdspell/text_line_spec.rb[1:6:4:1] | passed | 0.00009 seconds |
47
- ./spec/mdspell/text_line_spec.rb[1:7:1] | passed | 0.00015 seconds |
48
- ./spec/mdspell/text_line_spec.rb[1:7:2] | passed | 0.00355 seconds |
49
- ./spec/mdspell/typo_spec.rb[1:1:1] | passed | 0.00012 seconds |
50
- ./spec/mdspell/typo_spec.rb[1:1:2] | passed | 0.00011 seconds |
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.00013 seconds |
53
- ./spec/mdspell/typo_spec.rb[1:2:2] | passed | 0.00015 seconds |
54
- ./spec/mdspell/typo_spec.rb[1:2:3] | passed | 0.00021 seconds |
55
- ./spec/mdspell/typo_spec.rb[1:3:1] | passed | 0.00051 seconds |
56
- ./spec/mdspell/typo_spec.rb[1:4:1] | passed | 0.00013 seconds |
57
- ./spec/mdspell/typo_spec.rb[1:5:1] | passed | 0.00011 seconds |
58
- ./spec/mdspell/typo_spec.rb[1:5:2] | passed | 0.00011 seconds |
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 |
@@ -17,6 +17,8 @@ paragraph
17
17
 
18
18
  > Block-quote
19
19
 
20
+ Third paragraph (with parenthesis).
21
+
20
22
  > Another block-quote
21
23
  >
22
24
  > > Nested block-quote
@@ -2,4 +2,4 @@
2
2
 
3
3
  markdown
4
4
 
5
- *file*
5
+ test *file*
@@ -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(19).items
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 'Another block-quote'
119
- expect(lines[11].content).to eq 'Nested block-quote'
120
- expect(lines[12].content).to eq 'Unordered'
121
- expect(lines[13].content).to eq 'List'
122
- expect(lines[14].content).to eq 'Ordered'
123
- expect(lines[15].content).to eq 'List'
124
- expect(lines[16].content).to eq 'Multi-line paragraph'
125
- expect(lines[17].content).to eq 'as list item'
126
- expect(lines[18].content).to eq "Two quotes: That's one, and here's the other"
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.3
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-15 00:00:00.000000000 Z
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: