source_finder 2.1.1 → 2.2.0

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: 00838a8fb2ecffc70904c3f453ce6f6a01bec139
4
- data.tar.gz: 470223ecf175c195cc7ce8cd629c63b80231134b
3
+ metadata.gz: e7b55168a3b981eec4f34fe8cf056924b56937c7
4
+ data.tar.gz: 80592fe7311db327cc785d827fd1ac5e9d52aef1
5
5
  SHA512:
6
- metadata.gz: 565693eea5b1a08fb70e9c382dfba4eced5c3a1952c4175b1933f6803ec30e0ad84a5551224964cf8783e21b6747893b305a616a93e6b3b82bb04a825df47782
7
- data.tar.gz: 031f46ea873b9d51a6fa1e549fd73bf32d0c2a13176d111694e6803777485ec1314c4da1c33b35a9fb6bc70b3127cbc4735b3aadac2b484aeec3b6403f9b724d
6
+ metadata.gz: 5bd5ec615a0d56511e37b54d0013da44366b99271da410f77d891ea3a43ddd8fc548ca71f0d60a61210798acd5809ac80838cf4722803e94ed68f452f446956c
7
+ data.tar.gz: cdfc37095caacef15f48c1ed0d28d73f9413c02f2b9d81014a68db9c6674f3ae46bf11abbaaf04b5a5b8afaaf888935ce78de36c95f77be4c582ad326fc8fdf5
@@ -103,12 +103,20 @@ module SourceFinder
103
103
  ruby_file_extensions_glob)
104
104
  end
105
105
 
106
+ def emacs_lockfile?(filename)
107
+ File.basename(filename) =~ /^\.#/
108
+ end
109
+
110
+ def exclude_garbage(files_arr)
111
+ files_arr.reject { |filename| emacs_lockfile?(filename) }
112
+ end
113
+
106
114
  def ruby_files_arr
107
- @globber.glob(ruby_files_glob) - exclude_files_arr
115
+ exclude_garbage(@globber.glob(ruby_files_glob) - exclude_files_arr)
108
116
  end
109
117
 
110
118
  def source_files_arr
111
- @globber.glob(source_files_glob) - exclude_files_arr
119
+ exclude_garbage(@globber.glob(source_files_glob) - exclude_files_arr)
112
120
  end
113
121
  end
114
122
  end
@@ -1,4 +1,4 @@
1
1
  # SourceFinder finds source and documentation files within a project.
2
2
  module SourceFinder
3
- VERSION = '2.1.1'
3
+ VERSION = '2.2.0'
4
4
  end
@@ -1 +1,2 @@
1
- 278
1
+ 300
2
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: source_finder
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-13 00:00:00.000000000 Z
11
+ date: 2015-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler