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 +4 -4
- data/lib/source_finder/source_file_globber.rb +10 -2
- data/lib/source_finder/version.rb +1 -1
- data/metrics/bigfiles_high_water_mark +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7b55168a3b981eec4f34fe8cf056924b56937c7
|
4
|
+
data.tar.gz: 80592fe7311db327cc785d827fd1ac5e9d52aef1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 +1,2 @@
|
|
1
|
-
|
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.
|
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-
|
11
|
+
date: 2015-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|