source_finder 2.2.3 → 2.3.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 +14 -3
- data/lib/source_finder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 597f615d9127ec7c1c45ab1c8abc60aabd28cfaf
|
4
|
+
data.tar.gz: d6b7e2ef512b0ec25312d4b4234e676b99ee0cad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae7fb1405468632294149177be05585226f5feff2590ff7a98d35a9bfc438434344ce07069f5d07b0c4faa86ec47184a59d781445eec42e176d37525cb0947a9
|
7
|
+
data.tar.gz: 840341e840517812426222f0e24fe7997212d6ccde264efede9515a6f1e2bdd07c4b4398457df080120070afbde2f56aa89c770f58f412575bae9206ef10b7df
|
@@ -60,12 +60,16 @@ module SourceFinder
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
+
def default_source_file_extensions_arr
|
64
|
+
%w(swift cpp c html java py clj cljs scala yml sh json)
|
65
|
+
end
|
66
|
+
|
63
67
|
def source_file_extensions_arr
|
64
68
|
@source_file_extensions_arr ||=
|
65
69
|
exclude_garbage((ruby_file_extensions_arr +
|
66
70
|
js_file_extensions_arr +
|
67
71
|
python_file_extensions_arr +
|
68
|
-
|
72
|
+
default_source_file_extensions_arr))
|
69
73
|
end
|
70
74
|
|
71
75
|
def doc_file_extensions_arr
|
@@ -81,8 +85,15 @@ module SourceFinder
|
|
81
85
|
end
|
82
86
|
|
83
87
|
def source_and_doc_file_extensions_glob
|
84
|
-
@source_and_doc_file_extensions_glob
|
85
|
-
|
88
|
+
if @source_and_doc_file_extensions_glob
|
89
|
+
@source_and_doc_file_extensions_glob
|
90
|
+
elsif @source_file_extensions_glob
|
91
|
+
@source_and_doc_file_extensions_glob ||=
|
92
|
+
@source_file_extensions_glob + ',' + source_file_extensions_glob
|
93
|
+
else
|
94
|
+
@source_and_doc_file_extensions_glob ||=
|
95
|
+
source_and_doc_file_extensions_arr.join(',')
|
96
|
+
end
|
86
97
|
end
|
87
98
|
|
88
99
|
def source_files_glob
|