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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34934d1cd0a9f1f90153d9511eeb9b18ee82f893
4
- data.tar.gz: ccd5a30b7973be85f16c85a30e3c4ed6b4690d2b
3
+ metadata.gz: 597f615d9127ec7c1c45ab1c8abc60aabd28cfaf
4
+ data.tar.gz: d6b7e2ef512b0ec25312d4b4234e676b99ee0cad
5
5
  SHA512:
6
- metadata.gz: f38caca91611f5baf959a93f548adf9a3e5ed4dd98087a67b919618f1c4c4bcb2acc4ec2ed1f7111ffb7cedc278413174ccb4760f549b7e99db8326d26991822
7
- data.tar.gz: 99cb880b3b9a2470786d7ddabde7844877fb8683831ee2d1a00dfa165aaf83751c03550d743b19d0e2c244cec1eab7403008422e337c8e3632639b3b2c21aabc
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
- %w(swift cpp c java py clj cljs scala yml sh json)))
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
- source_and_doc_file_extensions_arr.join(',')
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
@@ -1,4 +1,4 @@
1
1
  # SourceFinder finds source and documentation files within a project.
2
2
  module SourceFinder
3
- VERSION = '2.2.3'
3
+ VERSION = '2.3.0'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: source_finder
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz