source_finder 3.1.0 → 3.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 893075d135af9d4162f84e31517b343542d0d828
|
4
|
+
data.tar.gz: 5c209d85b7c4214217c8a3f2293832bb41312904
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41935b9ae678f6689198a2813e512537f3e1bb4499f258c0bd388a9bb3eba135e1db8c57e008a3c1dcac4b598eaf30fb1b41aff4f2f988f0833069eed00c4467
|
7
|
+
data.tar.gz: dfc27e9f230d1ef2240f7f94e039ca7247a490cf5a0f2ab94b76909f47c7be73fa9bf66317c1c1fc09a7185844fcf83d55e6482bff3e1d5c1476790852cb9a9c
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module SourceFinder
|
2
2
|
# Globber for JavaScript
|
3
3
|
module JsSourceFileGlobber
|
4
|
-
|
5
|
-
|
4
|
+
attr_writer :js_dirs_arr, :extra_js_files_arr,
|
5
|
+
:js_file_extensions_arr
|
6
6
|
|
7
7
|
def js_dirs_arr
|
8
8
|
@js_dirs_arr ||= %w(app src www)
|
@@ -13,8 +13,8 @@ module SourceFinder
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def js_file_extensions_arr
|
16
|
-
|
17
|
-
|
16
|
+
arr = @js_file_extensions_arr if defined? @js_file_extensions_arr
|
17
|
+
make_extensions_arr(arr, %w(js))
|
18
18
|
end
|
19
19
|
|
20
20
|
def js_file_extensions_glob
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module SourceFinder
|
2
2
|
# Globber for Python
|
3
3
|
module PythonSourceFileGlobber
|
4
|
-
|
5
|
-
|
4
|
+
attr_writer :python_dirs_arr, :extra_python_files_arr,
|
5
|
+
:python_file_extensions_arr
|
6
6
|
|
7
7
|
def python_dirs_arr
|
8
8
|
@python_dirs_arr ||= %w(src tests)
|
@@ -13,12 +13,15 @@ module SourceFinder
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def python_file_extensions_arr
|
16
|
-
|
17
|
-
|
16
|
+
arr = @python_file_extensions_arr if defined? @python_file_extensions_arr
|
17
|
+
make_extensions_arr(arr, %w(py))
|
18
18
|
end
|
19
19
|
|
20
20
|
def python_file_extensions_glob
|
21
|
-
@python_file_extensions_glob
|
21
|
+
glob = if defined? @python_file_extensions_glob
|
22
|
+
@python_file_extensions_glob
|
23
|
+
end
|
24
|
+
glob || python_file_extensions_arr.join(',')
|
22
25
|
end
|
23
26
|
|
24
27
|
def python_files_glob
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module SourceFinder
|
2
2
|
# Globber for Ruby
|
3
3
|
module RubySourceFileGlobber
|
4
|
-
|
5
|
-
|
4
|
+
attr_writer :ruby_dirs_arr, :extra_ruby_files_arr,
|
5
|
+
:ruby_file_extensions_arr
|
6
6
|
|
7
7
|
def ruby_dirs_arr
|
8
8
|
@ruby_dirs_arr ||= %w(app config db feature lib spec src test)
|
@@ -13,8 +13,8 @@ module SourceFinder
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def ruby_file_extensions_arr
|
16
|
-
|
17
|
-
|
16
|
+
arr = @ruby_file_extensions_arr if defined? @ruby_file_extensions_arr
|
17
|
+
make_extensions_arr(arr, %w(gemspec rake rb))
|
18
18
|
end
|
19
19
|
|
20
20
|
def ruby_file_extensions_glob
|
@@ -7,9 +7,9 @@ module SourceFinder
|
|
7
7
|
# inclusion and exclusion glob
|
8
8
|
class SourceFileGlobber
|
9
9
|
# See README.md for documentation on these configuration parameters.
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
attr_writer :source_dirs_arr, :extra_source_files_arr,
|
11
|
+
:source_file_extensions_arr, :source_files_glob,
|
12
|
+
:source_files_exclude_glob, :exclude_files_arr
|
13
13
|
|
14
14
|
include RubySourceFileGlobber
|
15
15
|
include JsSourceFileGlobber
|
@@ -17,6 +17,9 @@ module SourceFinder
|
|
17
17
|
|
18
18
|
def initialize(globber: Dir)
|
19
19
|
@globber = globber
|
20
|
+
@exclude_files_arr = nil
|
21
|
+
@source_files_exclude_glob = nil
|
22
|
+
@exclude_files_arr = nil
|
20
23
|
end
|
21
24
|
|
22
25
|
def source_dirs_arr
|
@@ -36,8 +39,8 @@ module SourceFinder
|
|
36
39
|
|
37
40
|
def exclude_files_arr
|
38
41
|
return @exclude_files_arr if @exclude_files_arr
|
39
|
-
if
|
40
|
-
exclude_garbage(@globber.glob(
|
42
|
+
if source_files_exclude_glob
|
43
|
+
exclude_garbage(@globber.glob(source_files_exclude_glob))
|
41
44
|
else
|
42
45
|
exclude_garbage(@globber.glob(default_source_files_exclude_glob))
|
43
46
|
end
|
@@ -82,7 +85,8 @@ module SourceFinder
|
|
82
85
|
end
|
83
86
|
|
84
87
|
def source_files_glob
|
85
|
-
@source_files_glob
|
88
|
+
glob = @source_files_glob if defined? @source_files_glob
|
89
|
+
glob ||
|
86
90
|
make_files_glob(extra_source_files_arr, source_dirs_arr,
|
87
91
|
source_file_extensions_glob)
|
88
92
|
end
|
metadata
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: source_finder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vince Broz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: quality
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '!='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.39.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '!='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.39.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: simplecov
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
description:
|
@@ -122,17 +122,17 @@ require_paths:
|
|
122
122
|
- lib
|
123
123
|
required_ruby_version: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
|
-
- -
|
125
|
+
- - '>='
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0'
|
128
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- -
|
130
|
+
- - '>='
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: '0'
|
133
133
|
requirements: []
|
134
134
|
rubyforge_project:
|
135
|
-
rubygems_version: 2.4.
|
135
|
+
rubygems_version: 2.4.6
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: SourceFinder finds source and documentation files within a project.
|