pronto-spell 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pronto/spell.rb +5 -5
- data/lib/pronto/spell/version.rb +1 -1
- data/pronto-spell.gemspec +39 -0
- metadata +16 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2ecaba8b5096fbf8f8b8a6de755508008ef98a2
|
4
|
+
data.tar.gz: 117dedc21f1878b2ea6e219fe244f7d12f5a469f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8b6d8465f429856ffb5149aa9f27c0177ef2824c1ddc00592e9296caa6e057dd5006fc098ce7c045c8b06104e3c3132891af90123f18f7ad5c0343048092f8a
|
7
|
+
data.tar.gz: 5a38c6e4b5378433a864ba7fe0350186db5cb923b5fad74d97570c7c33ed84eeddf3152d7b43aa33d64dc54f7e44604268998c1f57d123a18d4354d99c60a3e8
|
data/lib/pronto/spell.rb
CHANGED
@@ -12,17 +12,17 @@ module Pronto
|
|
12
12
|
return [] unless patches
|
13
13
|
|
14
14
|
patches.select { |patch| patch.additions > 0 }
|
15
|
-
|
16
|
-
|
15
|
+
.map { |patch| inspect(patch) }
|
16
|
+
.flatten.compact
|
17
17
|
end
|
18
18
|
|
19
19
|
def inspect(patch)
|
20
20
|
patch.added_lines.map do |line|
|
21
21
|
words = line.content.scan(/[0-9a-zA-Z]+/)
|
22
22
|
words.select { |word| word.length > 4 }
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
.uniq
|
24
|
+
.select { |word| !@speller.correct?(word) }
|
25
|
+
.map { |word| new_message(word, line) }
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
data/lib/pronto/spell/version.rb
CHANGED
@@ -0,0 +1,39 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
|
3
|
+
|
4
|
+
require 'pronto/spell/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = 'pronto-spell'
|
8
|
+
s.version = Pronto::SpellVersion::VERSION
|
9
|
+
s.platform = Gem::Platform::RUBY
|
10
|
+
s.author = 'Mindaugas Mozūras'
|
11
|
+
s.email = 'mindaugas.mozuras@gmail.com'
|
12
|
+
s.homepage = 'http://github.org/mmozuras/pronto-spell'
|
13
|
+
s.summary = 'Pronto runner that uses Aspell for spell checking'
|
14
|
+
|
15
|
+
s.licenses = ['MIT']
|
16
|
+
s.required_ruby_version = '>= 1.9.3'
|
17
|
+
s.rubygems_version = '1.8.23'
|
18
|
+
|
19
|
+
s.files = `git ls-files`.split($RS).reject do |file|
|
20
|
+
file =~ %r{^(?:
|
21
|
+
spec/.*
|
22
|
+
|Gemfile
|
23
|
+
|Rakefile
|
24
|
+
|\.rspec
|
25
|
+
|\.gitignore
|
26
|
+
|\.rubocop.yml
|
27
|
+
|\.travis.yml
|
28
|
+
)$}x
|
29
|
+
end
|
30
|
+
s.test_files = []
|
31
|
+
s.extra_rdoc_files = ['LICENSE', 'README.md']
|
32
|
+
s.require_paths = ['lib']
|
33
|
+
|
34
|
+
s.add_dependency('pronto', '~> 0.5.0')
|
35
|
+
s.add_dependency('ffi-aspell', '~> 1.1.0')
|
36
|
+
s.add_development_dependency('rake', '~> 10.4')
|
37
|
+
s.add_development_dependency('rspec', '~> 3.3')
|
38
|
+
s.add_development_dependency('rspec-its', '~> 1.2')
|
39
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pronto-spell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mindaugas Mozūras
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pronto
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.5.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.5.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ffi-aspell
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,52 +44,55 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '10.
|
47
|
+
version: '10.4'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '10.
|
54
|
+
version: '10.4'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
61
|
+
version: '3.3'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
68
|
+
version: '3.3'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec-its
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1.
|
75
|
+
version: '1.2'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1.
|
82
|
+
version: '1.2'
|
83
83
|
description:
|
84
84
|
email: mindaugas.mozuras@gmail.com
|
85
85
|
executables: []
|
86
86
|
extensions: []
|
87
|
-
extra_rdoc_files:
|
87
|
+
extra_rdoc_files:
|
88
|
+
- LICENSE
|
89
|
+
- README.md
|
88
90
|
files:
|
89
91
|
- LICENSE
|
90
92
|
- README.md
|
91
93
|
- lib/pronto/spell.rb
|
92
94
|
- lib/pronto/spell/version.rb
|
95
|
+
- pronto-spell.gemspec
|
93
96
|
homepage: http://github.org/mmozuras/pronto-spell
|
94
97
|
licenses:
|
95
98
|
- MIT
|
@@ -102,12 +105,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
105
|
requirements:
|
103
106
|
- - ">="
|
104
107
|
- !ruby/object:Gem::Version
|
105
|
-
version:
|
108
|
+
version: 1.9.3
|
106
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
110
|
requirements:
|
108
111
|
- - ">="
|
109
112
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
113
|
+
version: '0'
|
111
114
|
requirements: []
|
112
115
|
rubyforge_project:
|
113
116
|
rubygems_version: 2.4.5
|
@@ -115,4 +118,3 @@ signing_key:
|
|
115
118
|
specification_version: 4
|
116
119
|
summary: Pronto runner that uses Aspell for spell checking
|
117
120
|
test_files: []
|
118
|
-
has_rdoc:
|