rim 2.6.2 → 2.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog +3 -0
- data/lib/rim.rb +1 -1
- data/lib/rim/aspell.rb +9 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a64e3070f71b7855c5bd63eb175895c207eea0c2
|
4
|
+
data.tar.gz: 755273c4e3cfbb0eeb069272bb3dedefb23564e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f66ec9a4cd2e4defbf96019e016e23d862407649dfecf0d566ab2db2918c3df6b437858b1d5eb90c02f0cf2b44584301fd1ad166b4ea94548c2ee12f89c1139
|
7
|
+
data.tar.gz: 11d3af2995b32d2cc244ac3563b1adddf2fbf557db52df17b0ee6133cb194316bb72127b33927a85d061350748acbddcb5cb5edf16fca0518c9852a7fc1e7498
|
data/Changelog
CHANGED
data/lib/rim.rb
CHANGED
data/lib/rim/aspell.rb
CHANGED
@@ -11,6 +11,11 @@ class Rim
|
|
11
11
|
|
12
12
|
# File to store the word list of the project (default: './.aspell.pws')
|
13
13
|
attr_accessor :aspell_word_list
|
14
|
+
|
15
|
+
def aspell_errors? fn
|
16
|
+
! `aspell list --encoding=#{aspell_encoding} -l #{aspell_lang} -p #{aspell_word_list} < #{fn}`.empty?
|
17
|
+
end
|
18
|
+
|
14
19
|
end
|
15
20
|
|
16
21
|
Rim.defaults do
|
@@ -24,7 +29,9 @@ Rim.after_setup do
|
|
24
29
|
desc 'Interactive spelling check via aspell'
|
25
30
|
task :aspell do
|
26
31
|
aspell_files.each do |fn|
|
27
|
-
|
32
|
+
if aspell_errors? fn
|
33
|
+
sh "aspell -c -x --encoding=#{aspell_encoding} -l #{aspell_lang} -p #{aspell_word_list} #{fn}"
|
34
|
+
end
|
28
35
|
end
|
29
36
|
end
|
30
37
|
namespace :aspell do
|
@@ -32,9 +39,7 @@ Rim.after_setup do
|
|
32
39
|
task :check do
|
33
40
|
error_files = []
|
34
41
|
aspell_files.each do |fn|
|
35
|
-
|
36
|
-
error_files << fn
|
37
|
-
end
|
42
|
+
error_files << fn if aspell_errors? fn
|
38
43
|
end
|
39
44
|
fail "There are spelling errors in #{error_files.join(', ')}" unless error_files.empty?
|
40
45
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Friedrich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rim
|
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
98
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.5.
|
99
|
+
rubygems_version: 2.5.2
|
100
100
|
signing_key:
|
101
101
|
specification_version: 4
|
102
102
|
summary: A simple project / gem manager
|