rim 2.6.2 → 2.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog +3 -0
  3. data/lib/rim.rb +1 -1
  4. data/lib/rim/aspell.rb +9 -4
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 187fc909fbaca71af593686728d36e02119e1dc4
4
- data.tar.gz: a2dab8fb770d965164d72edd178978ab05193e82
3
+ metadata.gz: a64e3070f71b7855c5bd63eb175895c207eea0c2
4
+ data.tar.gz: 755273c4e3cfbb0eeb069272bb3dedefb23564e9
5
5
  SHA512:
6
- metadata.gz: 7513007ea5ee94f87923d8f62b7b6ca89b5a613954032edd32fa5f29521016f15aff755fbcfbe5aa854100baee8c2c3fd149c9163ae821d2f3c05f0e4cb0d920
7
- data.tar.gz: be74034e127b6ec904b46017f734a6a3fc7d9671c29899a2f33a119cf72a3237fa035b05de74648852f5b31ab429998f156270a6167801c83938bc7039f55bf7
6
+ metadata.gz: 8f66ec9a4cd2e4defbf96019e016e23d862407649dfecf0d566ab2db2918c3df6b437858b1d5eb90c02f0cf2b44584301fd1ad166b4ea94548c2ee12f89c1139
7
+ data.tar.gz: 11d3af2995b32d2cc244ac3563b1adddf2fbf557db52df17b0ee6133cb194316bb72127b33927a85d061350748acbddcb5cb5edf16fca0518c9852a7fc1e7498
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ 2.6.3
2
+ Execute interactive aspell only for files with errors.
3
+
1
4
  2.6.2
2
5
  Don't delete gemspec file even with rake clobber if it's generated.
3
6
 
data/lib/rim.rb CHANGED
@@ -9,7 +9,7 @@ require 'singleton'
9
9
  # versions as possible and is easy to extend. Feel free to dislike it. ;)
10
10
  class Rim
11
11
 
12
- VERSION = '2.6.2'
12
+ VERSION = '2.6.3'
13
13
 
14
14
  begin
15
15
  require 'rake/dsl_definition'
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
- sh "aspell -c -x --encoding=#{aspell_encoding} -l #{aspell_lang} -p #{aspell_word_list} #{fn}"
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
- unless `aspell list --encoding=#{aspell_encoding} -l #{aspell_lang} -p #{aspell_word_list} < #{fn}`.empty?
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.2
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-01-06 00:00:00.000000000 Z
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.1
99
+ rubygems_version: 2.5.2
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: A simple project / gem manager