source_finder 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/source_finder/source_file_globber.rb +18 -7
- data/lib/source_finder/version.rb +1 -1
- data/source_finder.gemspec +4 -4
- 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: 22d5b1f80ba1bf86e1565da7101acd64ee7773c1
|
4
|
+
data.tar.gz: abe921f0693d83ae6edfd347b698fcabeaac5998
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6025b9da3235737b58fb1962e8eb15e5299fc922aa0813124e42c4903efa8e5377d1256024686d8f620c903279911e15b5bbfabe8816e1792cf0758e821843c2
|
7
|
+
data.tar.gz: cd1ae77cf5b73d058b6648b050161d41c86ed80d86d7a8425304d1fa29e5047c3cab24e70ebea8c40c457591580af7e1ba7e52566d0828f11c8e1f2928011b9c
|
@@ -30,11 +30,27 @@ module SourceFinder
|
|
30
30
|
@extra_ruby_files_arr ||= %w(Rakefile)
|
31
31
|
end
|
32
32
|
|
33
|
+
def default_source_files_exclude_glob
|
34
|
+
'**/vendor/**'
|
35
|
+
end
|
36
|
+
|
33
37
|
def exclude_files_arr
|
34
38
|
if @source_files_exclude_glob
|
35
39
|
@globber.glob(@source_files_exclude_glob)
|
40
|
+
elsif @exclude_files_arr
|
41
|
+
@exclude_files_arr
|
36
42
|
else
|
37
|
-
(
|
43
|
+
@globber.glob(default_source_files_exclude_glob)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
def source_files_exclude_glob
|
48
|
+
if @source_files_exclude_glob
|
49
|
+
@source_files_exclude_glob
|
50
|
+
elsif @exclude_files_arr
|
51
|
+
"{#{exclude_files_arr.join(',')}}"
|
52
|
+
else
|
53
|
+
default_source_files_exclude_glob
|
38
54
|
end
|
39
55
|
end
|
40
56
|
|
@@ -77,15 +93,10 @@ module SourceFinder
|
|
77
93
|
extensions_glob)
|
78
94
|
"{#{extra_source_files_arr.join(',')}," \
|
79
95
|
"{*,.*}.{#{extensions_glob}}," +
|
80
|
-
File.join("{#{dirs_arr.join(',')}}",
|
81
|
-
'**',
|
96
|
+
File.join("{#{dirs_arr.join(',')}}", '**',
|
82
97
|
"{*,.*}.{#{extensions_glob}}") + '}'
|
83
98
|
end
|
84
99
|
|
85
|
-
def source_files_exclude_glob
|
86
|
-
@source_files_exclude_glob || "{#{exclude_files_arr.join(', ')}}"
|
87
|
-
end
|
88
|
-
|
89
100
|
def ruby_file_extensions_arr
|
90
101
|
@ruby_file_extensions_arr || %w(rb rake gemspec)
|
91
102
|
end
|
data/source_finder.gemspec
CHANGED
@@ -14,10 +14,10 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = 'https://github.com/apiology/source_finder'
|
15
15
|
spec.license = 'MIT'
|
16
16
|
|
17
|
-
spec.files = Dir[
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
spec.files = Dir['CODE_OF_CONDUCT.md', 'LICENSE.txt', 'README.md',
|
18
|
+
'{lib}/source_finder.rb',
|
19
|
+
'{lib}/source_finder/**/*.rb',
|
20
|
+
'source_finder.gemspec']
|
21
21
|
spec.bindir = 'exe'
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ['lib']
|
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.2.
|
4
|
+
version: 2.2.2
|
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-
|
11
|
+
date: 2015-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|