source_finder 2.2.0 → 2.2.1
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 +14 -18
- data/lib/source_finder/version.rb +1 -1
- data/source_finder.gemspec +4 -3
- metadata +2 -26
- data/.gitignore +0 -12
- data/.rubocop.yml +0 -32
- data/.ruby-version +0 -1
- data/.travis.yml +0 -9
- data/Gemfile +0 -4
- data/Rakefile +0 -5
- data/bin/console +0 -14
- data/bin/setup +0 -7
- data/circle.yml +0 -6
- data/coverage/.last_run.json +0 -5
- data/lib/tasks/ci.rake +0 -1
- data/lib/tasks/clear_metrics.rake +0 -5
- data/lib/tasks/default.rake +0 -1
- data/lib/tasks/feature.rake +0 -7
- data/lib/tasks/localtest.rake +0 -1
- data/lib/tasks/quality.rake +0 -6
- data/lib/tasks/spec.rake +0 -7
- data/metrics/bigfiles_high_water_mark +0 -2
- data/metrics/brakeman_high_water_mark +0 -1
- data/metrics/cane_high_water_mark +0 -1
- data/metrics/flay_high_water_mark +0 -1
- data/metrics/flog_high_water_mark +0 -1
- data/metrics/punchlist_high_water_mark +0 -1
- data/metrics/rubocop_high_water_mark +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbd54e9969626af1d9f74c71b531e44df3f3ac54
|
4
|
+
data.tar.gz: c68d121b49ef130d61f0c3aad30d991ac1bcaea6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 805199bed5eaa6973e53b15d28f20b652392597d9ed2f08cedb34d5ed78664cf45f0b6e4e292495275bf1088f39b7e36c88cbededdc3141533852b941e70f03e
|
7
|
+
data.tar.gz: b933183a3ce98344eeaeb97ba4b8e81a9d8ebe4af9cf9b252bd47c5440f7042d98440f5dc0c3969bdad2b66fd41d4494fe61bf846a6222622812bfa5459a0994
|
@@ -3,7 +3,6 @@ module SourceFinder
|
|
3
3
|
# inclusion and exclusion glob
|
4
4
|
class SourceFileGlobber
|
5
5
|
# See README.md for documentation on these configuration parameters.
|
6
|
-
|
7
6
|
attr_accessor :ruby_dirs_arr, :source_dirs_arr, :extra_source_files_arr,
|
8
7
|
:extra_ruby_files_arr, :ruby_file_extensions_arr,
|
9
8
|
:source_file_extensions_arr, :exclude_files_arr,
|
@@ -40,9 +39,9 @@ module SourceFinder
|
|
40
39
|
end
|
41
40
|
|
42
41
|
def source_file_extensions_arr
|
43
|
-
@source_file_extensions_arr ||=
|
44
|
-
|
45
|
-
|
42
|
+
@source_file_extensions_arr ||=
|
43
|
+
ruby_file_extensions_arr +
|
44
|
+
%w(swift cpp c java py clj cljs scala js yml sh json)
|
46
45
|
end
|
47
46
|
|
48
47
|
def doc_file_extensions_arr
|
@@ -63,26 +62,24 @@ module SourceFinder
|
|
63
62
|
end
|
64
63
|
|
65
64
|
def source_files_glob
|
66
|
-
@source_files_glob ||
|
67
|
-
|
68
|
-
|
65
|
+
@source_files_glob ||
|
66
|
+
make_files_glob(extra_source_files_arr, source_dirs_arr,
|
67
|
+
source_file_extensions_glob)
|
69
68
|
end
|
70
69
|
|
71
70
|
def source_and_doc_files_glob
|
72
|
-
|
73
|
-
|
74
|
-
source_and_doc_file_extensions_glob)
|
71
|
+
make_files_glob(extra_source_files_arr, source_dirs_arr,
|
72
|
+
source_and_doc_file_extensions_glob)
|
75
73
|
end
|
76
74
|
|
77
|
-
def
|
78
|
-
|
79
|
-
|
75
|
+
def make_files_glob(extra_source_files_arr,
|
76
|
+
dirs_arr,
|
77
|
+
extensions_glob)
|
80
78
|
"{#{extra_source_files_arr.join(',')}," \
|
81
79
|
"{*,.*}.{#{extensions_glob}}," +
|
82
80
|
File.join("{#{dirs_arr.join(',')}}",
|
83
81
|
'**',
|
84
|
-
"{*,.*}.{#{extensions_glob}}") +
|
85
|
-
'}'
|
82
|
+
"{*,.*}.{#{extensions_glob}}") + '}'
|
86
83
|
end
|
87
84
|
|
88
85
|
def source_files_exclude_glob
|
@@ -98,9 +95,8 @@ module SourceFinder
|
|
98
95
|
end
|
99
96
|
|
100
97
|
def ruby_files_glob
|
101
|
-
|
102
|
-
|
103
|
-
ruby_file_extensions_glob)
|
98
|
+
make_files_glob(extra_ruby_files_arr, ruby_dirs_arr,
|
99
|
+
ruby_file_extensions_glob)
|
104
100
|
end
|
105
101
|
|
106
102
|
def emacs_lockfile?(filename)
|
data/source_finder.gemspec
CHANGED
@@ -14,9 +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 =
|
18
|
-
|
19
|
-
|
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"]
|
20
21
|
spec.bindir = 'exe'
|
21
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
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.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: 2015-11-
|
11
|
+
date: 2015-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,37 +87,13 @@ executables: []
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
-
- .gitignore
|
91
|
-
- .rubocop.yml
|
92
|
-
- .ruby-version
|
93
|
-
- .travis.yml
|
94
90
|
- CODE_OF_CONDUCT.md
|
95
|
-
- Gemfile
|
96
91
|
- LICENSE.txt
|
97
92
|
- README.md
|
98
|
-
- Rakefile
|
99
|
-
- bin/console
|
100
|
-
- bin/setup
|
101
|
-
- circle.yml
|
102
|
-
- coverage/.last_run.json
|
103
93
|
- lib/source_finder.rb
|
104
94
|
- lib/source_finder/option_parser.rb
|
105
95
|
- lib/source_finder/source_file_globber.rb
|
106
96
|
- lib/source_finder/version.rb
|
107
|
-
- lib/tasks/ci.rake
|
108
|
-
- lib/tasks/clear_metrics.rake
|
109
|
-
- lib/tasks/default.rake
|
110
|
-
- lib/tasks/feature.rake
|
111
|
-
- lib/tasks/localtest.rake
|
112
|
-
- lib/tasks/quality.rake
|
113
|
-
- lib/tasks/spec.rake
|
114
|
-
- metrics/bigfiles_high_water_mark
|
115
|
-
- metrics/brakeman_high_water_mark
|
116
|
-
- metrics/cane_high_water_mark
|
117
|
-
- metrics/flay_high_water_mark
|
118
|
-
- metrics/flog_high_water_mark
|
119
|
-
- metrics/punchlist_high_water_mark
|
120
|
-
- metrics/rubocop_high_water_mark
|
121
97
|
- source_finder.gemspec
|
122
98
|
homepage: https://github.com/apiology/source_finder
|
123
99
|
licenses:
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# I like trailing commas in maps. They let me insert new elements and
|
2
|
-
# see them as one line in a diff, not two.
|
3
|
-
TrailingComma:
|
4
|
-
Enabled: false
|
5
|
-
|
6
|
-
# I use keyword arguments for a poor man's dependency injection to cut
|
7
|
-
# down on the magic in my tests.
|
8
|
-
ParameterLists:
|
9
|
-
CountKeywordArgs: false
|
10
|
-
|
11
|
-
# If i'm using one function name and returning the contents of an
|
12
|
-
# attribute, that's OK. The alternative would be this, which I find
|
13
|
-
# confusing and often not really what I mean:
|
14
|
-
#
|
15
|
-
# attr_reader :something_else
|
16
|
-
# alias_method :something, :something_else
|
17
|
-
TrivialAccessors:
|
18
|
-
ExactNameMatch: true
|
19
|
-
|
20
|
-
#
|
21
|
-
# Add 'XX X' to the standard list
|
22
|
-
#
|
23
|
-
Style/CommentAnnotation:
|
24
|
-
Keywords:
|
25
|
-
- "TOD\
|
26
|
-
O"
|
27
|
-
- FIXME
|
28
|
-
- OPTIMIZE
|
29
|
-
- HACK
|
30
|
-
- REVIEW
|
31
|
-
- "XX\
|
32
|
-
X"
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ruby-2.0.0
|
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "source_finder"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|
data/bin/setup
DELETED
data/circle.yml
DELETED
data/coverage/.last_run.json
DELETED
data/lib/tasks/ci.rake
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
task ci: :localtest
|
data/lib/tasks/default.rake
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
task default: :localtest
|
data/lib/tasks/feature.rake
DELETED
data/lib/tasks/localtest.rake
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
task localtest: [:clear_metrics, :spec, :quality]
|
data/lib/tasks/quality.rake
DELETED
data/lib/tasks/spec.rake
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0
|
@@ -1 +0,0 @@
|
|
1
|
-
0
|
@@ -1 +0,0 @@
|
|
1
|
-
0
|
@@ -1 +0,0 @@
|
|
1
|
-
0
|
@@ -1 +0,0 @@
|
|
1
|
-
0
|
@@ -1 +0,0 @@
|
|
1
|
-
0
|